summaryrefslogtreecommitdiff
path: root/drivers/power/axp221.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-03-27 23:57:54 +0300
committerHans de Goede <hdegoede@redhat.com>2015-04-15 17:17:17 +0300
commit046ea8b390f9c8986f52e4bd2c7bffabd4749330 (patch)
tree22dc5cb6e241393f83271c8b1010dcbd5d050be0 /drivers/power/axp221.c
parent940382fe7d61d90326e42fe00b976c65b18befa2 (diff)
downloadu-boot-046ea8b390f9c8986f52e4bd2c7bffabd4749330.tar.xz
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>
Diffstat (limited to 'drivers/power/axp221.c')
0 files changed, 0 insertions, 0 deletions