Unify NOR partitioning on both boards

This commit is contained in:
Matt Sealey
2010-11-13 10:04:22 -06:00
parent 5afbe5a143
commit 686802fda3
2 changed files with 19 additions and 21 deletions

View File

@@ -37,12 +37,17 @@ static struct mtd_partition mx51_efikamx_spi_nor_partitions[] = {
{
.name = "u-boot",
.offset = 0x0,
.size = 0x00040000, /* 256KB */
.size = SZ_256K,
},
{
.name = "config",
.offset = 0x00040000,
.size = 0x00010000, /* 64KB */
.offset = MTDPART_OFS_APPEND,
.size = SZ_64K,
},
{
.name = "spare",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
},
};
@@ -67,4 +72,4 @@ void mx51_efikamx_init_nor(void)
{
(void)spi_register_board_info(mx51_efikamx_spi_board_info,
ARRAY_SIZE(mx51_efikamx_spi_board_info));
}
}

View File

@@ -388,29 +388,22 @@ static struct i2c_board_info mxc_i2c1_board_info[] __initdata = {
#endif
#if defined(CONFIG_MTD) || defined(CONFIG_MTD_MODULE)
static struct mtd_partition mxc_spi_flash_partitions[] = {
{
.name = "redboot",
.offset = 0,
.size = 0x00040000,
.mask_flags = MTD_CAP_ROM,
.name = "u-boot",
.offset = 0x0,
.size = SZ_256K,
},
{
.name = "fis-dir",
.offset = MTDPART_OFS_APPEND,
.size = 0x0000F000,
.mask_flags = MTD_CAP_ROM,
.name = "config",
.offset = MTDPART_OFS_APPEND,
.size = SZ_64K,
},
{
.name = "rb-config",
.offset = MTDPART_OFS_APPEND,
.size = 0x00001000,
.mask_flags = MTD_CAP_ROM,
},
{
.name = "kernel",
.offset = 0x00100000,
.size = MTDPART_SIZ_FULL,
.name = "spare",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
},
};