summaryrefslogtreecommitdiff
path: root/include/configs/sun50i.h
diff options
context:
space:
mode:
authorAmit Singh Tomar <amittomer25@gmail.com>2016-10-21 01:24:30 (GMT)
committerHans de Goede <hdegoede@redhat.com>2016-10-30 10:38:04 (GMT)
commit9d6c9d988f0cd2fae095f1c76dc6b786a890108b (patch)
treefc40b43b090e958863d274bed5c5da8b06e79aeb /include/configs/sun50i.h
parent06de0701302488b4ac08f6e6d7bb9b8fcc92f5c2 (diff)
downloadu-boot-9d6c9d988f0cd2fae095f1c76dc6b786a890108b.tar.xz
sunxi: A64: enable USB support
Mostly by adding MACH_SUN50I to some existing #ifdefs enable support for the the HCI0 USB host controller on the A64. Fix up some minor 64-bit hiccups on the way. Add the bare minimum DT bits to the A64 .dtsi and enable the controllers and the PHY on the Pine64. This is limited to the first USB controller at the moment, which is connected to the lower USB socket on the Pine64 board. [Andre: remove unneeded defines, enable OHCI, add commit message] Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/configs/sun50i.h')
-rw-r--r--include/configs/sun50i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/sun50i.h b/include/configs/sun50i.h
index 0fdb4c7..3e5708b 100644
--- a/include/configs/sun50i.h
+++ b/include/configs/sun50i.h
@@ -11,6 +11,11 @@
* A64 specific configuration
*/
+#ifdef CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_SUNXI
+#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
+#endif
+
#define CONFIG_SUNXI_USB_PHYS 1
#define COUNTER_FREQUENCY CONFIG_TIMER_CLK_FREQ