Skip to content
Snippets Groups Projects
Commit 263b012c authored by Roman Byshko's avatar Roman Byshko Committed by Hans de Goede
Browse files

sun7i: add USB EHCI settings


Specific USB EHCI settings to be set for sun7i if
CONFIG_USB_EHCI is enabled.

Signed-off-by: default avatarRoman Byshko <rbyshko@gmail.com>
Acked-by: default avatarIan 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: default avatarHans de Goede <hdegoede@redhat.com>
parent 3584f30c
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,18 @@ ...@@ -17,6 +17,18 @@
#define CONFIG_SYS_PROMPT "sun7i# " #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 * Include common sunxi configuration where most the settings are
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment