aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/setup-shx3.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-08-08 04:06:54 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-09-20 22:57:49 -0400
commitd3428e91017f2ecf5655b3ffdf6ed65f5430ade1 (patch)
tree69035a9da61d0dbb8f152b7b412fb65be6bd0a9c /arch/sh/kernel/cpu/sh4a/setup-shx3.c
parent1760b7d760b2804a87affcb8ec74edde8812a1ea (diff)
sh: Wire up CSM node for SH-X3.
Now that NODES_SHIFT is bumped up, we can plug in the CSM block as a separate node, too. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-shx3.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/setup-shx3.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-shx3.c b/arch/sh/kernel/cpu/sh4a/setup-shx3.c
index f7a2cc221d22..98f153554deb 100644
--- a/arch/sh/kernel/cpu/sh4a/setup-shx3.c
+++ b/arch/sh/kernel/cpu/sh4a/setup-shx3.c
@@ -258,14 +258,17 @@ void __init plat_irq_setup(void)
258 258
259void __init plat_mem_setup(void) 259void __init plat_mem_setup(void)
260{ 260{
261 unsigned int nid = 1;
262
261 /* Register CPU#0 URAM space as Node 1 */ 263 /* Register CPU#0 URAM space as Node 1 */
262 setup_bootmem_node(1, 0x145f0000, 0x14610000); /* CPU0 */ 264 setup_bootmem_node(nid++, 0x145f0000, 0x14610000); /* CPU0 */
263 265
264#if 0 266#if 0
265 /* XXX: Not yet.. */ 267 /* XXX: Not yet.. */
266 setup_bootmem_node(2, 0x14df0000, 0x14e10000); /* CPU1 */ 268 setup_bootmem_node(nid++, 0x14df0000, 0x14e10000); /* CPU1 */
267 setup_bootmem_node(3, 0x155f0000, 0x15610000); /* CPU2 */ 269 setup_bootmem_node(nid++, 0x155f0000, 0x15610000); /* CPU2 */
268 setup_bootmem_node(4, 0x15df0000, 0x15e10000); /* CPU3 */ 270 setup_bootmem_node(nid++, 0x15df0000, 0x15e10000); /* CPU3 */
269 setup_bootmem_node(5, 0x16000000, 0x16020000); /* CSM */
270#endif 271#endif
272
273 setup_bootmem_node(nid++, 0x16000000, 0x16020000); /* CSM */
271} 274}