* [U-Boot] at91 spi bus speed
@ 2011-02-15 11:56 wouter moors
2011-02-15 20:08 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: wouter moors @ 2011-02-15 11:56 UTC (permalink / raw)
To: u-boot
Hi,
I'm experiencing some strange spi behaviour with an at91sam9g20.
I changed the spi_xfer code (atmel_spi.c) to make use of the PDC that the
at91sam9g20 offers. This works fine, but only up to an spi bus speed of 10
to 12 MHz. After that I see the CS going down sometimes before the transfer
is complete. When the frequency is increased the issue starts appearing more
often.
I saw that in env_sf.c that the spi bus speed is set at 10 MHz and was
wondering if there was a specific reason for that?
10 MHz is acceptible but I would like to understand what is happening, so if
anybody experienced and maybe even investigated the problem, please let me
know.
Wouter Moors
--
there's only 10 kinds of people. The ones that understand binary and the
ones that don't.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] at91 spi bus speed
2011-02-15 11:56 [U-Boot] at91 spi bus speed wouter moors
@ 2011-02-15 20:08 ` Mike Frysinger
2011-02-16 8:26 ` wouter moors
0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2011-02-15 20:08 UTC (permalink / raw)
To: u-boot
On Tuesday, February 15, 2011 06:56:42 wouter moors wrote:
> I saw that in env_sf.c that the spi bus speed is set at 10 MHz and was
> wondering if there was a specific reason for that?
you mean it defaults to 10 MHz. boards can freely pick anything they want.
some speed needed to be arbitrarily picked, and 10 MHz should work with every
spi flash out there.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110215/97c43a4b/attachment.pgp
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] at91 spi bus speed
2011-02-15 20:08 ` Mike Frysinger
@ 2011-02-16 8:26 ` wouter moors
2011-02-17 5:00 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: wouter moors @ 2011-02-16 8:26 UTC (permalink / raw)
To: u-boot
So the 10MHz is a safe value I guess.
But I was wondering most why the bus speed seems to be limited to ~12MHz. Is
that a limitation of the at91sam9g20 or more likely a problem with the board
design?
On Tue, Feb 15, 2011 at 9:08 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Tuesday, February 15, 2011 06:56:42 wouter moors wrote:
> > I saw that in env_sf.c that the spi bus speed is set at 10 MHz and was
> > wondering if there was a specific reason for that?
>
> you mean it defaults to 10 MHz. boards can freely pick anything they want.
> some speed needed to be arbitrarily picked, and 10 MHz should work with
> every
> spi flash out there.
> -mike
>
--
there's only 10 kinds of people. The ones that understand binary and the
ones that don't.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] at91 spi bus speed
2011-02-16 8:26 ` wouter moors
@ 2011-02-17 5:00 ` Mike Frysinger
0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2011-02-17 5:00 UTC (permalink / raw)
To: u-boot
On Wednesday, February 16, 2011 03:26:00 wouter moors wrote:
please dont top post
> But I was wondering most why the bus speed seems to be limited to ~12MHz.
> Is that a limitation of the at91sam9g20 or more likely a problem with the
> board design?
i was merely covering a question on common code. ive never used u-boot on an
arm part let alone the one you quote, so i dont have a clue in that regard.
sorry.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110217/9a5e75e5/attachment.pgp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-02-17 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 11:56 [U-Boot] at91 spi bus speed wouter moors
2011-02-15 20:08 ` Mike Frysinger
2011-02-16 8:26 ` wouter moors
2011-02-17 5:00 ` Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox