OTG+charge hack: restore peripherals on power loss (partly working)

Change-Id: I9708d4f47ebbc5b86dbff2a0eefc4be17d65285c