Add support for off-mode charging

Change-Id: Ib13241912cf547791280b97c9744e02379761c6f