50 lines
1.6 KiB
Diff
50 lines
1.6 KiB
Diff
From patchwork Fri Mar 18 07:55:04 2016
|
|
Content-Type: text/plain; charset="utf-8"
|
|
MIME-Version: 1.0
|
|
Content-Transfer-Encoding: 7bit
|
|
Subject: [U-Boot,1/3] sunxi: Add support for USB vbus pin for USB3
|
|
From: Hans de Goede <hdegoede@redhat.com>
|
|
X-Patchwork-Id: 599342
|
|
Message-Id: <1458287706-6656-1-git-send-email-hdegoede@redhat.com>
|
|
To: Ian Campbell <ijc+uboot@hellion.org.uk>
|
|
Cc: u-boot@lists.denx.de
|
|
Date: Fri, 18 Mar 2016 08:55:04 +0100
|
|
|
|
The H3 has USB0 - USB3, add support for having a USB vbus pin for USB3.
|
|
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
---
|
|
arch/arm/cpu/armv7/sunxi/usb_phy.c | 1 +
|
|
board/sunxi/Kconfig | 6 ++++++
|
|
2 files changed, 7 insertions(+)
|
|
|
|
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;
|
|
}
|
|
diff --git a/board/sunxi/Kconfig b/board/sunxi/Kconfig
|
|
index 5e9d3af..5e72fac 100644
|
|
--- a/board/sunxi/Kconfig
|
|
+++ b/board/sunxi/Kconfig
|
|
@@ -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
|