u-boot/arch/arm
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
..
cpu CONFIG_SYS_[ID]CACHE_OFF: unify the 'any' case 2019-05-18 08:15:34 -04:00
dts Merge branch 'master' of git://git.denx.de/u-boot-socfpga 2019-05-16 07:09:33 -04:00
include Merge tag 'rockchip-for-v2019.07-rc1' of git://git.denx.de/u-boot-rockchip 2019-05-09 12:36:17 -04:00
lib arm: zimage: add barebox image magic number 2019-05-09 20:21:59 -04:00
mach-aspeed regmap: change regmap_init_mem() to take ofnode instead udevice 2018-05-07 15:49:51 -04:00
mach-at91 spl: fix linker size check off-by-one errors 2019-05-05 08:48:50 -04:00
mach-bcm283x arm: Kconfig: spelling fixes 2019-01-18 09:16:15 -05:00
mach-bcmstb board: arm: Add support for Broadcom BCM7260 2018-09-10 21:19:31 -04:00
mach-davinci arm: davinci: remove leftover code for dm* SoCs 2019-05-04 13:04:10 -04:00
mach-exynos delete Kbuild "select" of long-dead SPL_DISABLE_OF_CONTROL 2019-05-04 13:04:18 -04:00
mach-highbank SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mach-imx imx: Add variscite DART-6UL Evaluation Kit 2019-04-25 19:16:24 +02:00
mach-integrator
mach-k3 arm: k3: config.mk: Use k3_gen_x509_cert.sh to generate boot images 2019-05-09 20:22:05 -04:00
mach-keystone ARM: k2g: add a workaround to reset the phy 2019-04-12 08:05:46 -04:00
mach-kirkwood ARM: kirkwood: add db-88f6281-bp board 2019-04-26 07:35:38 +02:00
mach-mediatek ARM: MediaTek: Add support for MT8516 SoC 2019-04-23 17:57:26 -04:00
mach-meson mach-meson: g12a: add DWC2 peripheral mode support 2019-05-09 10:38:32 +02:00
mach-mvebu arm: mvebu: Add CRS305-1G-4S board 2019-05-09 07:35:04 +02:00
mach-omap2 arm: mach-omap2: am33xx: ddr: update value for ext_phy_ctrl_36 2019-05-05 08:48:50 -04:00
mach-orion5x arm: remove prototype for get_timer_masked 2018-10-10 13:35:09 -04:00
mach-owl board: Add uCRobotics Bubblegum-96 board support 2018-07-09 15:25:23 -04:00
mach-qemu Kconfig: Sort bool, default, select and imply options 2018-07-30 07:18:48 -04:00
mach-rmobile ARM: dts: renesas: Add RZ/A1 GR-Peach board 2019-05-07 05:41:32 +02:00
mach-rockchip arm: rockchip: rk3399: Move common configs in Kconfig 2019-05-08 17:34:13 +08:00
mach-s5pc1xx exynos: Convert to use CONFIG_BLK 2019-02-09 12:50:21 -07:00
mach-snapdragon arm: mach-snapdragon: pinctrl: clarify gpio disable bit 2019-01-25 12:12:56 -05:00
mach-socfpga arm: socfpga: Re-add support for Aries MCV SoM and MCVEV[KP] board 2019-05-14 19:52:39 +02:00
mach-sti
mach-stm32 mach-stm32: Add MPU region for spi-nor memory mapped region 2019-05-06 09:50:19 +02:00
mach-stm32mp stm32mp1: add command poweroff 2019-04-12 16:09:13 +02:00
mach-sunxi arm: sunxi: Enable DM_MMC and DM_SCSI 2019-04-17 14:34:45 +05:30
mach-tegra arm64: zynqmp: Move SoC sources to mach-zynqmp 2019-01-24 10:03:44 +01:00
mach-uniphier ARM: uniphier: do not modify bootcmd environment variable at run-time 2018-12-29 11:38:33 +09:00
mach-versal arm64: versal: Move IOU_SWITCH_DIVISOR0 to Kconfig 2019-02-14 14:31:10 +01:00
mach-versatile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mach-zynq ARM: zynq: Remove addresses for i2c controllers 2019-02-14 14:31:10 +01:00
mach-zynqmp arm64: zynqmp: fix preprocessor check for SPL_ZYNQMP_TWO_SDHCI 2019-04-16 11:52:02 +02:00
mach-zynqmp-r5 arm: zynqmp: Add ZynqMP minimal R5 support 2018-05-11 09:38:23 +02:00
thumb1/include/asm/proc-armv SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
config.mk efi_loader: Rename sections to allow for implicit data 2018-07-25 14:57:44 +02:00
Kconfig sysreset: enable driver support in SPL/TPL 2019-05-08 17:34:12 +08:00
Kconfig.debug
Makefile arm: imx: build mach-imx for i.MX8 2019-01-28 20:35:47 +01:00