diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-01-07 15:08:43 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-01-14 14:56:40 +0100 |
commit | 0eccec4ef1431aafb8d67118c515703e6a7f7a3e (patch) | |
tree | 3b81363222e767536bb3062ff8bc8d834ab79b4d /include | |
parent | 2abac6213d9d05c34fba7dcaa2934668774008a7 (diff) | |
download | u-boot-0eccec4ef1431aafb8d67118c515703e6a7f7a3e.tar.gz u-boot-0eccec4ef1431aafb8d67118c515703e6a7f7a3e.tar.xz u-boot-0eccec4ef1431aafb8d67118c515703e6a7f7a3e.zip |
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')
-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 792422d780..f16e60b576 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 */ |