* [U-Boot] at91: fix a USB problem for AT91SAM9261
@ 2009-05-02 16:05 RONETIX - Ilko Iliev
2009-05-02 19:27 ` Remy Bohmer
0 siblings, 1 reply; 11+ messages in thread
From: RONETIX - Ilko Iliev @ 2009-05-02 16:05 UTC (permalink / raw)
To: u-boot
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 doesn't work.
Signed-off-by: Ilko Iliev <iliev@ronetix.at>
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
index c35319c..4066820 100644
--- a/drivers/usb/host/ohci-at91.c
+++ b/drivers/usb/host/ohci-at91.c
@@ -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)
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-05-02 16:05 RONETIX - Ilko Iliev
@ 2009-05-02 19:27 ` Remy Bohmer
2009-05-02 20:08 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: Remy Bohmer @ 2009-05-02 19:27 UTC (permalink / raw)
To: u-boot
Hello,
2009/5/2 RONETIX - Ilko Iliev <iliev@ronetix.at>:
> 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 doesn't work.
Well, the PLLB should be configured correctly by the AT91-bootstrap
code (from Atmel).
The initialisation of pllb for at91sam9263 was added only because
there was a bug in the Atmel bootstrap code that configured it wrong
for sam9263 only...
The last time I checked it still worked on at91sam9261ek, so what
problems do you see?
Kind Regards,
Remy
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-05-02 19:27 ` Remy Bohmer
@ 2009-05-02 20:08 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-02 20:20 ` Remy Bohmer
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-05-02 20:08 UTC (permalink / raw)
To: u-boot
On 21:27 Sat 02 May , Remy Bohmer wrote:
> Hello,
>
> 2009/5/2 RONETIX - Ilko Iliev <iliev@ronetix.at>:
> > 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 doesn't work.
>
> Well, the PLLB should be configured correctly by the AT91-bootstrap
> code (from Atmel).
no this is the case only if you supposed that you use U-Boot as second
stage bootloader which is not the case for the PM9263, PM9261 and other
boards (9263ek too for norflash boot as example)
As already agree with Atmel dev, the bootstrap will have to init only what
it need to use which is not the case of the USB Host. U-Boot and other binary
will have to take care of it's own init.
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-05-02 20:08 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-05-02 20:20 ` Remy Bohmer
2009-05-02 20:25 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: Remy Bohmer @ 2009-05-02 20:20 UTC (permalink / raw)
To: u-boot
Hello,
>> Well, the PLLB should be configured correctly by the AT91-bootstrap
>> code (from Atmel).
> no this is the case only if you supposed that you use U-Boot as second
> stage bootloader which is not the case for the PM9263, PM9261 and other
> boards (9263ek too for norflash boot as example)
In that case the description is wrong. It states:
> the USB support for all AT91SAM9261 based boards doesn't work.
Look at the word 'ALL', that mislead me here...
> As already agree with Atmel dev, the bootstrap will have to init only what
> it need to use which is not the case of the USB Host. U-Boot and other binary
> will have to take care of it's own init.
I can agree with that.
Kind regards,
Remy
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-05-02 20:20 ` Remy Bohmer
@ 2009-05-02 20:25 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-03 8:16 ` Remy Bohmer
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-05-02 20:25 UTC (permalink / raw)
To: u-boot
On 22:20 Sat 02 May , Remy Bohmer wrote:
> Hello,
>
> >> Well, the PLLB should be configured correctly by the AT91-bootstrap
> >> code (from Atmel).
> > no this is the case only if you supposed that you use U-Boot as second
> > stage bootloader which is not the case for the PM9263, PM9261 and other
> > boards (9263ek too for norflash boot as example)
>
> In that case the description is wrong. It states:
> > the USB support for all AT91SAM9261 based boards doesn't work.
>
> Look at the word 'ALL', that mislead me here...
ok I've not tick on the all
why not replace with
the USB support for all AT91SAM9261 based boards will only work if the PLLB
will be configured by a precedent bootloader.
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-05-02 20:25 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-05-03 8:16 ` Remy Bohmer
0 siblings, 0 replies; 11+ messages in thread
From: Remy Bohmer @ 2009-05-03 8:16 UTC (permalink / raw)
To: u-boot
Hi,
>> In that case the description is wrong. It states:
>> > the USB support for all AT91SAM9261 based boards doesn't work.
>> Look at the word 'ALL', that mislead me here...
> ok I've not tick on the all
>
> why not replace with
> the USB support for all AT91SAM9261 based boards will only work if the PLLB
> will be configured by a precedent bootloader.
OK
Remy
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
@ 2009-06-05 14:54 RONETIX - Ilko Iliev
2009-06-09 18:59 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: RONETIX - Ilko Iliev @ 2009-06-05 14:54 UTC (permalink / raw)
To: u-boot
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>
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
index c35319c..954b657 100644
--- a/drivers/usb/host/ohci-at91.c
+++ b/drivers/usb/host/ohci-at91.c
@@ -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)
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-06-05 14:54 [U-Boot] at91: fix a USB problem for AT91SAM9261 RONETIX - Ilko Iliev
@ 2009-06-09 18:59 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-09 19:17 ` Remy Bohmer
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-06-09 18:59 UTC (permalink / raw)
To: u-boot
On 16:54 Fri 05 Jun , RONETIX - Ilko Iliev wrote:
> 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>
>
> diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
> index c35319c..954b657 100644
Remy will apply for the rc3?
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-06-09 18:59 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-06-09 19:17 ` Remy Bohmer
2009-06-09 19:52 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: Remy Bohmer @ 2009-06-09 19:17 UTC (permalink / raw)
To: u-boot
Hello,
2009/6/9 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>:
> On 16:54 Fri 05 Jun ? ? , RONETIX - Ilko Iliev wrote:
>> 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>
>>
>> diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
>> 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-06-09 19:17 ` Remy Bohmer
@ 2009-06-09 19:52 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-09 20:29 ` Remy Bohmer
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-06-09 19:52 UTC (permalink / raw)
To: u-boot
On 21:17 Tue 09 Jun , Remy Bohmer wrote:
> Hello,
>
> 2009/6/9 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>:
> > On 16:54 Fri 05 Jun ? ? , RONETIX - Ilko Iliev wrote:
> >> 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>
> >>
> >> diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
> >> 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
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
the pm9261 was tested with it and depend on it
(it's support will be send soon)
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [U-Boot] at91: fix a USB problem for AT91SAM9261
2009-06-09 19:52 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-06-09 20:29 ` Remy Bohmer
0 siblings, 0 replies; 11+ messages in thread
From: Remy Bohmer @ 2009-06-09 20:29 UTC (permalink / raw)
To: u-boot
Hello All,
>> 2009/6/9 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>:
>> > On 16:54 Fri 05 Jun ? ? , RONETIX - Ilko Iliev wrote:
>> >> 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>
Applied to U-boot-usb
Thanks!
Remy
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-06-09 20:29 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-05 14:54 [U-Boot] at91: fix a USB problem for AT91SAM9261 RONETIX - Ilko Iliev
2009-06-09 18:59 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-09 19:17 ` Remy Bohmer
2009-06-09 19:52 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-09 20:29 ` Remy Bohmer
-- strict thread matches above, loose matches on Subject: below --
2009-05-02 16:05 RONETIX - Ilko Iliev
2009-05-02 19:27 ` Remy Bohmer
2009-05-02 20:08 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-02 20:20 ` Remy Bohmer
2009-05-02 20:25 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-03 8:16 ` Remy Bohmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox