u-boot/include/dm
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
..
platform_data dm: sh: serial: Add support driver model 2015-02-12 15:17:17 -07:00
device-internal.h dm: drop CONFIG_DM_DEVICE_REMOVE from uncmd list 2015-08-18 13:46:04 -04:00
device.h of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
lists.h dm: core: Add a function to bind a driver for a device tree node 2015-04-29 21:02:32 -06:00
platdata.h dm: Add platform data advice and admonishment 2015-07-21 17:39:30 -06:00
root.h dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
test.h test: dm: Move the dm tests over to the ut command 2015-05-21 09:16:17 -04:00
uclass-id.h dm: video: Add support for video bridges 2015-08-05 21:06:13 -06:00
uclass-internal.h dm: drop CONFIG_DM_DEVICE_REMOVE from uncmd list 2015-08-18 13:46:04 -04:00
uclass.h dm: core: Fix a typo in the uclass_get_device_by_name() comment 2015-08-06 07:44:30 -06:00
util.h devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00