#if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)
static struct mtd_partition mx28evk_flash_part[] = {
{
.name = "bootloader",
.offset = 0,
.size = 2 * 1024 * 1024},
//.mask_flags = MTD_WRITEABLE}, /* read only partition */
{
.name = "env",
.offset = MTDPART_OFS_NXTBLK,
.size = MTDPART_SIZ_FULL},
//.mask_flags = MTD_WRITEABLE}, /* read only partition */
};
static struct flash_platform_data mx28_spi_flash_data = {
.name = "m25p80",
.parts = mx28evk_flash_part,
.nr_parts = ARRAY_SIZE(mx28evk_flash_part),
.type = "m25p32",
};
#endif