gs101: recovery: Set maxpower to allow charging from SDP port
Leaving maxpower at default i.e. 2mA prevents the phone from charging from SDP ports. Setting this to 900mA. Kernel would then set the current limit to 500/900mA based on the configured speed. Bug: 194722479 Test: Boot to recovery; Through uart cat maxpower; Signed-off-by: Badhri Jagan Sridharan <badhri@google.com> Change-Id: I763c70eb5d19f74e6e846155af69c25ca3e91f85
This commit is contained in:
parent
e1039ea565
commit
a7c0b48fc4
1 changed files with 3 additions and 0 deletions
|
@ -13,3 +13,6 @@ service recovery-console /system/bin/sh
|
||||||
group root shell log readproc
|
group root shell log readproc
|
||||||
seclabel u:r:su:s0
|
seclabel u:r:su:s0
|
||||||
setenv HOSTNAME console
|
setenv HOSTNAME console
|
||||||
|
|
||||||
|
on fs && property:sys.usb.configfs=1
|
||||||
|
write /config/usb_gadget/g1/configs/b.1/MaxPower 900
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue