diff options
Diffstat (limited to 'power')
-rw-r--r-- | power/rk3399.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/power/rk3399.c b/power/rk3399.c index 960da80b3a..b5e9bdd1ee 100644 --- a/power/rk3399.c +++ b/power/rk3399.c @@ -5,6 +5,14 @@ /* rk3399 chipset power control module for Chrome EC */ +/* + * The description of each CONFIG_CHIPSET_POWER_SEQ_VERSION: + * + * Version 0: Initial/default revision. + * Version 1: Control signals PP900_PLL_EN and PP900_PMU_EN + * are merged with PP900_USB_EN. + */ + #include "charge_state.h" #include "chipset.h" #include "common.h" @@ -204,8 +212,10 @@ enum power_state power_handle_state(enum power_state state) gpio_set_level(GPIO_PP900_AP_EN, 1); gpio_set_level(GPIO_PP900_PCIE_EN, 1); msleep(2); +#if CONFIG_CHIPSET_POWER_SEQ_VERSION == 0 gpio_set_level(GPIO_PP900_PMU_EN, 1); gpio_set_level(GPIO_PP900_PLL_EN, 1); +#endif gpio_set_level(GPIO_PP900_USB_EN, 1); msleep(2); @@ -342,8 +352,10 @@ enum power_state power_handle_state(enum power_state state) gpio_set_level(GPIO_PP1800_PMU_EN_L, 1); msleep(2); gpio_set_level(GPIO_PP900_USB_EN, 0); +#if CONFIG_CHIPSET_POWER_SEQ_VERSION == 0 gpio_set_level(GPIO_PP900_PLL_EN, 0); gpio_set_level(GPIO_PP900_PMU_EN, 0); +#endif msleep(6); gpio_set_level(GPIO_PP900_PCIE_EN, 0); gpio_set_level(GPIO_PP900_AP_EN, 0); |