]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/lib/cache.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / arm / lib / cache.c
index d330b09434a46df1ab6505bf8b46c54e90ccfa21..565fbbe1097460617609fc8ef17bc159ec75968e 100644 (file)
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /* for now: just dummy functions to satisfy the linker */
@@ -10,10 +9,6 @@
 #include <common.h>
 #include <malloc.h>
 
-#ifndef CONFIG_SYS_CACHELINE_SIZE
-#define CONFIG_SYS_CACHELINE_SIZE 32
-#endif
-
 /*
  * Flush range from all levels of d-cache/unified-cache.
  * Affects the range [start, start + size - 1].
@@ -111,7 +106,7 @@ phys_addr_t noncached_alloc(size_t size, size_t align)
 }
 #endif /* CONFIG_SYS_NONCACHED_MEMORY */
 
-#if defined(CONFIG_SYS_THUMB_BUILD)
+#if CONFIG_IS_ENABLED(SYS_THUMB_BUILD)
 void invalidate_l2_cache(void)
 {
        unsigned int val = 0;