davinci: da850/omap-l138: Modify NOR partition info
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>
Wed, 18 Nov 2009 06:18:37 +0000 (11:48 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:29:47 +0000 (13:29 -0800)
On DA850/OMAP-L138, NOR flash partition was starting from offset
ZERO erasing the UBL and u-boot when the complete NOR is erased.
This patch moves the start of the partition to 512K, after the
bootloaders and u-boot env variables.

This patch also creates a new partition on NOR Flash to store
Linux kernel image.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/board-da850-evm.c

index dba22419db0a8c2441f5af5756218bd0e2ae01c2..ac3b5a3448e528c937a75300f0370c4122d38e26 100644 (file)
 
 static struct mtd_partition da850_evm_norflash_partition[] = {
        {
-               .name           = "NOR filesystem",
+               .name           = "bootloaders + env",
                .offset         = 0,
+               .size           = SZ_512K,
+               .mask_flags     = MTD_WRITEABLE,
+       },
+       {
+               .name           = "kernel",
+               .offset         = MTDPART_OFS_APPEND,
+               .size           = SZ_2M,
+               .mask_flags     = 0,
+       },
+       {
+               .name           = "filesystem",
+               .offset         = MTDPART_OFS_APPEND,
                .size           = MTDPART_SIZ_FULL,
                .mask_flags     = 0,
        },