diff options
author | Tom Rini <trini@konsulko.com> | 2017-03-18 09:01:44 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-03-18 20:28:01 -0400 |
commit | 3a649407a49b041ceb826d55b5919dc8297f8965 (patch) | |
tree | 7ebd285b96a3f3299c31052d423b1b688acd697f /arch/arm/lib/cache.c | |
parent | ae9b57b50b2dfad6fefb37af95991362f79abcd3 (diff) | |
download | u-boot-3a649407a49b041ceb826d55b5919dc8297f8965.tar.gz u-boot-3a649407a49b041ceb826d55b5919dc8297f8965.tar.bz2 u-boot-3a649407a49b041ceb826d55b5919dc8297f8965.zip |
arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD
Today, we have cases where we wish to build all of U-Boot in Thumb2 mode for
various reasons. We also have cases where we only build SPL in Thumb2 mode due
to size constraints and wish to build the rest of the system in ARM mode. So
in this migration we introduce a new symbol as well, SPL_SYS_THUMB_BUILD to
control if we build everything or just SPL (or in theory, just U-Boot) in
Thumb2 mode.
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Diffstat (limited to 'arch/arm/lib/cache.c')
-rw-r--r-- | arch/arm/lib/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 4f72f8914c..7683386ad9 100644 --- a/arch/arm/lib/cache.c +++ b/arch/arm/lib/cache.c @@ -107,7 +107,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; |