diff options
-rw-r--r-- | arch/powerpc/platforms/44x/warp-nand.c | 9 |
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 | } |