diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-08-31 01:39:19 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2008-09-25 16:27:22 -0400 |
commit | 2d0c9e735ab8413d3cf29576ab14e07f7aa8eab9 (patch) | |
tree | e1e0ba6f4f874c1d9988f3bbca77d620dc8ab2bf /arch/arm/mach-kirkwood/addr-map.c | |
parent | 3a64ebc9ce3d5a364b50fe78ca9c2c507b765784 (diff) |
[ARM] Kirkwood: allow configuring mbus window for on-chip sram
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'arch/arm/mach-kirkwood/addr-map.c')
-rw-r--r-- | arch/arm/mach-kirkwood/addr-map.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/addr-map.c b/arch/arm/mach-kirkwood/addr-map.c index c79f492072f9..5db4f0bbe5ee 100644 --- a/arch/arm/mach-kirkwood/addr-map.c +++ b/arch/arm/mach-kirkwood/addr-map.c | |||
@@ -48,6 +48,7 @@ | |||
48 | 48 | ||
49 | 49 | ||
50 | struct mbus_dram_target_info kirkwood_mbus_dram_info; | 50 | struct mbus_dram_target_info kirkwood_mbus_dram_info; |
51 | static int __initdata win_alloc_count; | ||
51 | 52 | ||
52 | static int __init cpu_win_can_remap(int win) | 53 | static int __init cpu_win_can_remap(int win) |
53 | { | 54 | { |
@@ -111,6 +112,8 @@ void __init kirkwood_setup_cpu_mbus(void) | |||
111 | setup_cpu_win(2, KIRKWOOD_NAND_MEM_PHYS_BASE, KIRKWOOD_NAND_MEM_SIZE, | 112 | setup_cpu_win(2, KIRKWOOD_NAND_MEM_PHYS_BASE, KIRKWOOD_NAND_MEM_SIZE, |
112 | TARGET_DEV_BUS, ATTR_DEV_NAND, -1); | 113 | TARGET_DEV_BUS, ATTR_DEV_NAND, -1); |
113 | 114 | ||
115 | win_alloc_count = 3; | ||
116 | |||
114 | /* | 117 | /* |
115 | * Setup MBUS dram target info. | 118 | * Setup MBUS dram target info. |
116 | */ | 119 | */ |
@@ -137,3 +140,8 @@ void __init kirkwood_setup_cpu_mbus(void) | |||
137 | } | 140 | } |
138 | kirkwood_mbus_dram_info.num_cs = cs; | 141 | kirkwood_mbus_dram_info.num_cs = cs; |
139 | } | 142 | } |
143 | |||
144 | void __init kirkwood_setup_sram_win(u32 base, u32 size) | ||
145 | { | ||
146 | setup_cpu_win(win_alloc_count++, base, size, 0x03, 0x00, -1); | ||
147 | } | ||