From e8d056989a7302eda4e3ed263a375fd175a4e15f Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Tue, 18 Aug 2015 09:27:18 +0200 Subject: usb: spear: Add support for both SPEAr600 EHCI controllers USB EHCI on SPEAr600 has not been tested for a while. The base controller addresses are missing. This patch adds the defines to the header. And adds the missing code. Signed-off-by: Stefan Roese Cc: Viresh Kumar Cc: Vipin Kumar Cc: Marek Vasut --- arch/arm/cpu/arm926ejs/spear/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/arm/cpu') diff --git a/arch/arm/cpu/arm926ejs/spear/cpu.c b/arch/arm/cpu/arm926ejs/spear/cpu.c index 1ce9db7a7d..3037084b29 100644 --- a/arch/arm/cpu/arm926ejs/spear/cpu.c +++ b/arch/arm/cpu/arm926ejs/spear/cpu.c @@ -47,8 +47,12 @@ int arch_cpu_init(void) #if defined(CONFIG_NAND_FSMC) periph1_clken |= MISC_FSMCENB; #endif +#if defined(CONFIG_USB_EHCI_SPEAR) + periph1_clken |= PERIPH_USBH1 | PERIPH_USBH2; +#endif writel(periph1_clken, &misc_p->periph1_clken); + return 0; } -- cgit v1.2.1