]> git.baikalelectronics.ru Git - uboot.git/commitdiff
power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217
authorLukasz Majewski <lukma@denx.de>
Sat, 12 Mar 2022 07:11:10 +0000 (08:11 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 5 Apr 2022 19:51:46 +0000 (15:51 -0400)
Up till now the CONFIG_POWER_TPS65217 has been defined in several header
files for am335x SoC.

This patch renames it to CONFIG_PMIC_TPS65217, which better reflects the
role of this IC circuit.

Moreover, new CONFIG_PMIC_TPS65217 has been introduced in Kconfig
to be used with boards, which both support DM_PMIC and DM_I2C.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
[trini: Migrate all other platforms as well]
Signed-off-by: Tom Rini <trini@konsulko.com>
27 files changed:
configs/am335x_boneblack_vboot_defconfig
configs/am335x_evm_defconfig
configs/am335x_evm_spiboot_defconfig
configs/am335x_guardian_defconfig
configs/am335x_hs_evm_defconfig
configs/am335x_hs_evm_uart_defconfig
configs/am335x_shc_defconfig
configs/am335x_shc_ict_defconfig
configs/am335x_shc_netboot_defconfig
configs/am335x_shc_sdboot_defconfig
configs/am335x_sl50_defconfig
configs/brppt1_mmc_defconfig
configs/brppt1_nand_defconfig
configs/brppt1_spi_defconfig
configs/brsmarc1_defconfig
configs/brxre1_defconfig
configs/chiliboard_defconfig
drivers/power/pmic/Kconfig
drivers/power/pmic/Makefile
include/configs/am335x_evm.h
include/configs/am335x_guardian.h
include/configs/am335x_shc.h
include/configs/am335x_sl50.h
include/configs/brppt1.h
include/configs/bur_am335x_common.h
include/configs/chiliboard.h
scripts/config_whitelist.txt

index 3e1296916cba8c76aab56e62bf5a9456f7abc72f..dc4693d40bfd9a165deecf382180a3ee493aa373 100644 (file)
@@ -65,6 +65,9 @@ CONFIG_DM_ETH=y
 CONFIG_PHY_GIGE=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index fa97ec12d824613004b4ee4605048539c107d2b8..30577a6fce42c2f29c7744b8cbc005c7256733d3 100644 (file)
@@ -88,6 +88,9 @@ CONFIG_DM_ETH=y
 CONFIG_PHY_GIGE=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index abcc3e6e79f9e2bbfde8abff482157fc6a0a5707..f1b9d6c3ad8b84e48ab5caf2c9451f34880d32cd 100644 (file)
@@ -79,6 +79,9 @@ CONFIG_PHY_SMSC=y
 CONFIG_DM_ETH=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 28ebe00fd213a1c0c2c8d2b86298a741540cd249..60e428d2a1ebf7dfb7159e5aa7701909ff8401ba 100644 (file)
@@ -110,6 +110,7 @@ CONFIG_PHY=y
 CONFIG_NOP_PHY=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index b6fd86fa16736c78acc933b6da33659c8b44eb3f..ca4259694690b2812d0f1e8243f7de23a44ae127 100644 (file)
@@ -72,6 +72,9 @@ CONFIG_PHY_SMSC=y
 CONFIG_DM_ETH=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 15483176caa6887fdd1f77bf975679645e554c4b..c8df89bf6d5dd3570022a0dfcc117e51b0222bd3 100644 (file)
@@ -74,6 +74,9 @@ CONFIG_PHY_SMSC=y
 CONFIG_DM_ETH=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index 5953193bc2402852125581560f285b13d63aee6a..65cdc2acf566250771d24d914e6df241815e2219 100644 (file)
@@ -70,4 +70,5 @@ CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_LZO=y
index 00442d8ca8bee8031e8ff6169cc9f039c53fc613..a59ebf4a4ed5879116fdaf4526eee5f0693a4467 100644 (file)
@@ -68,4 +68,5 @@ CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_LZO=y
index 37899df596f88888e0489f783b352ea354948212..3c291cfe6d626525cc64aede421752f83a27c393 100644 (file)
@@ -71,4 +71,5 @@ CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_LZO=y
index c33c94f85037ccd867ec5c105234cbf4e64993ec..8c4f14d764e16e20c9e9934669b3994bf41dba45 100644 (file)
@@ -70,4 +70,5 @@ CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_LZO=y
index c71741c7069eb206de9c1fb9a41a76d2d93e8c13..41017de2f9c3afb69d6a9a2c641e101a5f328c74 100644 (file)
@@ -68,6 +68,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_PHY_SMSC=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index ac0fbd5c3fa84d3ad9c7a781b1c0e599558bcfb8..1c72c79c3d19ce38e0409dc6d852a6da8d0ca83c 100644 (file)
@@ -91,6 +91,9 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_PHY_NATSEMI=y
 CONFIG_DM_ETH=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_DM_SERIAL=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
index 9df5121964d23ea54938d5d6a124d2fcf51afc48..267cdf41b6eb510d0348b7893d8c5603b173315f 100644 (file)
@@ -100,6 +100,9 @@ CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000
 CONFIG_PHY_NATSEMI=y
 CONFIG_DM_ETH=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_DM_SERIAL=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
index 11d7d7bcde219084c74ff38c20d2329156d60bc9..e39294f6bff4d61124b5ce00e724312b9abd33a5 100644 (file)
@@ -104,6 +104,9 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_PHY_NATSEMI=y
 CONFIG_DM_ETH=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_DM_PMIC=y
+# CONFIG_SPL_DM_PMIC is not set
+CONFIG_PMIC_TPS65217=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index 771a42f6388b3c36e59a5cb5f0a06a167956fc97..8e8f471a7043fb81bc41ca8a0a10661baf6dcb9d 100644 (file)
@@ -104,6 +104,7 @@ CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_PHY_NATSEMI=y
 CONFIG_DM_ETH=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_DM_SERIAL=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
index 35b2b6545e66e0c641bf7ef2cbbea79f75968657..e1c81d1cdfd4e9958898ce36b23534a0d574c209 100644 (file)
@@ -87,6 +87,7 @@ CONFIG_MISC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_DM_ETH=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_DM_SERIAL=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
index ae101da9c2f46e09d480f2cca8b8c5644d57f89b..1b03d836944e0d6ab3ab59ecfec7e48a61316b7e 100644 (file)
@@ -66,6 +66,7 @@ CONFIG_PHY_SMSC=y
 CONFIG_DM_ETH=y
 CONFIG_MII=y
 CONFIG_DRIVER_TI_CPSW=y
+CONFIG_PMIC_TPS65217=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_OMAP3_SPI=y
index ce0adb18a44c27f0e51a11eb6d88fbc7d6e13e9d..953c92e2128d758084ef6562895caf20957c4d3d 100644 (file)
@@ -369,6 +369,14 @@ config PMIC_TPS65941
 
 endif
 
+config PMIC_TPS65217
+       bool "Enable driver for Texas Instruments TPS65217 PMIC"
+       ---help---
+       The TPS65217 is a PMIC containing several LDOs, DC to DC convertors,
+       FETs and a battery charger. This driver provides register access
+       only, and you can enable the regulator/charger drivers separately if
+       required.
+
 config POWER_MC34VR500
        bool "Enable driver for Freescale MC34VR500 PMIC"
        depends on !DM_PMIC
index 401cde32cf13fe8cf9bcffb0444899298754f2b8..584d6e0e78e802f3ae5342bd0556126eb374a93f 100644 (file)
@@ -36,7 +36,7 @@ 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_TPS65217) += pmic_tps65217.o
+obj-$(CONFIG_PMIC_TPS65217) += pmic_tps65217.o
 obj-$(CONFIG_POWER_TPS65218) += pmic_tps62362.o
 obj-$(CONFIG_POWER_TPS65218) += pmic_tps65218.o
 obj-$(CONFIG_POWER_TPS65910) += pmic_tps65910.o
index 748cbe3c7d7ec475e2041078b097eadbcd463d62..cbb7b91139d0c9c76f91b487c5dde6169dd90436 100644 (file)
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
 /* PMIC support */
-#define CONFIG_POWER_TPS65217
 #define CONFIG_POWER_TPS65910
 
 /* SPL */
index 608a22db4442e51aacd50c12e996b70e567ccd0f..b92703205cde6b0e5b8b79b57c398ee750d86c0d 100644 (file)
@@ -94,9 +94,6 @@
 #define CONFIG_SYS_NS16550_COM5                0x481a8000      /* UART4 */
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
-/* PMIC support */
-#define CONFIG_POWER_TPS65217
-
 /* Bootcount using the RTC block */
 #define CONFIG_SYS_BOOTCOUNT_LE
 
index 4c8df57bdf0db2510950c7a83d20c051573d95a6..5964ccc74c26d70705c2ee8bcf03e2005aa0c16b 100644 (file)
 #define CONFIG_SYS_NS16550_COM5                0x481a8000      /* UART4 */
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
-/* PMIC support */
-#define CONFIG_POWER_TPS65217
-
 #endif /* ! __CONFIG_AM335X_SHC_H */
index 0da98975adf51d23eae42ccdf480f84d091b8209..a57d551bcf172972454de19f41b3dbfc0d1eaec7 100644 (file)
@@ -50,7 +50,6 @@
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
 /* PMIC support */
-#define CONFIG_POWER_TPS65217
 #define CONFIG_POWER_TPS65910
 
 /* SPL */
index d5458edbdb6b35799575b91111d01a333b37dcc2..769b3f073acca8b053f583882bb576477249e121 100644 (file)
@@ -22,8 +22,6 @@
 #define V_OSCK                         26000000  /* Clock output from T2 */
 #define V_SCLK                         (V_OSCK)
 
-#define CONFIG_POWER_TPS65217
-
 /*
  * When we have NAND flash we expect to be making use of mtdparts,
  * both for ease of use in U-Boot and for passing information on to
index 9b2e8b5c6ebb5b90eafd0c995496883220d6c85d..5fc8ce622b1f54ec0cb229d551111952cff82b79 100644 (file)
@@ -26,7 +26,6 @@
 /* Timer information */
 #define CONFIG_SYS_PTV                 2       /* Divisor: 2^(PTV+1) => 8 */
 #define CONFIG_SYS_TIMERBASE           0x48040000      /* Use Timer2 */
-#define CONFIG_POWER_TPS65217
 
 #include <asm/arch/omap.h>
 
index ad1cd864c8581137570634fd24186876c517c702..82acda595f0922443fbca735180917d36ca57bd6 100644 (file)
 #define CONFIG_SYS_NS16550_COM5                0x481a8000      /* UART4 */
 #define CONFIG_SYS_NS16550_COM6                0x481aa000      /* UART5 */
 
-/* PMIC support */
-#define CONFIG_POWER_TPS65217
-
 /* SPL */
 /* Bootcount using the RTC block */
 #define CONFIG_SYS_BOOTCOUNT_BE
index e4c5f743c94a5683f7542e1f4d3995cb16983f5f..12208c7a2f8611ffa7f980df70a05245c4e57478 100644 (file)
@@ -549,7 +549,6 @@ CONFIG_POWER_PFUZE3000_I2C_ADDR
 CONFIG_POWER_SPI
 CONFIG_POWER_TPS62362
 CONFIG_POWER_TPS65090_EC
-CONFIG_POWER_TPS65217
 CONFIG_POWER_TPS65218
 CONFIG_POWER_TPS65910
 CONFIG_PPC_CLUSTER_START