[linux-yocto] [PATCH 79/89] arm/mach-axxia: L3 Cache is not available in simulation!
Paul Butler
butler.paul at gmail.com
Sun Oct 27 12:33:44 PDT 2013
From: John Jacques <john.jacques at lsi.com>
Signed-off-by: John Jacques <john.jacques at lsi.com>
---
arch/arm/mach-axxia/axxia.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-axxia/axxia.c b/arch/arm/mach-axxia/axxia.c
index 4d3b476..df63dbd 100644
--- a/arch/arm/mach-axxia/axxia.c
+++ b/arch/arm/mach-axxia/axxia.c
@@ -232,7 +232,7 @@ l3_set_pstate(void __iomem *l3ctrl, unsigned int req, unsigned int act)
if (0 == retries)
return -ENODEV;
-
+ }
return 0;
}
@@ -243,6 +243,7 @@ void __init axxia_dt_init(void)
int rc;
/* Enable L3-cache */
+#ifndef CONFIG_ARCH_AXXIA_SIM
l3ctrl = ioremap(0x2000000000ULL, SZ_4M);
if (l3ctrl) {
rc = l3_set_pstate(l3ctrl, 0x3, 0xc);
@@ -252,6 +253,7 @@ void __init axxia_dt_init(void)
} else {
pr_warn("axxia: Failed to map L3-cache control regs\n");
}
+#endif
of_platform_populate(NULL, of_default_bus_match_table,
axxia_auxdata_lookup, NULL);
--
1.8.3.4
More information about the linux-yocto
mailing list