u-boot/drivers/mtd/spi
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
..
eeprom_m95xxx.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
fsl_espi_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07:00
Kconfig sf: Make 4K sector support configurable 2015-08-17 15:59:48 +05:30
Makefile sf: dataflash: Rename to CONFIG_SPI_FLASH_DATAFLASH 2015-07-01 21:15:04 +05:30
sandbox.c sandbox: spi: Add newline to printf() in sandbox_sf_probe 2015-05-14 18:49:35 -06:00
sf-uclass.c dm: sf: Update default name of spi flash in structure udevice 2015-05-06 14:00:35 -06:00
sf.c sf: Add CONFIG_SF_DUAL_FLASH 2014-01-12 21:40:22 +05:30
sf_dataflash.c sf: Kconfig: Add SPI_FLASH_DATAFLASH entry 2015-07-01 21:22:19 +05:30
sf_internal.h sf: Make 4K sector support configurable 2015-08-17 15:59:48 +05:30
sf_mtd.c mtd, spi: Add MTD layer driver 2015-06-30 00:40:11 +05:30
sf_ops.c sf: ops: Add spi_flash_copy_mmap function 2015-08-17 23:29:14 +05:30
sf_params.c sf: update sst25wf040b flash params 2015-06-30 01:20:37 +05:30
sf_probe.c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi_spl_load.c sf: Tidy up public and private header files 2014-10-22 10:36:50 -06:00