diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2007-02-05 08:48:24 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-15 10:08:54 -0500 |
commit | 7770bddb27ea84519486d8bb5d35d36d580c451b (patch) | |
tree | c2f08880317f4e4d102ec3e06e8e169ec62a89b0 /arch/arm/mach-realview | |
parent | 4ba9dcbeba042b7a1a1366f0dc683a2947ca5577 (diff) |
[ARM] 4130/1: Add L220 support to RealView/EB
This patch enables the L220 on the RealView/EB MPCore platform.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r-- | arch/arm/mach-realview/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-realview/Kconfig b/arch/arm/mach-realview/Kconfig index 68bc6b226ec7..35156ca39df7 100644 --- a/arch/arm/mach-realview/Kconfig +++ b/arch/arm/mach-realview/Kconfig | |||
@@ -10,6 +10,7 @@ config MACH_REALVIEW_EB | |||
10 | config REALVIEW_MPCORE | 10 | config REALVIEW_MPCORE |
11 | bool "Support MPcore tile" | 11 | bool "Support MPcore tile" |
12 | depends on MACH_REALVIEW_EB | 12 | depends on MACH_REALVIEW_EB |
13 | select CACHE_L2X0 | ||
13 | help | 14 | help |
14 | Enable support for the MPCore tile on the Realview platform. | 15 | Enable support for the MPCore tile on the Realview platform. |
15 | Since there are device address and interrupt differences, a | 16 | Since there are device address and interrupt differences, a |
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index effe243454e0..3dba666151db 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
32 | #include <asm/hardware/gic.h> | 32 | #include <asm/hardware/gic.h> |
33 | #include <asm/hardware/icst307.h> | 33 | #include <asm/hardware/icst307.h> |
34 | #include <asm/hardware/cache-l2x0.h> | ||
34 | 35 | ||
35 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
36 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
@@ -69,6 +70,11 @@ static struct map_desc realview_eb_io_desc[] __initdata = { | |||
69 | .pfn = __phys_to_pfn(REALVIEW_GIC1_DIST_BASE), | 70 | .pfn = __phys_to_pfn(REALVIEW_GIC1_DIST_BASE), |
70 | .length = SZ_4K, | 71 | .length = SZ_4K, |
71 | .type = MT_DEVICE, | 72 | .type = MT_DEVICE, |
73 | }, { | ||
74 | .virtual = IO_ADDRESS(REALVIEW_MPCORE_L220_BASE), | ||
75 | .pfn = __phys_to_pfn(REALVIEW_MPCORE_L220_BASE), | ||
76 | .length = SZ_8K, | ||
77 | .type = MT_DEVICE, | ||
72 | }, | 78 | }, |
73 | #endif | 79 | #endif |
74 | { | 80 | { |
@@ -170,6 +176,11 @@ static void __init realview_eb_init(void) | |||
170 | { | 176 | { |
171 | int i; | 177 | int i; |
172 | 178 | ||
179 | #ifdef CONFIG_REALVIEW_MPCORE | ||
180 | /* 1MB (128KB/way), 8-way associativity, evmon/parity/share enabled | ||
181 | * Bits: .... ...0 0111 1001 0000 .... .... .... */ | ||
182 | l2x0_init(__io_address(REALVIEW_MPCORE_L220_BASE), 0x00790000, 0xfe000fff); | ||
183 | #endif | ||
173 | clk_register(&realview_clcd_clk); | 184 | clk_register(&realview_clcd_clk); |
174 | 185 | ||
175 | platform_device_register(&realview_flash_device); | 186 | platform_device_register(&realview_flash_device); |