diff options
author | Alex Elder <elder@linaro.org> | 2014-04-21 17:53:07 -0400 |
---|---|---|
committer | Matt Porter <mporter@linaro.org> | 2014-04-25 08:51:35 -0400 |
commit | 7b5fe9c9115c92b7e6297216c789268961a19f98 (patch) | |
tree | a4e2ad11e094d067e9cc80f67440a29023a20608 /arch/arm/mach-bcm/kona.h | |
parent | 35138d52f18c3f757f12d54c0962a755bcf218f3 (diff) |
ARM: bcm: config option for l2 cache support
Add a new config option ARCH_BCM_MOBILE_L2_CACHE that allows support
for level-2 cache to be enabled or disabled at build time for
BCM218XX and BCM21664 family SoCs.
Build support for SMC only if it's required (currently it's only
required for to support level 2 cache control).
If arch/arm/mach-bcm/kona.c gets compiled, ARCH_BCM_MOBILE_L2_CACHE
must have been selected, which implies CONFIG_CACHE_L2X0 is set.
There is therefore no need to check CONFIG_CACHE_L2X0 at the top
of kona_l2_cache_init(), so get rid of that check.
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Markus Mayer <markus.mayer@linaro.org>
Reviewed-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Matt Porter <mporter@linaro.org>
Diffstat (limited to 'arch/arm/mach-bcm/kona.h')
-rw-r--r-- | arch/arm/mach-bcm/kona.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm/kona.h b/arch/arm/mach-bcm/kona.h index 3a7a017c29cd..110185f7aad3 100644 --- a/arch/arm/mach-bcm/kona.h +++ b/arch/arm/mach-bcm/kona.h | |||
@@ -11,4 +11,9 @@ | |||
11 | * GNU General Public License for more details. | 11 | * GNU General Public License for more details. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #ifdef CONFIG_ARCH_BCM_MOBILE_L2_CACHE | ||
15 | |||
14 | void __init kona_l2_cache_init(void); | 16 | void __init kona_l2_cache_init(void); |
17 | #else | ||
18 | #define kona_l2_cache_init() ((void)0) | ||
19 | #endif | ||