* SPI Driver for 8xx
@ 2002-09-11 8:27 Michael Meriin
2002-09-11 7:48 ` Wolfgang Denk
0 siblings, 1 reply; 6+ messages in thread
From: Michael Meriin @ 2002-09-11 8:27 UTC (permalink / raw)
To: linuxppc-embedded
Hello List,
I am looking for SPI driver for 8xx custom board.
Does anybody have such driver? If yes, how can I pick it up?
Best Regards,
Michael Meriin
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: SPI Driver for 8xx
2002-09-11 8:27 SPI Driver for 8xx Michael Meriin
@ 2002-09-11 7:48 ` Wolfgang Denk
2002-09-11 8:58 ` Michael Meriin
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2002-09-11 7:48 UTC (permalink / raw)
To: Michael Meriin; +Cc: linuxppc-embedded
Dear Michael,
in message <058a01c2596d$171cb5a0$450fa8c0@amitesting> you wrote:
>
> I am looking for SPI driver for 8xx custom board.
> Does anybody have such driver? If yes, how can I pick it up?
We have two versions of SPI drivers for the 8xx in our kernel source:
arch/ppc/8xx_io/cpm_spi.* is a plain simple SPI driver for the
MPC8xx
arch/ppc/8xx_io/lwmon_spi.c contains a more complicated, but very
specialized SPI driver, which might
give you some ideas if you want to do
tricky things
See http://www.denx.de/re/linux.html for instructions how to get the
kernel source from our CVS server.
Hope this helps,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
You Earth people glorified organized violence for forty centuries.
But you imprison those who employ it privately.
-- Spock, "Dagger of the Mind", stardate 2715.1
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: SPI Driver for 8xx
2002-09-11 7:48 ` Wolfgang Denk
@ 2002-09-11 8:58 ` Michael Meriin
2002-09-11 8:28 ` Wolfgang Denk
0 siblings, 1 reply; 6+ messages in thread
From: Michael Meriin @ 2002-09-11 8:58 UTC (permalink / raw)
To: Wolfgang Denk; +Cc: linuxppc-embedded
Dear Wolfgang,
Thank you very much for your quick response.
But I failed to get to : http://www.denx.de/re/linux.html :((
I will be happy to get both drivers, because I have to control several SPI
devices
and therefore the driver must be complicated ;))
Best Regards,
Michael Meriin
----- Original Message -----
From: "Wolfgang Denk" <wd@denx.de>
To: "Michael Meriin" <Michael@KSWaves.com>
Cc: "linuxppc-embedded" <linuxppc-embedded@lists.linuxppc.org>
Sent: Wednesday, September 11, 2002 09:48
Subject: Re: SPI Driver for 8xx
> Dear Michael,
>
> in message <058a01c2596d$171cb5a0$450fa8c0@amitesting> you wrote:
> >
> > I am looking for SPI driver for 8xx custom board.
> > Does anybody have such driver? If yes, how can I pick it up?
>
> We have two versions of SPI drivers for the 8xx in our kernel source:
>
> arch/ppc/8xx_io/cpm_spi.* is a plain simple SPI driver for the
> MPC8xx
>
> arch/ppc/8xx_io/lwmon_spi.c contains a more complicated, but very
> specialized SPI driver, which might
> give you some ideas if you want to do
> tricky things
>
> See http://www.denx.de/re/linux.html for instructions how to get the
> kernel source from our CVS server.
>
> Hope this helps,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
> You Earth people glorified organized violence for forty centuries.
> But you imprison those who employ it privately.
> -- Spock, "Dagger of the Mind", stardate 2715.1
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: SPI Driver for 8xx
2002-09-11 8:58 ` Michael Meriin
@ 2002-09-11 8:28 ` Wolfgang Denk
2002-09-11 9:34 ` Michael Meriin
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2002-09-11 8:28 UTC (permalink / raw)
To: Michael Meriin; +Cc: linuxppc-embedded
Dear Michael,
in message <059501c25971$606eb600$450fa8c0@amitesting> you wrote:
>
> Thank you very much for your quick response.
> But I failed to get to : http://www.denx.de/re/linux.html :((
Which sort of error message do you get?
Alternate way: go to http://www.denx.de , and click on "Software"
> I will be happy to get both drivers, because I have to control several SPI
> devices
> and therefore the driver must be complicated ;))
No, the driver stays as simple as is. You just have to add separated
devices based on how your hardware implements the device select
function.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
"The two most common things in the universe are hydrogen and stupi-
dity."
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <IGEFJKJNHJDCBKALBJLLAEFNFGAA.joakim.tjernlund@lumentis.se>]
* Re: SPI Driver for 8xx
[not found] <IGEFJKJNHJDCBKALBJLLAEFNFGAA.joakim.tjernlund@lumentis.se>
@ 2002-09-11 10:50 ` Wolfgang Denk
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2002-09-11 10:50 UTC (permalink / raw)
To: joakim.tjernlund; +Cc: Michael Meriin, linuxppc-embedded
Dear Jocke,
in message <IGEFJKJNHJDCBKALBJLLAEFNFGAA.joakim.tjernlund@lumentis.se> you wrote:
> Great, I too need a SPI driver for mpc8xx.
:-)
> I took a quick look at the cpm_spi.* driver and looks fine to me, but I have a question:
> The driver turns off interrupts during transmission. The comment in the file
> says: ... we may need to call it from interrupt handlers.
>
> I can not see any call from a interrupt handler in this code. Where is the call(s) from/to
> interrupt handlers? Or is this just a future extension?
We use the SPI communication inside another device driver (for CAN
bus). It is this other driver that will call the SPI I/O function in
it's interrupt handler.
> I would like to keep the interrupts on, if possible.
Feel free to modify the driver according to your needs. It should not
be a problem except for special cases like ours.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
"If the code and the comments disagree, then both are probably
wrong." - Norm Schryer
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-09-11 10:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-11 8:27 SPI Driver for 8xx Michael Meriin
2002-09-11 7:48 ` Wolfgang Denk
2002-09-11 8:58 ` Michael Meriin
2002-09-11 8:28 ` Wolfgang Denk
2002-09-11 9:34 ` Michael Meriin
[not found] <IGEFJKJNHJDCBKALBJLLAEFNFGAA.joakim.tjernlund@lumentis.se>
2002-09-11 10:50 ` 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).