aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/44x
diff options
context:
space:
mode:
authorSean MacLennan <smaclennan@pikatech.com>2008-07-08 15:00:10 -0400
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>2008-07-09 13:36:39 -0400
commit4248652d4f3ce6be1a94c77ddbfeb937af1df800 (patch)
tree74a9f94d67ab5bce55630ab9c8b401649eeac4a1 /arch/powerpc/platforms/44x
parent1bc54c03117b90716e0dedd7abb2a20405de65df (diff)
powerpc/44x: Support NAND boot for Rev A Warp boards
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>
Diffstat (limited to 'arch/powerpc/platforms/44x')
-rw-r--r--arch/powerpc/platforms/44x/warp-nand.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/44x/warp-nand.c b/arch/powerpc/platforms/44x/warp-nand.c
index 7bec2815771a..e55746b824b4 100644
--- a/arch/powerpc/platforms/44x/warp-nand.c
+++ b/arch/powerpc/platforms/44x/warp-nand.c
@@ -113,9 +113,14 @@ static int warp_setup_nand_flash(void)
113 pp = of_find_property(np, "reg", NULL); 113 pp = of_find_property(np, "reg", NULL);
114 if (pp && (pp->length == 12)) { 114 if (pp && (pp->length == 12)) {
115 u32 *v = pp->value; 115 u32 *v = pp->value;
116 if (v[2] == 0x4000000) 116 if (v[2] == 0x4000000) {
117 /* Rev A = 64M NAND */ 117 /* Rev A = 64M NAND */
118 warp_nand_chip0.nr_partitions = 2; 118 warp_nand_chip0.nr_partitions = 3;
119
120 nand_parts[1].size = 0x3000000;
121 nand_parts[2].offset = 0x3200000;
122 nand_parts[2].size = 0x0e00000;
123 }
119 } 124 }
120 of_node_put(np); 125 of_node_put(np);
121 } 126 }