Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Linus Walleij and committed by
Olof Johansson
98badfd3 1cb3375b

+9 -3
+7
arch/arm/boot/dts/ste-nomadik-stn8815.dtsi
··· 21 21 interrupts = <30>; 22 22 cache-unified; 23 23 cache-level = <2>; 24 + cache-size = <131072>; 25 + cache-sets = <512>; 26 + cache-line-size = <32>; 27 + /* At full speed latency must be >=2 */ 28 + arm,tag-latency = <2>; 29 + arm,data-latency = <2 2>; 30 + arm,dirty-latency = <2>; 24 31 }; 25 32 26 33 mtu0: mtu@101e2000 {
+2 -3
arch/arm/mach-nomadik/cpu-8815.c
··· 114 114 }; 115 115 116 116 DT_MACHINE_START(NOMADIK_DT, "Nomadik STn8815") 117 - /* At full speed latency must be >=2, so 0x249 in low bits */ 118 - .l2c_aux_val = 0x00700249, 119 - .l2c_aux_mask = 0xfe0fefff, 117 + .l2c_aux_val = 0, 118 + .l2c_aux_mask = ~0, 120 119 .map_io = cpu8815_map_io, 121 120 .restart = cpu8815_restart, 122 121 .dt_compat = cpu8815_board_compat,