power: Rename CONFIG_POWER to CONFIG_POWER_LEGACY
This option is used in pre-driver model code and much of it has never been converted to driver model. We want to add a new option to enable power support, so we can use a simple rule in the Makefile. Rename this one, which is really about a particular implementation of power. Also update the pmic.h header file so it either includes the legacy API or the driver model one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
@@ -267,7 +267,7 @@ int board_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_POWER
|
||||
#ifdef CONFIG_POWER_LEGACY
|
||||
#define I2C_PMIC 0
|
||||
int power_init_board(void)
|
||||
{
|
||||
@@ -293,7 +293,7 @@ int power_init_board(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_POWER */
|
||||
#endif /* CONFIG_POWER_LEGACY */
|
||||
|
||||
/*
|
||||
* cl_som_imx7_setup_wdog() - watchdog configuration.
|
||||
|
||||
@@ -63,7 +63,7 @@ struct i2c_pads_info i2c_pad_info1 = {
|
||||
},
|
||||
};
|
||||
|
||||
#ifdef CONFIG_POWER
|
||||
#ifdef CONFIG_POWER_LEGACY
|
||||
#define I2C_PMIC 0
|
||||
int power_init_board(void)
|
||||
{
|
||||
|
||||
@@ -156,7 +156,7 @@ int board_mmc_init(struct bd_info *bis)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_POWER
|
||||
#ifdef CONFIG_POWER_LEGACY
|
||||
#define I2C_PMIC 0
|
||||
int power_init_board(void)
|
||||
{
|
||||
|
||||
@@ -185,7 +185,7 @@ int board_early_init_f(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_POWER) || defined(CONFIG_DM_PMIC)
|
||||
#if defined(CONFIG_POWER_LEGACY) || defined(CONFIG_DM_PMIC)
|
||||
int power_init_board(void)
|
||||
{
|
||||
set_ps_hold_ctrl();
|
||||
|
||||
@@ -60,7 +60,7 @@ int dram_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_POWER
|
||||
#ifdef CONFIG_POWER_LEGACY
|
||||
#define I2C_PMIC 3
|
||||
int power_init_board(void)
|
||||
{
|
||||
|
||||
@@ -247,7 +247,7 @@ static const char *tqma6_get_boardname(void)
|
||||
};
|
||||
}
|
||||
|
||||
#ifdef CONFIG_POWER
|
||||
#ifdef CONFIG_POWER_LEGACY
|
||||
/* setup board specific PMIC */
|
||||
int power_init_board(void)
|
||||
{
|
||||
|
||||
@@ -96,7 +96,7 @@ static struct i2c_pads_info i2c_pad_info1 = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_POWER
|
||||
#ifdef CONFIG_POWER_LEGACY
|
||||
int power_init_board(void)
|
||||
{
|
||||
struct pmic *p;
|
||||
|
||||
Reference in New Issue
Block a user