diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-03-18 07:42:01 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2016-03-23 21:04:13 (GMT) |
commit | 60fa63012fcdc3c4ec1497bf5e358f0a90b40949 (patch) | |
tree | e8c5ff49206978b25840b3636b32b2d0c872bf4f /arch/arm/cpu/armv7 | |
parent | 1eae8f66ff749409eb96e2f3f3387c56232d0b8a (diff) | |
download | u-boot-60fa63012fcdc3c4ec1497bf5e358f0a90b40949.tar.xz |
sunxi: Add support for USB vbus pin for USB3
The H3 has USB0 - USB3, add support for having a USB vbus pin for USB3.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/sunxi/usb_phy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/sunxi/usb_phy.c b/arch/arm/cpu/armv7/sunxi/usb_phy.c index 6ac96cc..0749fbd 100644 --- a/arch/arm/cpu/armv7/sunxi/usb_phy.c +++ b/arch/arm/cpu/armv7/sunxi/usb_phy.c @@ -76,6 +76,7 @@ static int get_vbus_gpio(int index) case 0: return sunxi_name_to_gpio(CONFIG_USB0_VBUS_PIN); case 1: return sunxi_name_to_gpio(CONFIG_USB1_VBUS_PIN); case 2: return sunxi_name_to_gpio(CONFIG_USB2_VBUS_PIN); + case 3: return sunxi_name_to_gpio(CONFIG_USB3_VBUS_PIN); } return -EINVAL; } |