Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296706
b: refs/heads/master
c: f1949ea
h: refs/heads/master
v: v3
  • Loading branch information
Lee Jones authored and Arnd Bergmann committed Mar 16, 2012
1 parent c2e3082 commit 592453c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 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: 4905af0e13a665da5f72d2629e93161ba781d03b
refs/heads/master: f1949ea0d1f6034d38ce20089980b6b26d527c25
8 changes: 8 additions & 0 deletions trunk/arch/arm/boot/dts/db8500.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
<0xa0410100 0x100>;
};

L2: l2-cache {
compatible = "arm,pl310-cache";
reg = <0xa0412000 0x1000>;
interrupts = <0 13 4>;
cache-unified;
cache-level = <2>;
};

pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 7 0x4>;
Expand Down
7 changes: 6 additions & 1 deletion trunk/arch/arm/mach-ux500/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/

#include <linux/io.h>
#include <linux/of.h>

#include <asm/cacheflush.h>
#include <asm/hardware/cache-l2x0.h>
#include <mach/hardware.h>
Expand Down Expand Up @@ -45,7 +47,10 @@ static int __init ux500_l2x0_init(void)
ux500_l2x0_unlock();

/* 64KB way size, 8 way associativity, force WA */
l2x0_init(l2x0_base, 0x3e060000, 0xc0000fff);
if (of_have_populated_dt())
l2x0_of_init(0x3e060000, 0xc0000fff);
else
l2x0_init(l2x0_base, 0x3e060000, 0xc0000fff);

/*
* We can't disable l2 as we are in non secure mode, currently
Expand Down

0 comments on commit 592453c

Please sign in to comment.