linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Using SPI in lite5200
@ 2007-12-27 10:59 Miguel Angel Alvarez
  2007-12-27 15:17 ` Miguel Angel Alvarez
  0 siblings, 1 reply; 2+ messages in thread
From: Miguel Angel Alvarez @ 2007-12-27 10:59 UTC (permalink / raw)
  To: linuxppc-embedded

Hi.

We are trying to use the SPI subsystem in the MPC5200 to write a driver=20
that supports SC16IS752 (SPI->2 UARTs).

Although I have read the spi-summary in the Documentation of the kernel, =

I am not quite sure of having understood all the pieces that I require=20
to make the system work.

First of all, I am using the SPI associated to PSC3, so in  the=20
mpc52xx_devices.c I have added a "[MPC52xx_PSC_SPI]" entry with exactly=20
the same parameters as "[MPC52xx_PSC3]", except for the name, which I=20
assign to mpc52xx-psc-spi (I suppose this is the correct driver for the=20
master of the SPI bus).

That is:
[MPC52xx_PSC_SPI] =3D {
        .name        =3D "mpc52xx-psc-spi",
        .id        =3D 2,
        .num_resources    =3D 2,
        .resource    =3D (struct resource[]) {
            {
                .start    =3D 0x2400,
                .end    =3D 0x249f,
                .flags    =3D IORESOURCE_MEM,
            },
            {
                .start    =3D MPC52xx_PSC3_IRQ,
                .end    =3D MPC52xx_PSC3_IRQ,
                .flags    =3D IORESOURCE_IRQ,
            },
        },
    },

My question is: Am I using the correct IRQ? Where can I find which is=20
the correct one?

Thanks

Miguel =C1ngel=20
=20
----------------------------------------- PLEASE NOTE =
-------------------------------------------
This message, along with any attachments, may be confidential or legally =
privileged.=20
It is intended only for the named person(s), who is/are the only =
authorized recipients.
If this message has reached you in error, kindly destroy it without =
review and notify the sender immediately.
Thank you for your help.
ZIV uses virus scanning software but excludes any liability for viruses =
contained in any attachment.
=20
------------------------------------ ROGAMOS LEA ESTE TEXTO =
-------------------------------
Este mensaje y sus anexos pueden contener informaci=F3n confidencial y/o =
con derecho legal.=20
Est=E1 dirigido =FAnicamente a la/s persona/s o entidad/es rese=F1adas =
como =FAnico destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elim=EDnelo sin =
revisarlo ni reenviarlo y notif=EDquelo inmediatamente al remitente. =
Gracias por su colaboraci=F3n. =20
ZIV utiliza software antivirus, pero no se hace responsable de los virus =
contenidos en los ficheros anexos.

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

* Re: Using SPI in lite5200
  2007-12-27 10:59 Using SPI in lite5200 Miguel Angel Alvarez
@ 2007-12-27 15:17 ` Miguel Angel Alvarez
  0 siblings, 0 replies; 2+ messages in thread
From: Miguel Angel Alvarez @ 2007-12-27 15:17 UTC (permalink / raw)
  To: Miguel Angel Alvarez; +Cc: linuxppc-embedded

Hi

It seems the problem is much harder that I thought. I was trying to use=20
SPI_MOSI, SPI_MISO, SPI_SS and SPI_CLK lines in the PSC3 of my MPC5200,=20
and this made me thought that I could use the "mpc52xx-psc-spi" driver.

Reading better the user guide, I have found that the "mpc52xx-psc-spi"=20
driver is related to the "codec" spi of the PSC3 and not to the SPI=20
subsystem. Am I right?

In this case... Which code should I use as "master driver"?=20
mpc52xx-devices.c talks about a "mpc52xx-spi" driver, but I cannot find=20
it. Does it exist?

All suggestions will be appreciated.

Thanks

Miguel =C1ngel=20
=20
----------------------------------------- PLEASE NOTE =
-------------------------------------------
This message, along with any attachments, may be confidential or legally =
privileged.=20
It is intended only for the named person(s), who is/are the only =
authorized recipients.
If this message has reached you in error, kindly destroy it without =
review and notify the sender immediately.
Thank you for your help.
=B5SysCom uses virus scanning software but excludes any liability for =
viruses contained in any attachment.
=20
------------------------------------ ROGAMOS LEA ESTE TEXTO =
-------------------------------
Este mensaje y sus anexos pueden contener informaci=F3n confidencial y/o =
con derecho legal.=20
Est=E1 dirigido =FAnicamente a la/s persona/s o entidad/es rese=F1adas =
como =FAnico destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elim=EDnelo sin =
revisarlo ni reenviarlo y notif=EDquelo inmediatamente al remitente. =
Gracias por su colaboraci=F3n. =20
=B5SysCom utiliza software antivirus, pero no se hace responsable de los =
virus contenidos en los ficheros anexos.

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

end of thread, other threads:[~2007-12-27 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-27 10:59 Using SPI in lite5200 Miguel Angel Alvarez
2007-12-27 15:17 ` Miguel Angel Alvarez

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