summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAdrian Alonso <aalonso@freescale.com>2012-11-20 18:25:40 -0600
committerJason Liu <r64343@freescale.com>2012-11-28 16:57:01 +0800
commitbb43ffa36d84a7d2e54c6a4296442dccdeb0c21a (patch)
treea7b38cc28f4e6d3f6e8c0064683936a29e5f40ce /arch
parent6e2ae1bdb0160c62affe4d751ab55a9f8265cf2a (diff)
ENGR00234354-2: board-mx6q_sabreauto aline weim-nor partition layout
* Aline weim-nor partition layout with u-boot expected offtsets "bootloader" /dev/mtd0 "bootenv" /dev/mtd1 "kernel" /dev/mtd2 "rootfs" /dev/mtd3 Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_sabreauto.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_sabreauto.c b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
index ee8935f2c683..95b9e0a95af3 100644
--- a/arch/arm/mach-mx6/board-mx6q_sabreauto.c
+++ b/arch/arm/mach-mx6/board-mx6q_sabreauto.c
@@ -444,17 +444,29 @@ static void spi_device_init(void)
spi_register_board_info(m25p32_spi0_board_info,
ARRAY_SIZE(m25p32_spi0_board_info));
}
+
static struct mtd_partition mxc_nor_partitions[] = {
{
- .name = "Bootloader",
+ .name = "bootloader",
.offset = 0,
- .size = 0x00080000,
+ .size = SZ_256K,
+ .mask_flags = MTD_WRITEABLE,
}, {
- .name = "nor.Kernel",
+ .name = "bootenv",
+ .offset = MTDPART_OFS_APPEND,
+ .size = SZ_256K,
+ .mask_flags = MTD_WRITEABLE,
+ }, {
+ .name = "kernel",
.offset = MTDPART_OFS_APPEND,
+ .size = SZ_4M,
+ }, {
+ .name = "rootfs",
+ .offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
},
};
+
static struct resource nor_flash_resource = {
.start = CS0_BASE_ADDR,
.end = CS0_BASE_ADDR + 0x02000000 - 1,