diff options
author | Haojian Zhuang <haojian.zhuang@marvell.com> | 2010-04-28 10:59:45 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-05-11 11:25:04 -0400 |
commit | 66b196475031c748a5861390a4fadb915e14ccdc (patch) | |
tree | eaad4bcc929f4a744bc41c6fe739ef5278105031 /arch/arm/mach-mmp/mmp2.c | |
parent | e598863690d956ad4e18904bb5b6c63fea1ad255 (diff) |
[ARM] mmp: enable L2 in mmp2
Enable Tauros2 L2 in mmp2. Tauros2 L2 is shared in Marvell ARM cores.
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/mmp2.c')
-rw-r--r-- | arch/arm/mach-mmp/mmp2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/mmp2.c b/arch/arm/mach-mmp/mmp2.c index cca39929110f..e236ec0c54f6 100644 --- a/arch/arm/mach-mmp/mmp2.c +++ b/arch/arm/mach-mmp/mmp2.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | 17 | ||
18 | #include <asm/hardware/cache-tauros2.h> | ||
19 | |||
18 | #include <mach/addr-map.h> | 20 | #include <mach/addr-map.h> |
19 | #include <mach/regs-apbc.h> | 21 | #include <mach/regs-apbc.h> |
20 | #include <mach/regs-apmu.h> | 22 | #include <mach/regs-apmu.h> |
@@ -99,6 +101,9 @@ static struct clk_lookup mmp2_clkregs[] = { | |||
99 | static int __init mmp2_init(void) | 101 | static int __init mmp2_init(void) |
100 | { | 102 | { |
101 | if (cpu_is_mmp2()) { | 103 | if (cpu_is_mmp2()) { |
104 | #ifdef CONFIG_CACHE_TAUROS2 | ||
105 | tauros2_init(); | ||
106 | #endif | ||
102 | mfp_init_base(MFPR_VIRT_BASE); | 107 | mfp_init_base(MFPR_VIRT_BASE); |
103 | mfp_init_addr(mmp2_addr_map); | 108 | mfp_init_addr(mmp2_addr_map); |
104 | clkdev_add_table(ARRAY_AND_SIZE(mmp2_clkregs)); | 109 | clkdev_add_table(ARRAY_AND_SIZE(mmp2_clkregs)); |