diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-01-07 14:08:43 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 13:56:40 (GMT) |
commit | 0eccec4ef1431aafb8d67118c515703e6a7f7a3e (patch) | |
tree | 3b81363222e767536bb3062ff8bc8d834ab79b4d /include/configs | |
parent | 2abac6213d9d05c34fba7dcaa2934668774008a7 (diff) | |
download | u-boot-0eccec4ef1431aafb8d67118c515703e6a7f7a3e.tar.xz |
sunxi: Move usb-controller init code out of ehci-sunxi.c for reuse for otg
Most of the usb-controller init code found in ehci-sunxi.c also is necessary
to init the otg usb controller, so move it to a common place.
While at it also update various #ifdefs / defines for sun8i support.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/sun8i.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/sun8i.h b/include/configs/sun8i.h index 792422d..f16e60b 100644 --- a/include/configs/sun8i.h +++ b/include/configs/sun8i.h @@ -16,6 +16,11 @@ #define CONFIG_SYS_PROMPT "sun8i# " +#ifdef CONFIG_USB_EHCI +#define CONFIG_USB_EHCI_SUNXI +#define CONFIG_USB_MAX_CONTROLLER_COUNT 1 +#endif + /* * Include common sunxi configuration where most the settings are */ |