OSDN Git Service

arm64: dts: imx8m: add cache info
authorPeng Fan <peng.fan@nxp.com>
Fri, 12 Nov 2021 06:26:02 +0000 (14:26 +0800)
committerShawn Guo <shawnguo@kernel.org>
Tue, 23 Nov 2021 09:25:52 +0000 (17:25 +0800)
commitcb551b5e3bab54265f374a394e239f5e492a5742
tree000a966a2126f780ccf551c966ab36dab522ebb1
parentc190510714df168b9d6387bc29844acbe9a39521
arm64: dts: imx8m: add cache info

i.MX8M Family use A53 Cores and has 32KB ICache with 32KB DCache.
 - Icache is 2-way set associative
 - Dcache is 4-way set associative
 - L2cache is 16-way set associative
 - Line size are 64bytes

Except i.MX8MQ has 1MB L2 Cache, others has 512KB L2 Cache.

So add the cache info in device tree and let use could see that
from /sys/devices/system/cpu/cpu[x]/cache/

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mm.dtsi
arch/arm64/boot/dts/freescale/imx8mn.dtsi
arch/arm64/boot/dts/freescale/imx8mp.dtsi
arch/arm64/boot/dts/freescale/imx8mq.dtsi