diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-08 12:20:27 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-04 12:26:02 -0400 |
commit | 9d8665b7091d7d67df7dd31eafe1b54e25f6c3e4 (patch) | |
tree | a433ee15481504deac558c511630d087ec1201b4 /include/configs | |
parent | 29d7153ec384e072755e8951a8a33f29372f925c (diff) | |
download | u-boot-9d8665b7091d7d67df7dd31eafe1b54e25f6c3e4.tar.gz |
i2c: Convert CONFIG_POWER_I2C et al to Kconfig
This converts the following to Kconfig:
CONFIG_POWER_I2C
CONFIG_POWER_LEGACY
They are handled at the same time due to a dependency between them.
Update the Makefile rule to use legacy power only in U-Boot proper.
Unfortunately a separate rule is needed in SPL to be able to build
legacy power. Add SPL related symbols for both, to allow for SPL-only
usage.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
[trini: More SPL related cleanups, reword commit message]
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/am43xx_evm.h | 4 | ||||
-rw-r--r-- | include/configs/cl-som-imx7.h | 2 | ||||
-rw-r--r-- | include/configs/cm_t43.h | 2 | ||||
-rw-r--r-- | include/configs/el6x_common.h | 2 | ||||
-rw-r--r-- | include/configs/gw_ventana.h | 2 | ||||
-rw-r--r-- | include/configs/hikey.h | 1 | ||||
-rw-r--r-- | include/configs/imx8mp_evk.h | 2 | ||||
-rw-r--r-- | include/configs/imx8mq_evk.h | 2 | ||||
-rw-r--r-- | include/configs/imx8mq_phanbell.h | 3 | ||||
-rw-r--r-- | include/configs/ls1046ardb.h | 4 | ||||
-rw-r--r-- | include/configs/mx51evk.h | 1 | ||||
-rw-r--r-- | include/configs/mx53loco.h | 2 | ||||
-rw-r--r-- | include/configs/mx6sabreauto.h | 2 | ||||
-rw-r--r-- | include/configs/mx6sabresd.h | 2 | ||||
-rw-r--r-- | include/configs/novena.h | 2 | ||||
-rw-r--r-- | include/configs/phycore_imx8mp.h | 2 | ||||
-rw-r--r-- | include/configs/pico-imx7d.h | 2 | ||||
-rw-r--r-- | include/configs/pico-imx8mq.h | 3 | ||||
-rw-r--r-- | include/configs/tqma6.h | 2 | ||||
-rw-r--r-- | include/configs/udoo_neo.h | 2 | ||||
-rw-r--r-- | include/configs/vining_2000.h | 2 | ||||
-rw-r--r-- | include/configs/warp.h | 2 |
22 files changed, 0 insertions, 48 deletions
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index ac735f87221..d4d463d24e1 100644 --- a/include/configs/am43xx_evm.h +++ b/include/configs/am43xx_evm.h @@ -23,10 +23,6 @@ /* I2C Configuration */ /* Power */ -#if !CONFIG_IS_ENABLED(DM_I2C) -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C -#endif #define CONFIG_POWER_TPS65218 #define CONFIG_POWER_TPS62362 diff --git a/include/configs/cl-som-imx7.h b/include/configs/cl-som-imx7.h index 0692653a9ff..ebfe356eee0 100644 --- a/include/configs/cl-som-imx7.h +++ b/include/configs/cl-som-imx7.h @@ -22,8 +22,6 @@ #define IMX_FEC_BASE ENET_IPS_BASE_ADDR /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE3000 #define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08 diff --git a/include/configs/cm_t43.h b/include/configs/cm_t43.h index 32d2581764f..a290cf0cbcc 100644 --- a/include/configs/cm_t43.h +++ b/include/configs/cm_t43.h @@ -50,8 +50,6 @@ #define CONFIG_AM437X_USB2PHY2_HOST /* Power */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_TPS65218 /* Enabling L2 Cache */ diff --git a/include/configs/el6x_common.h b/include/configs/el6x_common.h index f8af7c427bc..279d7122188 100644 --- a/include/configs/el6x_common.h +++ b/include/configs/el6x_common.h @@ -23,8 +23,6 @@ #define CONFIG_SYS_FSL_USDHC_NUM 2 /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 615cc0b2e05..012c9b6ffef 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -65,8 +65,6 @@ /* * PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 #define CONFIG_POWER_LTC3676 diff --git a/include/configs/hikey.h b/include/configs/hikey.h index f6685a928a6..387971c687b 100644 --- a/include/configs/hikey.h +++ b/include/configs/hikey.h @@ -13,7 +13,6 @@ #include <linux/sizes.h> -#define CONFIG_POWER_LEGACY #define CONFIG_POWER_HI6553 #define CONFIG_REMAKE_ELF diff --git a/include/configs/imx8mp_evk.h b/include/configs/imx8mp_evk.h index 16417926c94..bec6c1d8e9c 100644 --- a/include/configs/imx8mp_evk.h +++ b/include/configs/imx8mp_evk.h @@ -31,8 +31,6 @@ #undef CONFIG_DM_MMC -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PCA9450 #endif diff --git a/include/configs/imx8mq_evk.h b/include/configs/imx8mq_evk.h index d694379fddb..ff4f7898431 100644 --- a/include/configs/imx8mq_evk.h +++ b/include/configs/imx8mq_evk.h @@ -44,8 +44,6 @@ #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 #endif diff --git a/include/configs/imx8mq_phanbell.h b/include/configs/imx8mq_phanbell.h index ff8a1682881..c04c0191f98 100644 --- a/include/configs/imx8mq_phanbell.h +++ b/include/configs/imx8mq_phanbell.h @@ -40,9 +40,6 @@ #undef CONFIG_DM_MMC #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG - -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #endif #define CONFIG_REMAKE_ELF diff --git a/include/configs/ls1046ardb.h b/include/configs/ls1046ardb.h index b40a6969164..d3f5d8ce95e 100644 --- a/include/configs/ls1046ardb.h +++ b/include/configs/ls1046ardb.h @@ -124,10 +124,6 @@ #define I2C_RETIMER_ADDR 0x18 /* PMIC */ -#define CONFIG_POWER_LEGACY -#ifdef CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C -#endif /* * Environment diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h index bd2d0e5ee79..065e8c7f3b1 100644 --- a/include/configs/mx51evk.h +++ b/include/configs/mx51evk.h @@ -30,7 +30,6 @@ #define CONFIG_MXC_UART_BASE UART1_BASE /* PMIC Controller */ -#define CONFIG_POWER_LEGACY #define CONFIG_POWER_SPI #define CONFIG_POWER_FSL #define CONFIG_FSL_PMIC_BUS 0 diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h index a546e9620c2..50fc9625d02 100644 --- a/include/configs/mx53loco.h +++ b/include/configs/mx53loco.h @@ -33,8 +33,6 @@ #define CONFIG_MXC_USB_FLAGS 0 /* PMIC Controller */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_DIALOG_POWER #define CONFIG_POWER_FSL #define CONFIG_POWER_FSL_MC13892 diff --git a/include/configs/mx6sabreauto.h b/include/configs/mx6sabreauto.h index ccf631dedd4..1bfc0354271 100644 --- a/include/configs/mx6sabreauto.h +++ b/include/configs/mx6sabreauto.h @@ -59,8 +59,6 @@ /* DMA stuff, needed for GPMI/MXS NAND support */ /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 diff --git a/include/configs/mx6sabresd.h b/include/configs/mx6sabresd.h index ee75ada5a71..a9f353d9b13 100644 --- a/include/configs/mx6sabresd.h +++ b/include/configs/mx6sabresd.h @@ -38,8 +38,6 @@ #endif /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 diff --git a/include/configs/novena.h b/include/configs/novena.h index e39191fa1a9..46c530161ac 100644 --- a/include/configs/novena.h +++ b/include/configs/novena.h @@ -68,8 +68,6 @@ #endif /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 diff --git a/include/configs/phycore_imx8mp.h b/include/configs/phycore_imx8mp.h index f9686e14a8f..874c94e01f9 100644 --- a/include/configs/phycore_imx8mp.h +++ b/include/configs/phycore_imx8mp.h @@ -29,8 +29,6 @@ #define CONFIG_SPL_ABORT_ON_RAW_IMAGE -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PCA9450 #endif diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index a0e782dbd34..36c57923dec 100644 --- a/include/configs/pico-imx7d.h +++ b/include/configs/pico-imx7d.h @@ -122,8 +122,6 @@ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE3000 #define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08 diff --git a/include/configs/pico-imx8mq.h b/include/configs/pico-imx8mq.h index c67264da174..6c642391509 100644 --- a/include/configs/pico-imx8mq.h +++ b/include/configs/pico-imx8mq.h @@ -40,9 +40,6 @@ #undef CONFIG_DM_MMC #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG - -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #endif #define CONFIG_REMAKE_ELF diff --git a/include/configs/tqma6.h b/include/configs/tqma6.h index 11ad2f7cc2f..1efe9d57a84 100644 --- a/include/configs/tqma6.h +++ b/include/configs/tqma6.h @@ -42,8 +42,6 @@ #define CONFIG_SYS_I2C_EEPROM_PAGE_WRITE_DELAY_MS 20 #if !defined(CONFIG_DM_PMIC) -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 #define TQMA6_PFUZE100_I2C_BUS 2 diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h index d51a25dd2e4..b06abc9286b 100644 --- a/include/configs/udoo_neo.h +++ b/include/configs/udoo_neo.h @@ -68,8 +68,6 @@ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE3000 #define CONFIG_POWER_PFUZE3000_I2C_ADDR 0x08 #define PFUZE3000_I2C_BUS 0 diff --git a/include/configs/vining_2000.h b/include/configs/vining_2000.h index 4c34bec2924..dcdaffc09b6 100644 --- a/include/configs/vining_2000.h +++ b/include/configs/vining_2000.h @@ -40,8 +40,6 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_POWER_PFUZE100 #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08 diff --git a/include/configs/warp.h b/include/configs/warp.h index 29f69bb7dcd..11a9b31671b 100644 --- a/include/configs/warp.h +++ b/include/configs/warp.h @@ -52,8 +52,6 @@ /* I2C Configs */ /* PMIC */ -#define CONFIG_POWER_LEGACY -#define CONFIG_POWER_I2C #define CONFIG_EXTRA_ENV_SETTINGS \ "script=boot.scr\0" \ |