at91: fix a USB problem for AT91SAM9261
authorRONETIX - Ilko Iliev <iliev@ronetix.at>
Fri, 5 Jun 2009 14:54:31 +0000 (16:54 +0200)
committerRemy Bohmer <linux@bohmer.net>
Tue, 9 Jun 2009 20:25:48 +0000 (22:25 +0200)
This patch corrects the missing PLLB initialization in usb_cpu_init()
for AT91SAM9261.
Because of the missing PLLB initialization, the USB support for all
AT91SAM9261 based boards will work only if the PLLB is configured by a
precedent bootloader.

Signed-off-by: Ilko Iliev <iliev@ronetix.at>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Remy Bohmer <linux@bohmer.net>
drivers/usb/host/ohci-at91.c

index c35319c1cbe8d60e5ec0fd1c5035f9950fa227bb..226859a4452f61560c7a0e46a691bfdc208dc0f3 100644 (file)
@@ -34,7 +34,8 @@ int usb_cpu_init(void)
 {
 
 #if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
-    defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20)
+    defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
+    defined(CONFIG_AT91SAM9261)
        /* Enable PLLB */
        at91_sys_write(AT91_CKGR_PLLBR, get_pllb_init());
        while ((at91_sys_read(AT91_PMC_SR) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB)