diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-04-28 10:24:10 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:49:00 -0400 |
commit | 805604ef8596968e5f251c69fd92bd3b8f466317 (patch) | |
tree | 9c40d7d4a2bcf3fb5ac810366e174ce4179659d8 /arch/arm/include | |
parent | a4b041a0e25c6e9ccd809b3cb68a98c816e0c967 (diff) |
ARM: l2c: add platform independent core L2 cache OF initialisation
Add a hook into the core ARM code to perform L2 cache initialisation
in a platform independent manner. Platforms still get to indicate
their auxiliary control register values and mask, but the
initialisation call will now be made from generic code.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/mach/arch.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h index 17a3fa2979e8..5249cc3c52f4 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h | |||
@@ -45,6 +45,9 @@ struct machine_desc { | |||
45 | unsigned char reserve_lp1 :1; /* never has lp1 */ | 45 | unsigned char reserve_lp1 :1; /* never has lp1 */ |
46 | unsigned char reserve_lp2 :1; /* never has lp2 */ | 46 | unsigned char reserve_lp2 :1; /* never has lp2 */ |
47 | enum reboot_mode reboot_mode; /* default restart mode */ | 47 | enum reboot_mode reboot_mode; /* default restart mode */ |
48 | unsigned l2c_aux_val; /* L2 cache aux value */ | ||
49 | unsigned l2c_aux_mask; /* L2 cache aux mask */ | ||
50 | void (*l2c_write_sec)(unsigned long, unsigned); | ||
48 | struct smp_operations *smp; /* SMP operations */ | 51 | struct smp_operations *smp; /* SMP operations */ |
49 | bool (*smp_init)(void); | 52 | bool (*smp_init)(void); |
50 | void (*fixup)(struct tag *, char **, | 53 | void (*fixup)(struct tag *, char **, |