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

Signed-off-by: flar2 <asegaert@gmail.com>