ARM: nomadik: move l2x0 setup to device tree

The cache setup magic value in the Nomadik machine is plain wrong,
the correct settings can be done using device tree in accordance
with the settings from ST's own port.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Linus Walleij 2015-07-27 22:40:53 +02:00 committed by Olof Johansson
parent 1cb3375bb5
commit 98badfd31c
2 changed files with 9 additions and 3 deletions

View File

@ -21,6 +21,13 @@
interrupts = <30>; interrupts = <30>;
cache-unified; cache-unified;
cache-level = <2>; cache-level = <2>;
cache-size = <131072>;
cache-sets = <512>;
cache-line-size = <32>;
/* At full speed latency must be >=2 */
arm,tag-latency = <2>;
arm,data-latency = <2 2>;
arm,dirty-latency = <2>;
}; };
mtu0: mtu@101e2000 { mtu0: mtu@101e2000 {

View File

@ -114,9 +114,8 @@ static const char * cpu8815_board_compat[] = {
}; };
DT_MACHINE_START(NOMADIK_DT, "Nomadik STn8815") DT_MACHINE_START(NOMADIK_DT, "Nomadik STn8815")
/* At full speed latency must be >=2, so 0x249 in low bits */ .l2c_aux_val = 0,
.l2c_aux_val = 0x00700249, .l2c_aux_mask = ~0,
.l2c_aux_mask = 0xfe0fefff,
.map_io = cpu8815_map_io, .map_io = cpu8815_map_io,
.restart = cpu8815_restart, .restart = cpu8815_restart,
.dt_compat = cpu8815_board_compat, .dt_compat = cpu8815_board_compat,