xtensa: rework noMMU cache attributes initialization
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 12 Aug 2018 13:01:40 +0000 (06:01 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 14 Aug 2018 03:08:19 +0000 (20:08 -0700)
commit7bb516ca5424e12b42124fab2906b6da9c81ba9c
tree275dd23356eba62a81025221e23df3210a87a7be
parentfec3259c9f747c039f90e99570540114c8d81a14
xtensa: rework noMMU cache attributes initialization

Marking default memory region as cached is not always sufficient and is
not flexible. Allow specifying cache attributes for the whole memory
address space with new config entry MEMMAP_CACHEATTR. Apply it after
cache initialization.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/Kconfig
arch/xtensa/configs/nommu_kc705_defconfig
arch/xtensa/include/asm/initialize_mmu.h
arch/xtensa/kernel/head.S