]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi: usbc: Initialize vusb value on request_resources
authorHans de Goede <hdegoede@redhat.com>
Fri, 27 Mar 2015 20:57:54 +0000 (21:57 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:14 +0000 (21:47 +0200)
commit5aed1183eca356a051da534acb5f6ab532137e05
tree550a6b6f423c05e2e79a0b2cfc865aeda1f4ef4d
parent6d295b7e54c228d073c96ef0958cd3981c166f47
sunxi: usbc: Initialize vusb value on request_resources

On boards which use the pmic to enable/disable vbus on the otg port, the
vbus value is not reset to 0 on reset, as reset only resets the SoC and not
the pmic, so explicitly set vbus to 0 on init (request_resources) by moving
the gpio_direction_output call into request_resources.

For consistency also move the gpio_direction_input call for vbus-detect into
request_resources.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/usbc.c