linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Need SPI support
@ 2002-03-11 16:49 barry.fisher
  2002-03-11 18:56 ` Dan Malek
  0 siblings, 1 reply; 3+ messages in thread
From: barry.fisher @ 2002-03-11 16:49 UTC (permalink / raw)
  To: linuxppc-embedded


Hello all!
Does anyone know where I might get some code to support Motorola 8260
Serial Peripheral Interface (SPI) for Linux. Being a newbie at this, it
may be right in front of my nose but I cannot find anything. Any help is
greatly appreciated. Thanks in advance!
Regards,
Barry O. Fisher
Seranoa Networks
barry.fisher@seranoa.com
978-897-3434 x272

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Need SPI support
  2002-03-11 16:49 Need SPI support barry.fisher
@ 2002-03-11 18:56 ` Dan Malek
  2002-03-11 21:03   ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Malek @ 2002-03-11 18:56 UTC (permalink / raw)
  To: barry.fisher; +Cc: linuxppc-embedded


barry.fisher wrote:

> Does anyone know where I might get some code to support Motorola 8260
> Serial Peripheral Interface (SPI) for Linux.

I don't believe there is anything for the 8260.  When I did SPI stuff on
the 8xx it is just buried in others drivers (audio or touch screen). I just
software toggled the bits because the overhead was less than managing
the controller.

The controller set up is trivial, just copy the guts of managing BDs
from something else, like I2C.  The SPI implementations typically have
board specific methods for device selection and devices that may be
sensitive to whether the clock keeps running.  A generic driver is
challenging due to these board variations, but a skeleton driver
would be useful.

Wolfgang, do you have something that isn't checked into BK sources :-)?


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: Need SPI support
  2002-03-11 18:56 ` Dan Malek
@ 2002-03-11 21:03   ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2002-03-11 21:03 UTC (permalink / raw)
  To: Dan Malek; +Cc: barry.fisher, linuxppc-embedded


In message <3C8CFDCD.6080600@embeddededge.com> you wrote:
>
> > Does anyone know where I might get some code to support Motorola 8260
> > Serial Peripheral Interface (SPI) for Linux.
...
> The controller set up is trivial, just copy the guts of managing BDs
> from something else, like I2C.  The SPI implementations typically have
> board specific methods for device selection and devices that may be
> sensitive to whether the clock keeps running.  A generic driver is

... and devices that need frame sync signals, etc.

SPI looks fine as long as you just look at the specification, but you
soon discover the ugly side when you have to use it.

> challenging due to these board variations, but a skeleton driver
> would be useful.
>
> Wolfgang, do you have something that isn't checked into BK sources :-)?

Nothing for the 8260.

In PPCBoot there is a polled  mode  driver  (cpu/mpc8xx/spi.c)  which
could easily be adapted.

The Linux stuff we have on 8xx is (1) not really ready  yet  and  (2)
extremely  special  (building  a multiprocessor system from a 823 and
two DSP's).

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
There are two ways to write error-free programs. Only the  third  one
works.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-03-11 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-11 16:49 Need SPI support barry.fisher
2002-03-11 18:56 ` Dan Malek
2002-03-11 21:03   ` Wolfgang Denk

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).