aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-l2x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r--arch/arm/mm/cache-l2x0.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index e309c8f35af5..71c969a1d790 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -33,6 +33,8 @@
33#include "cache-tauros3.h" 33#include "cache-tauros3.h"
34#include "cache-aurora-l2.h" 34#include "cache-aurora-l2.h"
35 35
36#include <litmus/cache_proc.h>
37
36struct l2c_init_data { 38struct l2c_init_data {
37 const char *type; 39 const char *type;
38 unsigned way_size_0; 40 unsigned way_size_0;
@@ -726,7 +728,6 @@ static void __init l2c310_fixup(void __iomem *base, u32 cache_id,
726 728
727 if (n) { 729 if (n) {
728 unsigned i; 730 unsigned i;
729
730 pr_info("L2C-310 errat%s", n > 1 ? "a" : "um"); 731 pr_info("L2C-310 errat%s", n > 1 ? "a" : "um");
731 for (i = 0; i < n; i++) 732 for (i = 0; i < n; i++)
732 pr_cont(" %s", errata[i]); 733 pr_cont(" %s", errata[i]);
@@ -774,6 +775,11 @@ static const struct l2c_init_data l2c310_init_fns __initconst = {
774 }, 775 },
775}; 776};
776 777
778void l2c310_flush_all(void)
779{
780 l2c210_flush_all();
781};
782
777static int __init __l2c_init(const struct l2c_init_data *data, 783static int __init __l2c_init(const struct l2c_init_data *data,
778 u32 aux_val, u32 aux_mask, u32 cache_id) 784 u32 aux_val, u32 aux_mask, u32 cache_id)
779{ 785{
@@ -876,6 +882,8 @@ static int __init __l2c_init(const struct l2c_init_data *data,
876 pr_info("%s: CACHE_ID 0x%08x, AUX_CTRL 0x%08x\n", 882 pr_info("%s: CACHE_ID 0x%08x, AUX_CTRL 0x%08x\n",
877 data->type, cache_id, aux); 883 data->type, cache_id, aux);
878 884
885 litmus_setup_lockdown(l2x0_base, cache_id);
886
879 return 0; 887 return 0;
880} 888}
881 889