diff options
| -rw-r--r-- | arch/arm/mach-nomadik/cpu-8815.c | 8 | ||||
| -rw-r--r-- | arch/arm/mm/Kconfig | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-nomadik/cpu-8815.c b/arch/arm/mach-nomadik/cpu-8815.c index 9917a9abdb52..f93c59634191 100644 --- a/arch/arm/mach-nomadik/cpu-8815.c +++ b/arch/arm/mach-nomadik/cpu-8815.c | |||
| @@ -27,6 +27,9 @@ | |||
| 27 | #include <asm/mach/map.h> | 27 | #include <asm/mach/map.h> |
| 28 | #include <asm/hardware/vic.h> | 28 | #include <asm/hardware/vic.h> |
| 29 | 29 | ||
| 30 | #include <asm/cacheflush.h> | ||
| 31 | #include <asm/hardware/cache-l2x0.h> | ||
| 32 | |||
| 30 | /* The 8815 has 4 GPIO blocks, let's register them immediately */ | 33 | /* The 8815 has 4 GPIO blocks, let's register them immediately */ |
| 31 | static struct nmk_gpio_platform_data cpu8815_gpio[] = { | 34 | static struct nmk_gpio_platform_data cpu8815_gpio[] = { |
| 32 | { | 35 | { |
| @@ -125,9 +128,12 @@ void __init cpu8815_init_irq(void) | |||
| 125 | 128 | ||
| 126 | /* | 129 | /* |
| 127 | * This function is called from the board init ("init_machine"). | 130 | * This function is called from the board init ("init_machine"). |
| 128 | * Currently nothing is done as we can't register amba devs so early. | ||
| 129 | */ | 131 | */ |
| 130 | void __init cpu8815_platform_init(void) | 132 | void __init cpu8815_platform_init(void) |
| 131 | { | 133 | { |
| 134 | #ifdef CONFIG_CACHE_L2X0 | ||
| 135 | /* At full speed latency must be >=2, so 0x249 in low bits */ | ||
| 136 | l2x0_init(io_p2v(NOMADIK_L2CC_BASE), 0x00730249, 0xfe000fff); | ||
| 137 | #endif | ||
| 132 | return; | 138 | return; |
| 133 | } | 139 | } |
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 83c025e72ceb..5fe595aeba69 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig | |||
| @@ -758,7 +758,7 @@ config CACHE_FEROCEON_L2_WRITETHROUGH | |||
| 758 | config CACHE_L2X0 | 758 | config CACHE_L2X0 |
| 759 | bool "Enable the L2x0 outer cache controller" | 759 | bool "Enable the L2x0 outer cache controller" |
| 760 | depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ | 760 | depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \ |
| 761 | REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX | 761 | REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31 || MACH_REALVIEW_PBX || ARCH_NOMADIK |
| 762 | default y | 762 | default y |
| 763 | select OUTER_CACHE | 763 | select OUTER_CACHE |
| 764 | help | 764 | help |
