]> git.dujemihanovic.xyz Git - u-boot.git/commit
microblaze: cache: introduce Kconfig options for icache/dcache sizes
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 31 May 2022 18:14:29 +0000 (21:14 +0300)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:16:00 +0000 (14:16 +0200)
commit84488fc69348367ee693ea4ab6affe3cbcae97a0
tree54e6bf04e2b63e2ac66d64d38a80b14d4c08d427
parent73b8ee62a0a0aa03b789e5299a00cf8e6adf23ac
microblaze: cache: introduce Kconfig options for icache/dcache sizes

Replace XILINX_DCACHE_BYTE_SIZE macro with two Kconfig symbols for
instruction and data caches sizes, respectively:
CONFIG_XILINX_MICROBLAZE0_ICACHE_SIZE
CONFIG_XILINX_MICROBLAZE0_DCACHE_SIZE

Also, get rid of the hardcoded value in icache_disable().

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-8-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com> (s/bralid/brlid/g)
arch/microblaze/cpu/cache.c
arch/microblaze/cpu/start.S
arch/microblaze/lib/bootm.c
board/xilinx/microblaze-generic/Kconfig
include/configs/microblaze-generic.h