]> git.baikalelectronics.ru Git - uboot.git/commitdiff
Convert CONFIG_POWER_LTC3676 et al to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 19 Nov 2022 23:45:15 +0000 (18:45 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 5 Dec 2022 21:07:12 +0000 (16:07 -0500)
This converts the following to Kconfig:
   CONFIG_POWER_FSL
   CONFIG_POWER_FSL_MC13892
   CONFIG_POWER_HI6553
   CONFIG_POWER_LTC3676
   CONFIG_POWER_PFUZE100
   CONFIG_POWER_PFUZE3000
   CONFIG_POWER_SPI
   CONFIG_POWER_TPS65090_EC
   CONFIG_POWER_TPS65218
   CONFIG_POWER_TPS65910

Signed-off-by: Tom Rini <trini@konsulko.com>
64 files changed:
board/freescale/common/Makefile
configs/am335x_baltos_defconfig
configs/am335x_boneblack_vboot_defconfig
configs/am335x_evm_defconfig
configs/am335x_evm_spiboot_defconfig
configs/am335x_hs_evm_defconfig
configs/am335x_hs_evm_uart_defconfig
configs/am335x_sl50_defconfig
configs/am43xx_evm_defconfig
configs/am43xx_evm_qspiboot_defconfig
configs/am43xx_evm_rtconly_defconfig
configs/am43xx_evm_usbhost_boot_defconfig
configs/am43xx_hs_evm_defconfig
configs/am43xx_hs_evm_qspi_defconfig
configs/cl-som-imx7_defconfig
configs/cm_t43_defconfig
configs/gwventana_emmc_defconfig
configs/gwventana_gw5904_defconfig
configs/gwventana_nand_defconfig
configs/hikey_defconfig
configs/imx8mq_evk_defconfig
configs/kontron_pitx_imx8m_defconfig
configs/mx51evk_defconfig
configs/mx53loco_defconfig
configs/mx6sabreauto_defconfig
configs/mx6sabresd_defconfig
configs/novena_defconfig
configs/pcm051_rev3_defconfig
configs/phycore-am335x-r2-regor_defconfig
configs/phycore-am335x-r2-wega_defconfig
configs/pico-dwarf-imx7d_defconfig
configs/pico-hobbit-imx7d_defconfig
configs/pico-imx7d_bl33_defconfig
configs/pico-imx7d_defconfig
configs/pico-nymph-imx7d_defconfig
configs/pico-pi-imx7d_defconfig
configs/udoo_neo_defconfig
configs/vining_2000_defconfig
drivers/power/Kconfig
drivers/power/pmic/Kconfig
drivers/power/pmic/Makefile
drivers/power/power_fsl.c
include/configs/am335x_evm.h
include/configs/am335x_sl50.h
include/configs/am43xx_evm.h
include/configs/baltos.h
include/configs/cl-som-imx7.h
include/configs/cm_t43.h
include/configs/el6x_common.h
include/configs/gw_ventana.h
include/configs/hikey.h
include/configs/imx8mq_evk.h
include/configs/kontron_pitx_imx8m.h
include/configs/mx51evk.h
include/configs/mx53loco.h
include/configs/mx6sabreauto.h
include/configs/mx6sabresd.h
include/configs/novena.h
include/configs/peach-pi.h
include/configs/phycore_am335x_r2.h
include/configs/pico-imx7d.h
include/configs/tqma6.h
include/configs/udoo_neo.h
include/configs/vining_2000.h

index 377c6aa077dc72ac9cfdb3760337d005b76ae057..cc1371867d86946fd66d10d5e09aedeb556d9b90 100644 (file)
@@ -61,7 +61,9 @@ obj-$(CONFIG_TARGET_P4080DS)          += ics307_clk.o
 obj-$(CONFIG_TARGET_P5040DS)           += ics307_clk.o
 obj-$(CONFIG_VSC_CROSSBAR)    += vsc3316_3308.o
 obj-$(CONFIG_ZM7300)           += zm7300.o
+ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y)
 obj-$(CONFIG_POWER_PFUZE100)   += pfuze.o
+endif
 obj-$(CONFIG_DM_PMIC_PFUZE100) += pfuze.o
 obj-$(CONFIG_POWER_MC34VR500)  += mc34vr500.o
 ifneq (,$(filter $(SOC), imx8ulp imx9))
index bd23b71b096e1f0270cce439f6a99ffee2b39515..9976cee81fcc89ab8dfc8cc1953dbc09bf4344a2 100644 (file)
@@ -79,6 +79,7 @@ CONFIG_PHY_SMSC=y
 CONFIG_DM_MDIO=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 66b7fb6e06d8829592c8941c04381181e901cc8f..442783a9d02b9df52a3f68b557a3eb5d2e328db9 100644 (file)
@@ -76,6 +76,7 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_DM_PMIC is not set
 CONFIG_PMIC_TPS65217=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index f73123e0b71d9d4c3509916d3c38f628f7eb386b..78e63c917503b68bed43b3949e372dc68a3770ab 100644 (file)
@@ -102,6 +102,7 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_DM_PMIC is not set
 CONFIG_PMIC_TPS65217=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 7f422010c1c72adae360329b0c5e218a5d2cbca8..335a43d87b474bae77a376a28f7487f03d5e0e31 100644 (file)
@@ -93,6 +93,7 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_DM_PMIC is not set
 CONFIG_PMIC_TPS65217=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 8d3a4548d9a0d979d4f5c6b1ad5a26bbaa00e761..5dc9ba98fdea9974168306621807d13b48f20d63 100644 (file)
@@ -80,6 +80,7 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_DM_PMIC is not set
 CONFIG_PMIC_TPS65217=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 7080b14c46712d53ea85e1d8923b5d6bf3e898db..68513c1b6a92ac917b7938d5be7cd7ffcb38c65a 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_PMIC=y
 # CONFIG_SPL_DM_PMIC is not set
 CONFIG_PMIC_TPS65217=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 65b20550c0c66bfa064c5ff01dadce71ca4bd79b..673824cfecf426d4c313c190136a0b8580055884 100644 (file)
@@ -75,6 +75,7 @@ CONFIG_PHY_SMSC=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PMIC_TPS65217=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 2dfd936057f0edd57d5f74453594a57d7ac9d735..2faf1322f9eaa43bb65b80c07acf79fc383d6d2c 100644 (file)
@@ -88,6 +88,8 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY=y
 CONFIG_SPL_PHY=y
 CONFIG_OMAP_USB2_PHY=y
+CONFIG_POWER_TPS65218=y
+CONFIG_POWER_TPS62362=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
 CONFIG_TI_QSPI=y
index fc6cad59cf452860380c195d252651089a006fe4..9c90924020fcc5c8bd9c1bf4e466f403d0088859 100644 (file)
@@ -53,6 +53,8 @@ CONFIG_SF_DEFAULT_SPEED=48000000
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_POWER_TPS65218=y
+CONFIG_POWER_TPS62362=y
 CONFIG_SYS_NS16550_SERIAL=y
 CONFIG_SPI=y
 CONFIG_TI_QSPI=y
index 357da192b83b9b5312076face752ff84681e54f5..4241070930f72191be55cca21dc83834d5d023e3 100644 (file)
@@ -72,6 +72,8 @@ CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_PHY_GIGE=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_POWER_TPS65218=y
+CONFIG_POWER_TPS62362=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
 CONFIG_TI_QSPI=y
index 0e58221c820313df3d0067d31b9666eab9416c19..91270d032bff89411a948aeeb2e5a91fef15861d 100644 (file)
@@ -91,6 +91,8 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY=y
 CONFIG_SPL_PHY=y
 CONFIG_OMAP_USB2_PHY=y
+CONFIG_POWER_TPS65218=y
+CONFIG_POWER_TPS62362=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
 CONFIG_TI_QSPI=y
index 2b5a7fb2599b5c6cf35ae23844a01cfa4d36a227..b6b74af735e71da564f75e0185de4bffdaa2d2ab 100644 (file)
@@ -86,6 +86,8 @@ CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY=y
 CONFIG_SPL_PHY=y
 CONFIG_OMAP_USB2_PHY=y
+CONFIG_POWER_TPS65218=y
+CONFIG_POWER_TPS62362=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
 CONFIG_TI_QSPI=y
index 08cac404c6e2402ac62e3e1628674028efd20564..03e46dde0f216e212bdb82041bd81ba842d81e2a 100644 (file)
@@ -55,6 +55,8 @@ CONFIG_SF_DEFAULT_SPEED=48000000
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_POWER_TPS65218=y
+CONFIG_POWER_TPS62362=y
 CONFIG_SYS_NS16550_SERIAL=y
 CONFIG_SPI=y
 CONFIG_TI_QSPI=y
index f3ee559d21fc03133aee958e924ed0cc70b4e62d..3571dba6d2ae18ee2c40e572fe067367583bcf08 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_PHY_ATHEROS=y
 CONFIG_FEC_MXC=y
 CONFIG_MII=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_DM_REGULATOR=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
index 0a5ce2046f1c9853ac1a1d95e76834a900371543..867ca30320587b6b5ff0d63d8749faaa6c8c6335 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_PHY_ATHEROS=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_TPS65218=y
 CONFIG_POWER_I2C=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
index cabe09e6d389efc62a565aab8aad26cb5ec78617..ce81b558ee219ea174bc2ef4576360a58ed7e266 100644 (file)
@@ -119,6 +119,8 @@ CONFIG_PCIE_IMX=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_LTC3676=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_POWER_I2C=y
index f58abd9c5e57ed2aca2627325155fd7010f1f17e..3ef909a1ce30a232618f11f0a34f2f70561da86a 100644 (file)
@@ -123,6 +123,8 @@ CONFIG_PCIE_IMX=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_LTC3676=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_POWER_I2C=y
index a41b3c4c97efe9fb1ff15778d59dcee0c3913f53..d3d4876658a0c9be204a55ab9e0d5b1ce6ab7161 100644 (file)
@@ -129,6 +129,8 @@ CONFIG_PCIE_IMX=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_LTC3676=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_POWER_I2C=y
index d023653815cdb14c8b799633b4449d02bd1b3aad..152459ece8dc93616fc3cb57654ea4e8b27a0fe0 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_HIKEY_GPIO=y
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_K3=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_HI6553=y
 CONFIG_CONS_INDEX=4
 CONFIG_USB=y
 CONFIG_USB_DWC2=y
index 274cdb948d7cf8b624728a51a362071fbbb8ddc1..79a27dedb371e74acf74a621fe9b4b664a56cfed 100644 (file)
@@ -88,6 +88,7 @@ CONFIG_PINCTRL_IMX8M=y
 CONFIG_SPL_POWER_LEGACY=y
 CONFIG_POWER_DOMAIN=y
 CONFIG_IMX8M_POWER_DOMAIN=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
index d2726b1c2002bf4940598e92616b571c026a3ea6..898a0b45e85ad340730fb0ab1647532e4ab2b632 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_PINCTRL_IMX8M=y
 CONFIG_SPL_POWER_LEGACY=y
 CONFIG_POWER_DOMAIN=y
 CONFIG_IMX8M_POWER_DOMAIN=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
index d76ebe8fd22951b81802b1d2c450ae78975bd4a5..774523bc84b871fc13fb73745dc86c851bd4ee04 100644 (file)
@@ -54,6 +54,8 @@ CONFIG_POWER_LEGACY=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_POWER_FSL=y
+CONFIG_POWER_SPI=y
 CONFIG_MXC_UART=y
 CONFIG_SPI=y
 CONFIG_MXC_SPI=y
index 193120f71a4620268eda6574a6fe640242627ca5..08bcd35f07346a2c57ae0d2967f6c1b8396c669a 100644 (file)
@@ -58,6 +58,7 @@ CONFIG_POWER_LEGACY=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_GPIO=y
+CONFIG_POWER_FSL=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
 CONFIG_USB=y
index 2aa15ce8c65126fce8828c0c150c80bbfc9cad32..634473f30743227f6c5671050f487bd0e12093b4 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_DM_REGULATOR=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
index 766ce0edc4595de76540ca73a715172fbcca8510..4f7d3704203edbe7d6f4a7e24a28ac7e3c7360a6 100644 (file)
@@ -102,6 +102,7 @@ CONFIG_PCIE_IMX=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_POWER_I2C=y
index f6690b4ac85f0dc08cb4f8318ab78317fd87e873..5f761799a21fea45e163b6992b1af7f94b4c0c65 100644 (file)
@@ -79,6 +79,7 @@ CONFIG_PCIE_IMX=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
 CONFIG_DM_THERMAL=y
index 373c609d21417bd96fd5e3cec51e20cbc3f73be7..3ed55916d23dde71558306e9fe019f9b9b16fec6 100644 (file)
@@ -56,6 +56,7 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_PHY_SMSC=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index b6b5274f03eee627c79630c39a68bedd250db5a4..1b3167656852c08982c00208ef55709262786176 100644 (file)
@@ -83,6 +83,7 @@ CONFIG_SYS_NAND_U_BOOT_OFFS=0x20000
 CONFIG_DM_SPI_FLASH=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 5012049fed98175611865561f4076d6161c0e794..c5ffb4127470513160a839cf7e02fa9a202a8d10 100644 (file)
@@ -84,6 +84,7 @@ CONFIG_SYS_NAND_U_BOOT_OFFS_REDUND=0x100000
 CONFIG_DM_SPI_FLASH=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_SPL_POWER_TPS65910=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 821357827a79893fc8875ad4856019dd4f8a421f..46777e04fdb95c82356b725c3f52c03342159fe5 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX7=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
index 759866ce11953f6b2d4393c83f0d679e52616c7d..fb354d1cdee73efb5077fc2a6a3bf5db4caf6518 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX7=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
index 8631f81f33333c6062f899458c8e5ab5cbe92b7a..35e6f1d5493ece9b63f76347229e15e4f8dddf25 100644 (file)
@@ -77,6 +77,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX7=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_POWER_I2C=y
 CONFIG_CONS_INDEX=4
 CONFIG_MXC_UART=y
index a84954d22fd5f195cd0440afe87c17f9ae6523f4..13cc97bb73cc0558dbe4d0d693c321a2c800c5df 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX7=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
index 821357827a79893fc8875ad4856019dd4f8a421f..46777e04fdb95c82356b725c3f52c03342159fe5 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX7=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
index dec42809747273b3f25dea46a6c650d49b38f720..6e92366beff00668de28d08a6794dd9447f53bd0 100644 (file)
@@ -81,6 +81,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX7=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_POWER_I2C=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
index 95428e199359fe15f1def8963d0880bb292931f8..f62a585b1c3977ef333d14afaee871429261c2d0 100644 (file)
@@ -57,6 +57,7 @@ CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE3000=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_ANATOP=y
index 3b5658ddc890444fec5469319d1496c5fb7c32d9..7f84209b6555df469157d68c323845c719a18f8c 100644 (file)
@@ -89,6 +89,7 @@ CONFIG_PCIE_IMX=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
 CONFIG_POWER_LEGACY=y
+CONFIG_POWER_PFUZE100=y
 CONFIG_POWER_I2C=y
 CONFIG_PWM_IMX=y
 CONFIG_DM_SERIAL=y
index bc47cf144dd0885f8c31c64e470d8cb45d101b37..5dbcde333ba5fa217c3d5308f9a6f3cad7e8a647 100644 (file)
@@ -430,6 +430,10 @@ config PALMAS_POWER
        bool "Palmas power support"
        depends on OMAP54XX
 
+config POWER_FSL
+       bool "Power control (legacy) for Freescale / NXP platforms"
+       depends on POWER_LEGACY
+
 config POWER_I2C
        bool "I2C-based power control for legacy power"
        depends on POWER_LEGACY
@@ -440,6 +444,10 @@ config POWER_I2C
          Not to be used for new designs and existing ones should be moved to
          the new PMIC interface based on driver model.
 
+config POWER_SPI
+       bool "SPI-based power control for legacy power_fsl driver"
+       depends on POWER_FSL && !POWER_I2C
+
 config SPL_POWER_I2C
        bool "I2C-based power control for legacy power"
        depends on SPL_POWER_LEGACY
@@ -451,4 +459,17 @@ config SPL_POWER_I2C
          Not to be used for new designs and existing ones should be moved to
          the new PMIC interface based on driver model.
 
+choice
+       prompt "PMIC chip"
+       default POWER_FSL_MC13892
+       depends on POWER_FSL && POWER_I2C
+
+config POWER_FSL_MC13892
+       bool "MC13892"
+
+config POWER_FSL_MC34704
+       bool "MC34704"
+
+endchoice
+
 endif
index d30bb4d4e9cc503f9c2268bc6e5d35a7a2348343..d94048db5f7edc4ac4a707d6d4becf47222467fe 100644 (file)
@@ -393,8 +393,35 @@ config PMIC_TPS65217
        only, and you can enable the regulator/charger drivers separately if
        required.
 
+config POWER_TPS65218
+       bool "Enable legacy driver for TPS65218 PMIC"
+
+config POWER_TPS62362
+       bool "Enable legacy driver for TPS62362 PMIC"
+
+config SPL_POWER_TPS62362
+       bool "Enable legacy driver for TPS62362 PMIC in SPL"
+       default y if POWER_TPS62362
+       depends on SPL
+
+config SPL_POWER_TPS65910
+       bool "Enable legacy driver for TPS65910 PMIC in SPL"
+       depends on SPL
+
 if POWER_LEGACY || SPL_POWER_LEGACY
 
+config POWER_HI6553
+       bool "Enable legacy driver for HI6553 PMIC"
+
+config POWER_LTC3676
+       bool "Enable legacy driver for LTC3676 PMIC"
+
+config POWER_PFUZE100
+       bool "Enable legacy driver for PFUZE100 PMIC"
+
+config POWER_PFUZE3000
+       bool "Enable legacy driver for PFUZE3000 PMIC"
+
 config POWER_MC34VR500
        bool "Enable driver for Freescale MC34VR500 PMIC"
        ---help---
index e78dc1e2053513670c2094a67d71f03cb0bf2367..c3180c582085479ab8a598640d03fd69239ff509 100644 (file)
@@ -33,6 +33,7 @@ obj-$(CONFIG_PMIC_STPMIC1) += stpmic1.o
 obj-$(CONFIG_PMIC_TPS65217) += pmic_tps65217.o
 obj-$(CONFIG_PMIC_TPS65219) += tps65219.o
 obj-$(CONFIG_PMIC_TPS65941) += tps65941.o
+obj-$(CONFIG_POWER_TPS65218) += pmic_tps65218.o
 
 ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y)
 obj-$(CONFIG_POWER_LTC3676) += pmic_ltc3676.o
@@ -40,9 +41,9 @@ obj-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
 obj-$(CONFIG_POWER_PCA9450) += pmic_pca9450.o
 obj-$(CONFIG_POWER_PFUZE100) += pmic_pfuze100.o
 obj-$(CONFIG_POWER_PFUZE3000) += pmic_pfuze3000.o
-obj-$(CONFIG_POWER_TPS62362) += pmic_tps62362.o
-obj-$(CONFIG_POWER_TPS65218) += pmic_tps65218.o
-obj-$(CONFIG_POWER_TPS65910) += pmic_tps65910.o
 obj-$(CONFIG_POWER_HI6553) += pmic_hi6553.o
 obj-$(CONFIG_POWER_MC34VR500) += pmic_mc34vr500.o
 endif
+
+obj-$(CONFIG_$(SPL_)POWER_TPS62362) += pmic_tps62362.o
+obj-$(CONFIG_SPL_POWER_TPS65910) += pmic_tps65910.o
index 7180b5127a5b66d8b5ba26a12702c9fc9d2e2c1a..9bb7e39f2cc2d916e4d40a1db2d88b00407dbbcc 100644 (file)
@@ -49,8 +49,6 @@ int pmic_init(unsigned char bus)
        p->interface = PMIC_I2C;
        p->hw.i2c.addr = CFG_SYS_FSL_PMIC_I2C_ADDR;
        p->hw.i2c.tx_num = FSL_PMIC_I2C_LENGTH;
-#else
-#error "You must select CONFIG_POWER_SPI or CONFIG_POWER_I2C"
 #endif
 
        return 0;
index 69b8b048ce39952b74021aeffad5d58a7d9f986a..755f7fae3e4f6960394b241e01a69a199103a53c 100644 (file)
 #define CFG_SYS_NS16550_COM5           0x481a8000      /* UART4 */
 #define CFG_SYS_NS16550_COM6           0x481aa000      /* UART5 */
 
-/* PMIC support */
-#define CONFIG_POWER_TPS65910
-
 #ifdef CONFIG_MTD_RAW_NAND
 /* NAND: device related configs */
 /* NAND: driver related configs */
index 4af9edafca8f0891fa3c049799392b28eed53463..342a068c855ff443fcf96ef058f9f36bca82b15c 100644 (file)
 #define CFG_SYS_NS16550_COM5           0x481a8000      /* UART4 */
 #define CFG_SYS_NS16550_COM6           0x481aa000      /* UART5 */
 
-/* PMIC support */
-#define CONFIG_POWER_TPS65910
-
-/* SPL */
-
-/* Network. */
-
 #endif /* ! __CONFIG_AM335X_SL50_H */
index bcdff2e98acd383deb8f9ce98a5f14409c1a8df1..7659c1cc06198d411bd468537a6724bb7cf2fa0b 100644 (file)
 /* NS16550 Configuration */
 #define CFG_SYS_NS16550_CLK            48000000
 
-/* I2C Configuration */
-
-/* Power */
-#define CONFIG_POWER_TPS65218
-#define CONFIG_POWER_TPS62362
-
-/* SPL defines. */
-
 /* Enabling L2 Cache */
 #define CFG_SYS_PL310_BASE     0x48242000
 
index f29729d09bac592a0860919f20e845f8c16fbea4..6f6552e6dc34579efc5d2f6cbfbd276aa7b3e835 100644 (file)
 #define CFG_SYS_NS16550_COM5           0x481a8000      /* UART4 */
 #define CFG_SYS_NS16550_COM6           0x481aa000      /* UART5 */
 
-/* PMIC support */
-#define CONFIG_POWER_TPS65910
-
 /* SPL */
 #ifndef CONFIG_NOR_BOOT
 
index b1f9470d9ca434c740af9d0a4f22f8d69a15c14e..4aaa52f26980427a4f7b73d22f021dbc4add0544 100644 (file)
@@ -19,7 +19,6 @@
 #define IMX_FEC_BASE                   ENET_IPS_BASE_ADDR
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE3000
 #define CONFIG_POWER_PFUZE3000_I2C_ADDR        0x08
 
 #define CONFIG_PCA953X
index 8ad1cfb5ded370a0a9337e7b26d54f83fe789669..fcc17fc6b7ce044000525b876dba2bdc496695aa 100644 (file)
@@ -28,9 +28,6 @@
                                         42, 43, 44, 45, 46, 47, 48, 49, \
                                         50, 51, 52, 53, 54, 55, 56, 57, }
 
-/* Power */
-#define CONFIG_POWER_TPS65218
-
 /* Enabling L2 Cache */
 #define CFG_SYS_PL310_BASE             0x48242000
 
index 141f9913e6391608d986e127c6dd5cf24d768a19..89e071c0df663934de6220467af5ae26b96dd0d3 100644 (file)
@@ -17,7 +17,6 @@
 #define CFG_SYS_FSL_USDHC_NUM  2
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 
 /* Commands */
index b855bbc25fb8c10aec4b38c5b39872e66624b79c..65283afd2a06611fdb0d4f2bc8e28792fc2bf8cf 100644 (file)
@@ -30,9 +30,7 @@
 /*
  * PMIC
  */
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
-#define CONFIG_POWER_LTC3676
 #define CONFIG_POWER_LTC3676_I2C_ADDR  0x3c
 
 /* Various command support */
index eefdbd6ed11b809e37584016a230324d53243068..d4280decc9f07e0db590170c7dc17053ec126350 100644 (file)
@@ -13,8 +13,6 @@
 
 #include <linux/sizes.h>
 
-#define CONFIG_POWER_HI6553
-
 /* Physical Memory Map */
 
 /* CONFIG_TEXT_BASE needs to align with where ATF loads bl33.bin */
index aa29e7884f9ec14bc9b27cfcfc9d2706736224ff..688c0bf700805328bbc791ea9f2da5fbb783c001 100644 (file)
@@ -18,7 +18,6 @@
 #define CONFIG_MALLOC_F_ADDR           0x182000
 /* For RAW image gives a error info not panic */
 
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 #endif
 
index 2abcb849a28162b1c7dd8f7e5310a327d016225f..17c63d8341073b778bd096b73c205faf2b70d929 100644 (file)
@@ -20,7 +20,6 @@
 /* For RAW image gives a error info not panic */
 
 
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR  0x08
 #endif
 
index 6d9b954587efd22ce0ceb744c7b4f8b51584119b..d9d76d7c08da2666dff2e2e79fa32df3c7cfe4dc 100644 (file)
@@ -21,8 +21,6 @@
 #define CONFIG_MXC_UART_BASE   UART1_BASE
 
 /* PMIC Controller */
-#define CONFIG_POWER_SPI
-#define CONFIG_POWER_FSL
 #define CONFIG_FSL_PMIC_BUS    0
 #define CONFIG_FSL_PMIC_CS     0
 #define CONFIG_FSL_PMIC_CLK    2500000
index b52e70c95a0477b7dfa8e2e0cb0e702b05578714..d0107fcc8cb180620b2db8a57df23b87557def8e 100644 (file)
@@ -22,8 +22,6 @@
 #define CONFIG_MXC_USB_FLAGS   0
 
 /* PMIC Controller */
-#define CONFIG_POWER_FSL
-#define CONFIG_POWER_FSL_MC13892
 #define CFG_SYS_DIALOG_PMIC_I2C_ADDR   0x48
 #define CFG_SYS_FSL_PMIC_I2C_ADDR      0x8
 
index 1a2160cce59447e6e8a0d7e2cf94cde6cdab13b0..f5f95a1bd1ce227ae91aa191cebc32fef64a099a 100644 (file)
@@ -37,7 +37,6 @@
 /* DMA stuff, needed for GPMI/MXS NAND support */
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 
 #endif                         /* __MX6SABREAUTO_CONFIG_H */
index 0d06b6dc467132477dccb7d28bc8e296312bf51b..78a554d0ccba63d7aac8525205430b31d2311790 100644 (file)
@@ -25,7 +25,6 @@
 #endif
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 
 /* USB Configs */
index 6f588f99c34b02e7e78cc42c7969bb54e64af8a8..16a89b97b06c469e01b5115275be954502c7b820 100644 (file)
@@ -50,7 +50,6 @@
 #endif
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 
 /* UART */
index bfc0011fbf96794a65d5a2bf1f5a3d04ba0fe5ed..fb6eb572cfad940e1f967e8bd1fe580e49518820 100644 (file)
@@ -22,8 +22,6 @@
 
 #define CFG_SYS_SDRAM_BASE     0x20000000
 
-#define CONFIG_POWER_TPS65090_EC
-
 /* DRAM Memory Banks */
 #define SDRAM_BANK_SIZE                (512UL << 20UL) /* 512 MB */
 
index 43a60825b57529dfecd7c0512802e6573e690536..f922491637d94359802417ef1384394ecbff3204 100644 (file)
@@ -79,8 +79,6 @@
 #define V_OSCK                         25000000  /* Clock output from T2 */
 #define V_SCLK                         V_OSCK
 
-#define CONFIG_POWER_TPS65910
-
 #ifdef CONFIG_MTD_RAW_NAND
 /* NAND: device related configs */
 /* NAND: driver related configs */
index 7028264d72209d426dc3ebe574985324ecbd2ea0..83907b06ebb41ce83fc3c14571876ddad26f5642 100644 (file)
@@ -98,7 +98,6 @@
 #define CFG_SYS_INIT_RAM_SIZE  IRAM_SIZE
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE3000
 #define CONFIG_POWER_PFUZE3000_I2C_ADDR        0x08
 
 /* FLASH and environment organization */
index 9c3454add463511a181349ad672d9cf256c3fc90..7a1ad9544a30868ad1c0f5c6bd273aa51da23345 100644 (file)
@@ -31,7 +31,6 @@
 #define CONFIG_I2C_MULTI_BUS
 
 #if !defined(CONFIG_DM_PMIC)
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 #define TQMA6_PFUZE100_I2C_BUS         2
 #endif
index 0e0d5b5b3e4ce81d0871572eecdf6f9b5b974cc1..d4c92233acaa7b439c532072977313c489aeac6c 100644 (file)
@@ -62,7 +62,6 @@
 #define CFG_SYS_INIT_RAM_SIZE  IRAM_SIZE
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE3000
 #define CONFIG_POWER_PFUZE3000_I2C_ADDR        0x08
 #define PFUZE3000_I2C_BUS      0
 
index ab5cd5cf6365257bb9dbc5a86b04a1e8fcd6975b..1a71b300fc55b69c7adcfc85c5130994f21c1509 100644 (file)
@@ -31,7 +31,6 @@
 #define CFG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
 
 /* PMIC */
-#define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
 
 /* Network */