arm: npcm: enable L2 cache in NPCM7xx architecture
authorTomer Maimon <tmaimon77@gmail.com>
Sun, 8 Apr 2018 14:03:17 +0000 (17:03 +0300)
committerArnd Bergmann <arnd@arndb.de>
Tue, 10 Apr 2018 14:40:03 +0000 (16:40 +0200)
commitd893c4de012ad586400d9ccf5143884eafd8d841
tree413b158396d5f0530c7b5095970c25ca06d51051
parent38c23685b273cfb4ccf31a199feccce3bdcb5d83
arm: npcm: enable L2 cache in NPCM7xx architecture

This patch Enable ARM L2 cache module in Nuvoton NPCM7xx BMC
by adding L2 cache parameters into NPCM7xx DT machine start structure.

At patch V7 arm: npcm: add basic support for Nuvoton BMCs we got comments
regarding the flags use in L2 cache module.
- https://www.spinics.net/lists/arm-kernel/msg613212.html

After checking again the L2 cache use in the NPCM7xx,
the only L2 cache flag we need to set is L2C_AUX_CTRL_SHARED_OVERRIDE
and it is done in the device tree:
https://patchwork.kernel.org/patch/10063497/

L2 cache flag mask allowed all the flag option.

Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-npcm/npcm7xx.c