Re: [Ltib] SPI missing

That it's remarkable! What I'm not pretty sure is when you refer to
"Add the necessary SPI support file". I saw the board-phy3250.c file
and I found several lines of code with stuff referring to SPI. Do I
need to add all of them? And what about registering the SPI devices, do
you mean the hardware wich is in the board?

Thank a lot for your answers and help!!!

Regards

Jorge Castro

On 08/25/2010 12:22 PM, Kevin Wells wrote:

Hi
Jorge,

I
just looked at the FDI support for SPI and it’s not in
the board-arm9dimm3250.c file.

The
SPI interface won’t work without a platform driver
registered for it.

This
is what I found in the file…

606
static struct platform_device* arm9dimm3250_devs[]
__initdata = {

607
#if defined(CONFIG_SPI_LPC32XX)

608
&ssp0_device,

609
#endif

610
#if defined(CONFIG_KEYBOARD_LPC32XX)

611
&kscan_device,

612
#endif

But
there is no matching ssp0_device platform structure for it. I
would expect this to generate a compilation error on failure, so the
CONFIG_SPI_LPC32XX
macro check might be a suspect too.

Try
removing the #id/#endif check and recompiling..

606
static struct platform_device* arm9dimm3250_devs[]
__initdata = {

608
&ssp0_device,

610
#if defined(CONFIG_KEYBOARD_LPC32XX)

611
&kscan_device,

612
#endif

Also
add the necessary SPI support above this file. You will
also need to register your SPI devices. This doesn’t seem to be there
either.