u-boot-brain/arch
Trevor Woerner b7b4af0e35 CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case
According to De Morgan's Law[1]:
	!(A && B) = !A || !B
	!(A || B) = !A && !B

There are 5 places in the code where we find:
	#if !(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
and 4 places in the code where we find:
	#if (!defined(CONFIG_SYS_ICACHE_OFF) || !defined(CONFIG_SYS_DCACHE_OFF))

In words, the construct:
	!defined(CONFIG_SYS_[DI]CACHE_OFF)
means:
	"is the [DI]CACHE on?"
and the construct:
	defined(CONFIG_SYS_[DI]CACHE_OFF)
means:
	"is the [DI]CACHE off?"

Therefore
	!(defined(CONFIG_SYS_ICACHE_OFF) && defined(CONFIG_SYS_DCACHE_OFF))
means:
	"the opposite of 'are they both off?'"
in other words:
	"are either or both on?"
and:
	(!defined(CONFIG_SYS_ICACHE_OFF) || !defined(CONFIG_SYS_DCACHE_OFF)
means:
	"are either or both on?"

As a result, I've converted the 4 instances of '(!A || !B)' to '!(A && B)' for
consistency.

[1] https://en.wikipedia.org/wiki/De_Morgan%27s_laws

Signed-off-by: Trevor Woerner <trevor@toganlabs.com>
2019-05-18 08:15:34 -04:00
..
arc ARC: [plat-axs10x]: migrate to DM_MMC 2019-04-18 09:12:38 +03:00
arm CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case 2019-05-18 08:15:34 -04:00
m68k m68k: ColdFire mcf5441x, add eSDHC support 2018-09-16 00:01:13 +02:00
microblaze spl: fix linker size check off-by-one errors 2019-05-05 08:48:50 -04:00
mips net: mscc: ocelot: Update DTS for Luton pcb90 2019-05-03 16:46:36 +02:00
nds32 CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case 2019-05-18 08:15:34 -04:00
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup 2019-04-26 09:16:32 +02:00
riscv RISCV: image: Add booti support 2019-05-09 16:47:52 +08:00
sandbox Various minor sandbox iumprovements 2019-04-24 12:27:29 -04:00
sh sh: sh3: Remove CPU support 2019-05-10 22:43:18 +02:00
x86 Fix spelling of available. 2019-05-09 19:52:55 -04:00
xtensa CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case 2019-05-18 08:15:34 -04:00
.gitignore
Kconfig Merge tag 'rockchip-for-v2019.07-rc1' of git://git.denx.de/u-boot-rockchip 2019-05-09 12:36:17 -04:00