1
0
Fork 0
remarkable-uboot/drivers
Masahiro Yamada 0f9258228e of: clean up OF_CONTROL ifdef conditionals
We have flipped CONFIG_SPL_DISABLE_OF_CONTROL.  We have cleansing
devices, $(SPL_) and CONFIG_IS_ENABLED(), so we are ready to clear
away the ugly logic in include/fdtdec.h:

 #ifdef CONFIG_OF_CONTROL
 # if defined(CONFIG_SPL_BUILD) && !defined(SPL_OF_CONTROL)
 #  define OF_CONTROL 0
 # else
 #  define OF_CONTROL 1
 # endif
 #else
 # define OF_CONTROL 0
 #endif

Now CONFIG_IS_ENABLED(OF_CONTROL) is the substitute.  It refers to
CONFIG_OF_CONTROL for U-boot proper and CONFIG_SPL_OF_CONTROL for
SPL.

Also, we no longer have to cancel CONFIG_OF_CONTROL in
include/config_uncmd_spl.h and scripts/Makefile.spl.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
2015-08-18 13:46:05 -04:00
..
bios_emulator biosemu: Do not free vga_info->BIOSImage when it is 0xc0000 2015-04-29 18:51:49 -06:00
block arm: mvebu: add Armada XP SATA support 2015-07-23 08:30:58 +02:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
clk clk: rename CONFIG_SPL_CLK_SUPPORT to CONFIG_SPL_CLK 2015-08-18 13:46:01 -04:00
core of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
cpu x86: Move MP initialization codes into a common place 2015-07-14 18:03:16 -06:00
crypto Correct License and Copyright information on few files 2015-08-12 20:47:46 -04:00
ddr arm: mvebu: Add complete SDRAM ECC scrubbing 2015-08-17 18:49:33 +02:00
demo drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
dfu dfu: fix 64-bit compile warnings 2015-07-27 15:53:52 -07:00
dma dma: lpc32xx: add DMA driver 2015-08-18 13:45:55 -04:00
fpga arm: socfpga: Fix FPGA bitstream programming routine 2015-08-08 14:14:04 +02:00
gpio of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
hwmon dtt: add ds620 support 2015-04-10 14:23:23 +02:00
i2c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
input of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
led led: rename CONFIG_SPL_LED_SUPPORT to CONFIG_SPL_LED 2015-08-18 13:46:03 -04:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
mmc of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
mtd of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
net of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
pci pci: mvebu: Add PCIe driver 2015-08-17 18:49:43 +02:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
power of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
pwm pwm: imx: Remove unreachable code 2015-05-26 14:13:12 +02:00
qe driver/qe: use strncpy instead of strcpy 2015-08-03 12:06:36 -07:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
rtc drivers: hierarchize drivers Kconfig menu 2015-08-12 20:47:44 -04:00
serial of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
soc soc: keystone_serdes: generalize configuration mechanism 2014-10-23 11:27:28 -04:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi Merge branch 'master' of git://git.denx.de/u-boot-spi 2015-08-18 08:25:24 -04:00
thermal thermal: imx_thermal: fix busywait if IMX6 temp <0C 2015-07-10 10:15:19 +02:00
tpm of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb usb: lpc32xx: add host USB driver 2015-08-18 13:45:57 -04:00
video of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
watchdog watchdog/imx_watchdog: do not set WCR_WDW 2015-03-25 16:52:16 +01:00
Kconfig dm: Add a clock uclass 2015-07-21 17:39:29 -06:00
Makefile led: unify obj-$(CONFIG_LED) and obj-$(CONFIG_SPL_LED) entries 2015-08-18 13:46:03 -04:00