fastcharge: backported and adapted for OnePlus One

thanks a lot
@faux123
@DooMLoRD