summaryrefslogtreecommitdiff
path: root/arch/microblaze/lib
diff options
context:
space:
mode:
authorOvidiu Panait <[email protected]>2022-05-31 21:14:29 +0300
committerMichal Simek <[email protected]>2022-06-24 14:16:00 +0200
commit84488fc69348367ee693ea4ab6affe3cbcae97a0 (patch)
tree54e6bf04e2b63e2ac66d64d38a80b14d4c08d427 /arch/microblaze/lib
parent73b8ee62a0a0aa03b789e5299a00cf8e6adf23ac (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]> (s/bralid/brlid/g)
Diffstat (limited to 'arch/microblaze/lib')
-rw-r--r--arch/microblaze/lib/bootm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c
index dba6226ce56..48e05333a67 100644
--- a/arch/microblaze/lib/bootm.c
+++ b/arch/microblaze/lib/bootm.c
@@ -57,7 +57,7 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
"(fake run for tracing)" : "");
bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
- flush_cache(0, XILINX_DCACHE_BYTE_SIZE);
+ flush_cache(0, CONFIG_XILINX_MICROBLAZE0_DCACHE_SIZE);
if (!fake) {
/*