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 = 501000*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