From 7da3b8ef662af6252aa17c55cc0aa6d74cbf02e4 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Wed, 1 Aug 2007 17:52:47 +0900 Subject: sh: Initial multiple-node support for SH-X3. Wire up CPU#0 URAM as node 1 on SH-X3. Signed-off-by: Paul Mundt --- arch/sh/kernel/cpu/sh4a/setup-shx3.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'arch/sh/kernel') diff --git a/arch/sh/kernel/cpu/sh4a/setup-shx3.c b/arch/sh/kernel/cpu/sh4a/setup-shx3.c index 7f3fa5167c6b..f7a2cc221d22 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/setup-shx3.c @@ -255,3 +255,17 @@ void __init plat_irq_setup(void) { register_intc_controller(&intc_desc); } + +void __init plat_mem_setup(void) +{ + /* Register CPU#0 URAM space as Node 1 */ + setup_bootmem_node(1, 0x145f0000, 0x14610000); /* CPU0 */ + +#if 0 + /* XXX: Not yet.. */ + setup_bootmem_node(2, 0x14df0000, 0x14e10000); /* CPU1 */ + setup_bootmem_node(3, 0x155f0000, 0x15610000); /* CPU2 */ + setup_bootmem_node(4, 0x15df0000, 0x15e10000); /* CPU3 */ + setup_bootmem_node(5, 0x16000000, 0x16020000); /* CSM */ +#endif +} -- cgit v1.2.3