Skip to contentSkip to conversation

at91: fix a USB problem for AT91SAM9261

U-Boot RONETIX - Ilko Iliev 3 participants 5 messages Jun 5, 2009 – Jun 9, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

drivers/usb/host/ohci-at91.c +2 -1
index c35319c..954b657 100644
@@ -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)

#1 lore raw

drivers/usb/host/ohci-at91.c

Quoted 10 lines · RONETIX - Ilko Iliev

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.

drivers/usb/host/ohci-at91.c +0 -0
index c35319c..954b657 100644

Remy will apply for the rc3?

Best Regards,
J.

#2 lore raw

Hello,

2009/6/9 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>:

Quoted 7 lines · RONETIX - Ilko Iliev
Quoted 6 lines

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.

Quoted 5 lines

drivers/usb/host/ohci-at91.c

Quoted 4 lines
drivers/usb/host/ohci-at91.c +0 -0
index c35319c..954b657 100644

Remy will apply for the rc3?

OK, I had this patch already on the todo list for (regression) testing... But if I you ack it I will apply it without further testing... ;-)

Kind regards,

Remy

#3 lore raw
Quoted 10 lines · Remy Bohmer

Hello,

2009/6/9 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>:

Quoted 7 lines · RONETIX - Ilko Iliev
Quoted 6 lines

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.

Quoted 8 lines
Quoted 5 lines

drivers/usb/host/ohci-at91.c

Quoted 4 lines
drivers/usb/host/ohci-at91.c +0 -0
index c35319c..954b657 100644

Remy will apply for the rc3?

OK, I had this patch already on the todo list for (regression) testing... But if I you ack it I will apply it without further testing... ;-)

Yes I do

the pm9261 was tested with it and depend on it
(it's support will be send soon)

Best Regards,
J.

#4 lore raw

Hello All,

Quoted 9 lines
Quoted 9 lines

2009/6/9 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>:

Quoted 8 lines · RONETIX - Ilko Iliev
Quoted 7 lines

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.

Applied to U-boot-usb
Thanks!

Remy