diff options
author | Tom Rini <trini@konsulko.com> | 2019-05-19 09:36:48 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-05-19 09:36:48 -0400 |
commit | d3d212b6240f75006c18e4c59b3b28d81eedb7d3 (patch) | |
tree | 106781344a5074a0e1cc26e8e371016cef0d0570 /arch/nds32/lib/cache.c | |
parent | 98b3156b0df4b0df9cb3a0bbfc240d0c4edd2638 (diff) | |
parent | 612f6b223d2cb03ae0170d3eadcb78f7b473ecfb (diff) |
Merge branch '2019-05-19-master-imports'
- Convert SYS_[DI]CACHE_OFF to Kconfig, introduce SPL variant.
- Various bcm96* fixes.
- Import include/android_bootloader_message.h from AOSP
- Assorted other small fixes.
Diffstat (limited to 'arch/nds32/lib/cache.c')
-rw-r--r-- | arch/nds32/lib/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/nds32/lib/cache.c b/arch/nds32/lib/cache.c index 9ab30d19653..27065136dd2 100644 --- a/arch/nds32/lib/cache.c +++ b/arch/nds32/lib/cache.c @@ -6,7 +6,7 @@ */ #include <common.h> -#if (!defined(CONFIG_SYS_ICACHE_OFF) || !defined(CONFIG_SYS_DCACHE_OFF)) +#if !(CONFIG_IS_ENABLED(SYS_ICACHE_OFF) && CONFIG_IS_ENABLED(SYS_DCACHE_OFF)) static inline unsigned long CACHE_SET(unsigned char cache) { if (cache == ICACHE) @@ -38,7 +38,7 @@ static inline unsigned long CACHE_LINE_SIZE(enum cache_t cache) } #endif -#ifndef CONFIG_SYS_ICACHE_OFF +#if !CONFIG_IS_ENABLED(SYS_ICACHE_OFF) void invalidate_icache_all(void) { unsigned long end, line_size; @@ -133,7 +133,7 @@ int icache_status(void) #endif -#ifndef CONFIG_SYS_DCACHE_OFF +#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) void dcache_wbinval_all(void) { unsigned long end, line_size; |