cns3xxx: use proper macros for defining partition regions
While at it, also reorder the items for improved readability. Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
This commit is contained in:
parent
e29500eb84
commit
ada7322055
1 changed files with 8 additions and 6 deletions
|
@ -114,16 +114,17 @@ static struct laguna_board_info laguna_info __initdata;
|
||||||
static struct mtd_partition laguna_nor_partitions[] = {
|
static struct mtd_partition laguna_nor_partitions[] = {
|
||||||
{
|
{
|
||||||
.name = "uboot",
|
.name = "uboot",
|
||||||
.size = SZ_256K,
|
|
||||||
.offset = 0,
|
.offset = 0,
|
||||||
|
.size = SZ_256K,
|
||||||
.mask_flags = MTD_WRITEABLE,
|
.mask_flags = MTD_WRITEABLE,
|
||||||
}, {
|
}, {
|
||||||
.name = "params",
|
.name = "params",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
.size = SZ_128K,
|
.size = SZ_128K,
|
||||||
.offset = SZ_256K,
|
|
||||||
}, {
|
}, {
|
||||||
.name = "firmware",
|
.name = "firmware",
|
||||||
.offset = SZ_256K + SZ_128K,
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = MTDPART_SIZ_FULL,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -155,16 +156,17 @@ static struct platform_device laguna_nor_pdev = {
|
||||||
static struct mtd_partition laguna_spi_partitions[] = {
|
static struct mtd_partition laguna_spi_partitions[] = {
|
||||||
{
|
{
|
||||||
.name = "uboot",
|
.name = "uboot",
|
||||||
.size = SZ_256K,
|
|
||||||
.offset = 0,
|
.offset = 0,
|
||||||
|
.size = SZ_256K,
|
||||||
.mask_flags = MTD_WRITEABLE,
|
.mask_flags = MTD_WRITEABLE,
|
||||||
}, {
|
}, {
|
||||||
.name = "params",
|
.name = "params",
|
||||||
|
.offset = MTDPART_OFS_APPEND,
|
||||||
.size = SZ_256K,
|
.size = SZ_256K,
|
||||||
.offset = SZ_256K,
|
|
||||||
}, {
|
}, {
|
||||||
.name = "firmware",
|
.name = "firmware",
|
||||||
.offset = SZ_512K,
|
.offset = MTDPART_OFS_APPEND,
|
||||||
|
.size = MTDPART_SIZ_FULL,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue