From 95468e6c9bfc8a552ec3681dacb666ef854f21cf Mon Sep 17 00:00:00 2001 From: Adam Ford Date: Tue, 30 Apr 2019 05:21:42 -0500 Subject: [PATCH] ARM: da850evm: Enable da850-ohci USB host controller The DA850 EVM has one USB 1.1 OHCI Host controller. With the host controller now support DM_USB, this patch enables the respective functions for the da850evm. Signed-off-by: Adam Ford --- configs/da850evm_defconfig | 5 +++++ include/configs/da850evm.h | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig index 221c204af0..09c6147e2d 100644 --- a/configs/da850evm_defconfig +++ b/configs/da850evm_defconfig @@ -68,5 +68,10 @@ CONFIG_SYS_NS16550=y CONFIG_SPI=y CONFIG_DM_SPI=y CONFIG_DAVINCI_SPI=y +CONFIG_USB=y +CONFIG_DM_USB=y +# CONFIG_SPL_DM_USB is not set +CONFIG_USB_OHCI_HCD=y +CONFIG_USB_OHCI_DA8XX=y # CONFIG_FAT_WRITE is not set CONFIG_USE_TINY_PRINTF=y diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h index 41ff6676e0..ccdac0abec 100644 --- a/include/configs/da850evm.h +++ b/include/configs/da850evm.h @@ -267,6 +267,14 @@ #define CONFIG_ENV_SIZE (16 << 10) #endif +/* USB Configs */ +#define CONFIG_SYS_USB_OHCI_CPU_INIT +#define CONFIG_USB_OHCI_NEW +#define CONFIG_USB_STORAGE +#define CONFIG_SYS_USB_OHCI_REGS_BASE 0x01E25000 +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 15 +#define CONFIG_SYS_USB_OHCI_SLOT_NAME "da850evm" + #ifndef CONFIG_DIRECT_NOR_BOOT /* defines for SPL */ #define CONFIG_SYS_SPL_MALLOC_START (CONFIG_SYS_TEXT_BASE - \ -- GitLab