Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137249
b: refs/heads/master
c: cb88214
h: refs/heads/master
i:
  137247: d03443f
v: v3
  • Loading branch information
Sascha Hauer committed Mar 13, 2009
1 parent 50e6c68 commit f0031a4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9536ff33619e13fcc4bd16354faea97dba244f73
refs/heads/master: cb88214d726b337d49c1f65cbc5e5ac85837b11b
27 changes: 26 additions & 1 deletion trunk/arch/arm/mach-mx3/mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@

#include <linux/mm.h>
#include <linux/init.h>
#include <mach/hardware.h>
#include <linux/err.h>

#include <asm/pgtable.h>
#include <asm/mach/map.h>
#include <asm/hardware/cache-l2x0.h>

#include <mach/common.h>
#include <mach/hardware.h>

/*!
* @file mm.c
Expand Down Expand Up @@ -62,3 +66,24 @@ void __init mxc_map_io(void)
{
iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc));
}

#ifdef CONFIG_CACHE_L2X0
static int mxc_init_l2x0(void)
{
void __iomem *l2x0_base;

l2x0_base = ioremap(L2CC_BASE_ADDR, 4096);
if (IS_ERR(l2x0_base)) {
printk(KERN_ERR "remapping L2 cache area failed with %ld\n",
PTR_ERR(l2x0_base));
return 0;
}

l2x0_init(l2x0_base, 0x00030024, 0x00000000);

return 0;
}

arch_initcall(mxc_init_l2x0);
#endif

3 changes: 2 additions & 1 deletion trunk/arch/arm/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,8 @@ config CACHE_FEROCEON_L2_WRITETHROUGH

config CACHE_L2X0
bool "Enable the L2x0 outer cache controller"
depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || REALVIEW_EB_A9MP
depends on REALVIEW_EB_ARM11MP || MACH_REALVIEW_PB11MP || MACH_REALVIEW_PB1176 || \
REALVIEW_EB_A9MP || ARCH_MX35 || ARCH_MX31
default y
select OUTER_CACHE
help
Expand Down

0 comments on commit f0031a4

Please sign in to comment.