Hello all,
I want to use a m25p80 on my imx53. It gets detected correctly and I configure my kernel to use MTD_parts. So far so good. However,
I'm unable to pass the platformdata for some reason, so the partition information never makes it to the mxc_m25p80 driver...
How I define my spi parts:
static struct mtd_partition nor_flash_partitions[] = {
{
.name = "nor.bootloader",
.offset = 0,
.size = (3 * 128 * 1024)},
{
.name = "nor.bootloader_env",
.offset = MTDPART_OFS_APPEND,
.size = (3 * 128 * 1024)},
{
.name = "nor.kernel",
.offset = MTDPART_OFS_APPEND,
.size = (3 * 1024 * 1024)},
{
.name = "nor.storage",
.offset = MTDPART_OFS_APPEND,
.size = (1 * 512 * 1024)},
};
static struct spi_board_info tlv_imx53_spi_board_info[] = {
{
.modalias = "m25p32", /* spi flash */
.max_speed_hz = 6000000,
.bus_num = 1,
.chip_select = 1,
.platform_data = &mxc_nor_data,
},
{
.modalias = "spidev", /* to fpga */
.max_speed_hz = 6000000,
.bus_num = 2,
.chip_select = 2,
.mode = SPI_MODE_1,
.bits_per_word = 16,
},
};
And in my board_init:
spi_register_board_info(tlv_imx53_spi_board_info,ARRAY_SIZE(tlv_imx53_spi_board_info);
Am I missing something?
Solved! Go to Solution.
You don't show in your code where you pass 'nor_flash_partitions'.
Take a look at arch/arm/mach-imx/mach-armadillo5x0.c or other boards for reference.
You don't show in your code where you pass 'nor_flash_partitions'.
Take a look at arch/arm/mach-imx/mach-armadillo5x0.c or other boards for reference.