Blackfin: bf526-ezbrd/bf527-ezkit: add NAND partition for u-boot
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Sep 2010 02:46:44 +0000 (02:46 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 22 Oct 2010 08:02:02 +0000 (04:02 -0400)
Since these boards can boot out of NAND, make sure we give u-boot its
own partition by default to avoid clobbering it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-bf527/boards/ezbrd.c
arch/blackfin/mach-bf527/boards/ezkit.c

index c975fe88eba387738ee1fb2dd838371d69f2a5c0..6cc64a1e78b963009df363e3254703a909d0d019 100644 (file)
@@ -137,8 +137,12 @@ static struct platform_device ezbrd_flash_device = {
 #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
 static struct mtd_partition partition_info[] = {
        {
-               .name = "linux kernel(nand)",
+               .name = "bootloader(nand)",
                .offset = 0,
+               .size = 0x40000,
+       }, {
+               .name = "linux kernel(nand)",
+               .offset = MTDPART_OFS_APPEND,
                .size = 4 * 1024 * 1024,
        },
        {
index b9eac01d35ff71fa26ea661726f3f0cd9568fbe7..07c132dc41251aa43d0a91ac138c89bd52bb0737 100644 (file)
@@ -222,8 +222,12 @@ static struct platform_device ezkit_flash_device = {
 #if defined(CONFIG_MTD_NAND_BF5XX) || defined(CONFIG_MTD_NAND_BF5XX_MODULE)
 static struct mtd_partition partition_info[] = {
        {
-               .name = "linux kernel(nand)",
+               .name = "bootloader(nand)",
                .offset = 0,
+               .size = 0x40000,
+       }, {
+               .name = "linux kernel(nand)",
+               .offset = MTDPART_OFS_APPEND,
                .size = 4 * 1024 * 1024,
        },
        {