Add a spi nand flash device

hi everyone:
I am using is Legato system (AR7556 ),It is to support the spi bus。Now I need to transplant a spi nand flash device,

I can’t read nand flash ID now。Manufacturers say it’s maybe spi host controller’s configuration is not correct. I’m not very understanding of Legato.

soI try to follow my train of thought to solve.The following code is my increase spi device:

arcn/arm/mach-msm/board-9615.c

[code]/* MDM9X15 SPI /
static struct spi_board_info giga_spi_info[] __initdata = {
{
.modalias = “giga_spinand”,
.max_speed_hz = 50
1000*1000,
.bus_num = 0,
.chip_select = 0,
.mode = SPI_MODE_0,
},
};

static void __init msm9615_spi_init(void){

spi_register_board_info(giga_spi_info,ARRAY_SIZE(giga_spi_info));
printk("~~~~spi register board info is successful giga nand flash!~~~~\n");

}
static void __init msm9615_common_init(void){

msm9615_spi_init();

}
[/code]

I am in accordance with the ordinary method.Now read or not to come out nand flash ID! Am I missing something?

Hope you reply

vincent
B/R

Hi,
Can you try with the latest Legato framework?
We are planning to launch a new forum specifically for legato (Details will be announced soon). You can post your legato specific issues there :smiley:

Regards,
Moderator