linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Revisiting "problem with converting from at91_spi to atmel_spi (AT91RM9200)"
@ 2007-10-01 17:01 LTI. - Ticmanis, Linards
       [not found] ` <37ED64EE21A398409D609EAF7B0525A02164EB-4fFKm6SzF271qYPpFx2fzhn/E98GtLqgrE5yTffgRl4@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: LTI. - Ticmanis, Linards @ 2007-10-01 17:01 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hello to all,

I was wondering if the problem described in the thread "problem with converting from at91_spi to atmel_spi (AT91RM9200)" from last May was ever solved, as I'm currently running into the same trouble. at91_spi works nicely with an at25-driven EEPROM on CS0, but atmel_spi doesn't - it just blocks whatever thread is using it.

While that's no problem in the EEPROM case, a customer wants to use SPI basically as a very fast UART between two AT91RM9200 based boards now, on which only CS0 is available. Is there no other chance than converting the layout to use another CS instead?

Thanks for any hints offered to this kernel newbie,
-- 
Linards Ticmanis
Team Systemsoftware
Skeye Germany
Höft & Wessel AG

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Revisiting "problem with converting from at91_spi to atmel_spi (AT91RM9200)"
       [not found] ` <37ED64EE21A398409D609EAF7B0525A02164EB-4fFKm6SzF271qYPpFx2fzhn/E98GtLqgrE5yTffgRl4@public.gmane.org>
@ 2007-10-03 16:33   ` David Brownell
       [not found]     ` <20071003163358.6C79A235028-ZcXrCSuhvln6VZ3dlLfH/g4gEjPzgfUyLrfjE7I9kuVHxeISYlDBzl6hYfS7NtTn@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: David Brownell @ 2007-10-03 16:33 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	LTI-mKfYHFOTJHu+onKQ3Rj6Dg
  Cc: andrew-eS41wJS13H5l57MIdRCFDg

> I was wondering if the problem described in the thread "problem with
> converting from at91_spi to atmel_spi (AT91RM9200)" from last May
> was ever solved, as I'm currently running into the same trouble.
> at91_spi works nicely with an at25-driven EEPROM on CS0, but atmel_spi
> doesn't - it just blocks whatever thread is using it.

Andrew Victor had partial success after updating the platform setup
code appropriately.  I don't know what the status of that patch is.


> While that's no problem in the EEPROM case, a customer wants to use
> SPI basically as a very fast UART between two AT91RM9200 based boards
> now, on which only CS0 is available. Is there no other chance than
> converting the layout to use another CS instead?

Unfortunately CS0 on rm9200 seems especially full of trouble; from
what I've seen and heard, using another chipselect would be good
just on the basis of the number of CS0-specific errata.

Of course, if you just want UART-ish behavior, you might also be
able to use one of the SSC channels.  The SPI stack aims to handle
master/slave style communication, not peer-to-peer.  When you're
modeling a bidirectional byte stream, that's the wrong model. 
Plus, you'd have fewer chip errata to cope with.

- Dave


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Revisiting "problem with converting from at91_spi to atmel_spi (AT91RM9200)"
       [not found]     ` <20071003163358.6C79A235028-ZcXrCSuhvln6VZ3dlLfH/g4gEjPzgfUyLrfjE7I9kuVHxeISYlDBzl6hYfS7NtTn@public.gmane.org>
@ 2007-10-03 17:00       ` Andrew Victor
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Victor @ 2007-10-03 17:00 UTC (permalink / raw)
  To: David Brownell
  Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	LTI-mKfYHFOTJHu+onKQ3Rj6Dg

hi David,

> Andrew Victor had partial success after updating the platform setup
> code appropriately.  I don't know what the status of that patch is.

I never seemed to get it working consistently with DataFlash.
Changing dataflash_status() to only perform a single transfer made CS0
work.  But no luck with the DataFlash card on CS3 (tried both GPIO and
Periphereral mode).

No problems using the old at91_spi and at91_dataflash though.


Regards,
  Andrew Victor



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-03 17:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-01 17:01 Revisiting "problem with converting from at91_spi to atmel_spi (AT91RM9200)" LTI. - Ticmanis, Linards
     [not found] ` <37ED64EE21A398409D609EAF7B0525A02164EB-4fFKm6SzF271qYPpFx2fzhn/E98GtLqgrE5yTffgRl4@public.gmane.org>
2007-10-03 16:33   ` David Brownell
     [not found]     ` <20071003163358.6C79A235028-ZcXrCSuhvln6VZ3dlLfH/g4gEjPzgfUyLrfjE7I9kuVHxeISYlDBzl6hYfS7NtTn@public.gmane.org>
2007-10-03 17:00       ` Andrew Victor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).