Add support for off-mode charging

Change-Id: I4470e5c1c4396162565a7fa7ade6d4aab76c16c4