7a58972680
The current uboot default config for the A13 SOM erroneously enables support for the AXP209 power regulator IC which is not present on the board. This superfluous support module sets an incorrect initial clock frequency and confuses the kernel, ultimately leading to a boot failure later on. Properly disable the PMIC support and enable the EHCI support by translating the deprecated SYS_EXTRA_OPTIONS values into proper SUNXI_NO_PMIC and USB_EHCI_HCD symbols respectively. Also rename 002-add-olimex-a13-som.diff to 002-add-olimex-a13-som.patch and refresh the remaining patches of the series while we're at it. Reported-by: Mario Fischer <mario-fischer@web.de> Signed-off-by: Jo-Philipp Wich <jo@mein.io>
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 60fa63012fcdc3c4ec1497bf5e358f0a90b40949 Mon Sep 17 00:00:00 2001
|
|
From: Hans de Goede <hdegoede@redhat.com>
|
|
Date: Fri, 18 Mar 2016 08:42:01 +0100
|
|
Subject: [PATCH] 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>
|
|
---
|
|
arch/arm/cpu/armv7/sunxi/usb_phy.c | 1 +
|
|
board/sunxi/Kconfig | 6 ++++++
|
|
2 files changed, 7 insertions(+)
|
|
|
|
--- 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;
|
|
}
|
|
--- a/board/sunxi/Kconfig
|
|
+++ b/board/sunxi/Kconfig
|
|
@@ -341,6 +341,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
|