diff options
author | Nicolas Pitre <nico@cam.org> | 2009-06-02 21:43:45 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2009-06-08 13:05:02 -0400 |
commit | c1191b0e3b5fc080e0b09859024f39c4a8c5d4d5 (patch) | |
tree | a19483259cc2c86af73a1622b4fe179e226e93e8 /arch/arm/mach-kirkwood/addr-map.c | |
parent | fc63b7239a9c939f38450620f773d057b037976b (diff) |
[ARM] Kirkwood: create a mapping for the Security Accelerator SRAM
Always creating the physical mapping should do no harm, so let's remove
the interface that was provided for its optional creation and make the
mapping static.
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-kirkwood/addr-map.c')
-rw-r--r-- | arch/arm/mach-kirkwood/addr-map.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-kirkwood/addr-map.c b/arch/arm/mach-kirkwood/addr-map.c index 5db4f0bbe5ee..1da5d1c18ecb 100644 --- a/arch/arm/mach-kirkwood/addr-map.c +++ b/arch/arm/mach-kirkwood/addr-map.c | |||
@@ -20,6 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | #define TARGET_DDR 0 | 21 | #define TARGET_DDR 0 |
22 | #define TARGET_DEV_BUS 1 | 22 | #define TARGET_DEV_BUS 1 |
23 | #define TARGET_SRAM 3 | ||
23 | #define TARGET_PCIE 4 | 24 | #define TARGET_PCIE 4 |
24 | #define ATTR_DEV_SPI_ROM 0x1e | 25 | #define ATTR_DEV_SPI_ROM 0x1e |
25 | #define ATTR_DEV_BOOT 0x1d | 26 | #define ATTR_DEV_BOOT 0x1d |
@@ -30,6 +31,7 @@ | |||
30 | #define ATTR_DEV_CS0 0x3e | 31 | #define ATTR_DEV_CS0 0x3e |
31 | #define ATTR_PCIE_IO 0xe0 | 32 | #define ATTR_PCIE_IO 0xe0 |
32 | #define ATTR_PCIE_MEM 0xe8 | 33 | #define ATTR_PCIE_MEM 0xe8 |
34 | #define ATTR_SRAM 0x01 | ||
33 | 35 | ||
34 | /* | 36 | /* |
35 | * Helpers to get DDR bank info | 37 | * Helpers to get DDR bank info |
@@ -48,7 +50,6 @@ | |||
48 | 50 | ||
49 | 51 | ||
50 | struct mbus_dram_target_info kirkwood_mbus_dram_info; | 52 | struct mbus_dram_target_info kirkwood_mbus_dram_info; |
51 | static int __initdata win_alloc_count; | ||
52 | 53 | ||
53 | static int __init cpu_win_can_remap(int win) | 54 | static int __init cpu_win_can_remap(int win) |
54 | { | 55 | { |
@@ -112,7 +113,11 @@ void __init kirkwood_setup_cpu_mbus(void) | |||
112 | setup_cpu_win(2, KIRKWOOD_NAND_MEM_PHYS_BASE, KIRKWOOD_NAND_MEM_SIZE, | 113 | setup_cpu_win(2, KIRKWOOD_NAND_MEM_PHYS_BASE, KIRKWOOD_NAND_MEM_SIZE, |
113 | TARGET_DEV_BUS, ATTR_DEV_NAND, -1); | 114 | TARGET_DEV_BUS, ATTR_DEV_NAND, -1); |
114 | 115 | ||
115 | win_alloc_count = 3; | 116 | /* |
117 | * Setup window for SRAM. | ||
118 | */ | ||
119 | setup_cpu_win(3, KIRKWOOD_SRAM_PHYS_BASE, KIRKWOOD_SRAM_SIZE, | ||
120 | TARGET_SRAM, ATTR_SRAM, -1); | ||
116 | 121 | ||
117 | /* | 122 | /* |
118 | * Setup MBUS dram target info. | 123 | * Setup MBUS dram target info. |
@@ -140,8 +145,3 @@ void __init kirkwood_setup_cpu_mbus(void) | |||
140 | } | 145 | } |
141 | kirkwood_mbus_dram_info.num_cs = cs; | 146 | kirkwood_mbus_dram_info.num_cs = cs; |
142 | } | 147 | } |
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 | } | ||