]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
microblaze: cache: replace XILINX_USE_DCACHE -> CONFIG_DCACHE
authorOvidiu Panait <ovpanait@gmail.com>
Tue, 31 May 2022 18:14:25 +0000 (21:14 +0300)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:16:00 +0000 (14:16 +0200)
XILINX_USE_DCACHE macro was removed in 7556fa09e0e ("microblaze: Simplify
cache handling"), but it was still used in a couple of places.

Replace those occurences with CONFIG_DCACHE.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Link: https://lore.kernel.org/r/20220531181435.3473549-4-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/microblaze/cpu/cache.c
arch/microblaze/lib/bootm.c

index aa832d6be6d40e000b43e1f45b069ec8bb8c8e88..b6126de1944d693d2385c6eb60746585ec1a7eb1 100644 (file)
@@ -49,7 +49,7 @@ void dcache_enable(void)
 
 void dcache_disable(void)
 {
-#ifdef XILINX_USE_DCACHE
+#ifdef CONFIG_DCACHE
        flush_cache(0, XILINX_DCACHE_BYTE_SIZE);
 #endif
        MSRCLR(0x80);
index 12ea32488e69ae7d67493d0ea2e08c96c2a7a25e..b652d2767a2c827b0931833d97184457842f5c54 100644 (file)
@@ -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");
 
-#ifdef XILINX_USE_DCACHE
+#ifdef CONFIG_DCACHE
        flush_cache(0, XILINX_DCACHE_BYTE_SIZE);
 #endif