mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
1eae8f66ff
commit
60fa63012f
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -342,6 +342,12 @@ config USB2_VBUS_PIN
|
|||
---help---
|
||||
See USB1_VBUS_PIN help text.
|
||||
|
||||
config USB3_VBUS_PIN
|
||||
string "Vbus enable pin for usb3 (ehci2)"
|
||||
default ""
|
||||
---help---
|
||||
See USB1_VBUS_PIN help text.
|
||||
|
||||
config I2C0_ENABLE
|
||||
bool "Enable I2C/TWI controller 0"
|
||||
default y if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
|
||||
|
|
Loading…
Reference in a new issue