u-boot/drivers/power
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
..
battery power: Add PMIC_ prefix to CHARGER_EN/DISABLE 2014-05-28 10:58:18 +09:00
fuel_gauge
mfd power: Add PMIC_ prefix to CHARGER_EN/DISABLE 2014-05-28 10:58:18 +09:00
pmic of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
regulator dm: pmic: max77686: Correct two typos in a comment 2015-08-12 11:17:45 +02:00
as3722.c power: Export register access functions from as3722 2015-05-13 09:24:07 -07:00
axp152.c power: axp152: Registers definitions in header 2015-04-15 16:17:17 +02:00
axp209.c sunxi: axp: Move axp gpio code to a separate axpi-gpio driver 2015-05-04 16:51:53 +02:00
axp221.c sunxi: axp: Move axp gpio code to a separate axpi-gpio driver 2015-05-04 16:51:53 +02:00
exynos-tmu.c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
ftpmu010.c
Kconfig dm: regulator: add implementation of driver model regulator uclass 2015-05-14 18:49:37 -06:00
Makefile dm: regulator: add max77686 regulator driver 2015-05-14 18:49:38 -06:00
palmas.c arm: omap: add support for am57xx devices 2014-12-04 11:04:14 -05:00
power_core.c power: fix: Do not execute pmic command when not all necessary parameters are passed 2014-02-24 10:56:33 -05:00
power_dialog.c
power_fsl.c power: Rename CONFIG_PMIC_... to CONFIG_POWER_... 2014-05-28 10:58:18 +09:00
power_i2c.c Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
power_spi.c power_spi.c: Rewrite pmic_reg function 2014-11-07 16:27:05 -05:00
tps6586x.c dm: i2c: Rename driver model I2C functions to permit compatibility 2015-01-29 17:09:53 -07:00
twl4030.c power: twl4030: Power off support 2015-08-12 20:47:35 -04:00
twl6030.c