This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am3352 spi flash读的id全为f

Other Parts Discussed in Thread: AM3352

root@SBC8600:/media/mmcblk0p1# insmod spi-omap2-mcspi.ko
m25p80 spi1.0: unrecognized JEDEC id ffffff

搞了一阵子,终于搞明白am335x的spi怎么用了

目前spi的两个口都接出来了,spi0接到一片spi flash

型号为

mx66l51235f

但是读出来的id是全为f

我已经在m25p80.c中加入对应的flash信息

{ "mx66l51235f", INFO(0xc2201a, 0, 64 * 1024, 512, 0) },

不知道是怎么回事

static struct spi_board_info am335x_spi0_slave_info[] = {
{
.modalias = "m25p80",
.platform_data = &am335x_spi_flash,
.irq = -1,
///.max_speed_hz = 24000000,
.max_speed_hz = 48000000,
.bus_num = 1,
.chip_select = 0,
},
};

频率用24000000和48000000都试过,都是一样的

求指导

q1833630366