]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00234354-1: board-mx6q_sabreauto aline spi-nor partition layout
authorAdrian Alonso <aalonso@freescale.com>
Tue, 20 Nov 2012 23:17:26 +0000 (17:17 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:45 +0000 (08:35 +0200)
* Aline spi-nor partition layout
* set correct chip-select value

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabreauto.c

index 146adad4580e7dc7f5bc0caae9f02c2b3edbd8ce..ee8935f2c6831bc808943e36d8267cd844e38827 100644 (file)
@@ -408,7 +408,13 @@ static struct mtd_partition m25p32_partitions[] = {
        {
                .name   = "bootloader",
                .offset = 0,
-               .size   = 0x00100000,
+               .size   = SZ_256K,
+               .mask_flags = MTD_WRITEABLE,
+       }, {
+               .name   = "bootenv",
+               .offset = MTDPART_OFS_APPEND,
+               .size   = SZ_8K,
+               .mask_flags = MTD_WRITEABLE,
        }, {
                .name   = "kernel",
                .offset = MTDPART_OFS_APPEND,
@@ -429,7 +435,7 @@ static struct spi_board_info m25p32_spi0_board_info[] __initdata = {
                .modalias       = "m25p80",
                .max_speed_hz   = 20000000,
                .bus_num        = 0,
-               .chip_select    = 0,
+               .chip_select    = 1,
                .platform_data  = &m25p32_spi_flash_data,
        },
 };