psc and spi

S. Fricke silvio.fricke at googlemail.com
Thu Jan 17 18:36:50 EST 2008


HeHo,

> > I have on the psc3 the spi-interface of a fpga connected.
> >
> > [...]
> >
> > Can I use the mpc52xx_psc_spi-driver? And if yes, how I have to use this
> > driver?  Or must I write a own spi-master/slave thing? Can anyone point me
> > to a good start-position?
> 
> Yes, you should be able to use the mpc52xx_psc_spi driver.  You'' need
> to add the activate_cs and deactivate_cs hooks in your platform code
> to activate your SPI CS lines.  You'll also need to set port_config to
> have the PSC3 pins in "CODEC3" mode.

What is the mostly used way for that?

I think, firstly I must define a "fsl_spi_platform_data"-structure, for use
in a "platform_device"-structure. And now I register this "device" with
"platform_device_register".
Or what is the appropriate way?

Best Regards,
Silvio Fricke

-- 
-- S. Fricke ----------------------------- MAILTO:silvio.fricke at gmail.com --
   Diplom-Informatiker (FH)
   Linux-Entwicklung
----------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080117/f6584059/attachment.pgp>


More information about the Linuxppc-dev mailing list