mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-05 06:11:44 +00:00
ARM: uniphier: do not compile v7_outer_cache_disable if L2 is disabled
If CONFIG_UNIPHIER_L2CACHE_ON is undefined, the L2 cache is never enabled, so there is no need for v7_outer_cache_disable(). The weak stub avoids the compile error anyway. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
95a1feca2e
commit
e731a5385d
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,6 @@ void v7_outer_cache_enable(void)
|
||||||
tmp |= UNIPHIER_SSCC_ON;
|
tmp |= UNIPHIER_SSCC_ON;
|
||||||
writel(tmp, UNIPHIER_SSCC);
|
writel(tmp, UNIPHIER_SSCC);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void v7_outer_cache_disable(void)
|
void v7_outer_cache_disable(void)
|
||||||
{
|
{
|
||||||
|
@ -193,6 +192,7 @@ void v7_outer_cache_disable(void)
|
||||||
tmp &= ~UNIPHIER_SSCC_ON;
|
tmp &= ~UNIPHIER_SSCC_ON;
|
||||||
writel(tmp, UNIPHIER_SSCC);
|
writel(tmp, UNIPHIER_SSCC);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void enable_caches(void)
|
void enable_caches(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue