ARM: uniphier: move (and rename) CONFIG_UNIPHIER_L2CACHE_ON to Kconfig
Move this option to Kconfig, renaming it into CONFIG_CACHE_UNIPHIER. The new option name makes sense enough, and the same as Linux has. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
95646e1d75
commit
7382d17826
|
@ -70,6 +70,13 @@ config ARCH_UNIPHIER_LD6B
|
||||||
depends on ARCH_UNIPHIER_PRO5_PXS2_LD6B
|
depends on ARCH_UNIPHIER_PRO5_PXS2_LD6B
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
config CACHE_UNIPHIER
|
||||||
|
bool "Enable the UniPhier L2 cache controller"
|
||||||
|
depends on ARCH_UNIPHIER_32BIT
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
This option allows to use the UniPhier System Cache as L2 cache.
|
||||||
|
|
||||||
config MICRO_SUPPORT_CARD
|
config MICRO_SUPPORT_CARD
|
||||||
bool "Use Micro Support Card"
|
bool "Use Micro Support Card"
|
||||||
help
|
help
|
||||||
|
|
|
@ -206,7 +206,7 @@ void uniphier_cache_disable(void)
|
||||||
uniphier_cache_endisable(0);
|
uniphier_cache_endisable(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_UNIPHIER_L2CACHE_ON
|
#ifdef CONFIG_CACHE_UNIPHIER
|
||||||
void v7_outer_cache_flush_all(void)
|
void v7_outer_cache_flush_all(void)
|
||||||
{
|
{
|
||||||
uniphier_cache_maint_all(UNIPHIER_SSCOQM_CM_FLUSH);
|
uniphier_cache_maint_all(UNIPHIER_SSCOQM_CM_FLUSH);
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
|
|
||||||
#define CONFIG_SYS_CACHELINE_SIZE 32
|
#define CONFIG_SYS_CACHELINE_SIZE 32
|
||||||
|
|
||||||
/* Comment out the following to disable L2 cache */
|
|
||||||
#define CONFIG_UNIPHIER_L2CACHE_ON
|
|
||||||
|
|
||||||
#define CONFIG_DISPLAY_CPUINFO
|
#define CONFIG_DISPLAY_CPUINFO
|
||||||
#define CONFIG_DISPLAY_BOARDINFO
|
#define CONFIG_DISPLAY_BOARDINFO
|
||||||
#define CONFIG_MISC_INIT_F
|
#define CONFIG_MISC_INIT_F
|
||||||
|
|
Loading…
Reference in New Issue