summaryrefslogtreecommitdiff
path: root/include/configs/sun7i.h
diff options
context:
space:
mode:
authorRoman Byshko <rbyshko@gmail.com>2014-07-24 22:54:23 +0200
committerHans de Goede <hdegoede@redhat.com>2014-07-31 15:37:23 +0200
commit263b012c255f37171936ba8a45d570568631f9a1 (patch)
treece8c4a41e0a67761e7d99ff0854261610d4fda7a /include/configs/sun7i.h
parent3584f30ce95a3758c21b90cc07bc791d4656bf8a (diff)
downloadu-boot-imx-263b012c255f37171936ba8a45d570568631f9a1.zip
u-boot-imx-263b012c255f37171936ba8a45d570568631f9a1.tar.gz
u-boot-imx-263b012c255f37171936ba8a45d570568631f9a1.tar.bz2
sun7i: add USB EHCI settings
Specific USB EHCI settings to be set for sun7i if CONFIG_USB_EHCI is enabled. Signed-off-by: Roman Byshko <rbyshko@gmail.com> Acked-by: Ian Campbell <ijc@hellion.org.uk> [hdegoede@redhat.com: Use SUNXI_GPH macro for SUNXI_USB_VBUS#_GPIO] [hdegoede@redhat.com: Add #ifndef SUNXI_USB_VBUS#_GPIO to allow override of the default pins from boards.cfg] Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/configs/sun7i.h')
-rw-r--r--include/configs/sun7i.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/sun7i.h b/include/configs/sun7i.h
index d9be104..b5992d2 100644
--- a/include/configs/sun7i.h
+++ b/include/configs/sun7i.h
@@ -17,6 +17,18 @@
#define CONFIG_SYS_PROMPT "sun7i# "
+#ifdef CONFIG_USB_EHCI
+#define CONFIG_USB_EHCI_SUNXI
+
+#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
+#ifndef CONFIG_SUNXI_USB_VBUS0_GPIO
+#define CONFIG_SUNXI_USB_VBUS0_GPIO SUNXI_GPH(6)
+#endif
+#ifndef CONFIG_SUNXI_USB_VBUS1_GPIO
+#define CONFIG_SUNXI_USB_VBUS1_GPIO SUNXI_GPH(3)
+#endif
+#endif
+
/*
* Include common sunxi configuration where most the settings are
*/