]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
Xilinx: ARM: Add device tree partitions to NAND and QSPI
authorJohn Linn <john.linn@xilinx.com>
Fri, 17 Jun 2011 20:44:53 +0000 (14:44 -0600)
committerJohn Linn <john.linn@xilinx.com>
Fri, 17 Jun 2011 20:44:53 +0000 (14:44 -0600)
Device trees will be stored in flash eventually and this is
just getting ready for it before NAND and QSPI drivers are
ready for device tree. This is only to make the partitions
match between platform data and device tree operation.

arch/arm/mach-xilinx/devices.c

index 46712dea70f7f18fb69388f23fc00b8a46f025fc..aafc06aae50e51ddb61fce1dff8c5904979a7996 100644 (file)
@@ -476,10 +476,15 @@ static struct mtd_partition nand_flash_partitions[] = {
                .offset         = 0x200000,
        },
        {
-               .name           = "nand-user",
-               .size           = 0x100000,     /* 1MB */
+               .name           = "nand-device-tree",
+               .size           = 0x20000,      /* 5MB */
                .offset         = 0x700000,
        },
+       {
+               .name           = "nand-user",
+               .size           = 0xE0000,      /* 1MB */
+               .offset         = 0x720000,
+       },
        {
                .name           = "nand-scratch",
                .size           = 0x100000,     /* 1MB */
@@ -753,10 +758,15 @@ static struct mtd_partition qspi_flash_partitions[] = {
                .offset         = 0x100000,
        },
        {
-               .name           = "qpsi-user",
-               .size           = 0x100000,
+               .name           = "qpsi-device-tree",
+               .size           = 0x20000,
                .offset         = 0x600000,
        },
+       {
+               .name           = "qpsi-user",
+               .size           = 0xE0000,
+               .offset         = 0x620000,
+       },
        {
                .name           = "qpsi-scratch",
                .size           = 0x100000,