m25p80 and partitions on imx53

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

m25p80 and partitions on imx53

Jump to solution
848 Views
woutervh
Contributor IV

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?

Labels (2)
0 Kudos
1 Solution
614 Views
fabio_estevam
NXP Employee
NXP Employee

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.

View solution in original post

0 Kudos
1 Reply
615 Views
fabio_estevam
NXP Employee
NXP Employee

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.

0 Kudos