]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sun7i: add USB EHCI settings
authorRoman Byshko <rbyshko@gmail.com>
Thu, 24 Jul 2014 20:54:23 +0000 (22:54 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 31 Jul 2014 13:37:23 +0000 (15:37 +0200)
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>
include/configs/sun7i.h

index d9be1046b0cf7ddd99cfe96c4073c1b9802fad4d..b5992d2191fabf525cc6892b994c1af5284f555c 100644 (file)
 
 #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
  */