]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/44x: Support NAND boot for Rev A Warp boards
authorSean MacLennan <smaclennan@pikatech.com>
Tue, 8 Jul 2008 19:00:10 +0000 (05:00 +1000)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Wed, 9 Jul 2008 17:36:39 +0000 (13:36 -0400)
Allow the Rev A Warp boards to boot from NAND.

Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
arch/powerpc/platforms/44x/warp-nand.c

index 7bec2815771a0f74a82f58aebaefc0643189832b..e55746b824b4a78ca08b336e3c613b3a41c96670 100644 (file)
@@ -113,9 +113,14 @@ static int warp_setup_nand_flash(void)
                pp = of_find_property(np, "reg", NULL);
                if (pp && (pp->length == 12)) {
                        u32 *v = pp->value;
-                       if (v[2] == 0x4000000)
+                       if (v[2] == 0x4000000) {
                                /* Rev A = 64M NAND */
-                               warp_nand_chip0.nr_partitions = 2;
+                               warp_nand_chip0.nr_partitions = 3;
+
+                               nand_parts[1].size   = 0x3000000;
+                               nand_parts[2].offset = 0x3200000;
+                               nand_parts[2].size   = 0x0e00000;
+                       }
                }
                of_node_put(np);
        }