summaryrefslogtreecommitdiff
path: root/power/rk3399.c
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2017-12-19 23:41:11 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-12-20 20:41:11 -0800
commitbe434eadd857e157827e9c2b69587e5ca93f1230 (patch)
treedbb71a752f8a567ce30d9725896204ae53d5c7a0 /power/rk3399.c
parente896e732ae7f2ebe2b8d8ea4afb8f7ea999e1784 (diff)
downloadchrome-ec-be434eadd857e157827e9c2b69587e5ca93f1230.tar.gz
cleanup: power/rk3399: Remove unused power sequence
BUG=none BRANCH=none TEST=make buildall -j Change-Id: I87c7a6274cbcb355a71987b26e8f092fbdbe8fa0 Signed-off-by: Philip Chen <philipchen@google.com>
Diffstat (limited to 'power/rk3399.c')
-rw-r--r--power/rk3399.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/power/rk3399.c b/power/rk3399.c
index bf766b3137..4e47e6c697 100644
--- a/power/rk3399.c
+++ b/power/rk3399.c
@@ -12,7 +12,6 @@
* Version 1: Control signals PP900_PLL_EN and PP900_PMU_EN
* are merged with PP900_USB_EN.
* Version 2: Simplified power tree, fewer control signals.
- * Version 3: Close to version 1 but more components disabled in S3.
*/
#include "charge_state.h"
@@ -100,17 +99,6 @@ static const struct power_seq_op s5s3_power_seq[] = {
{ GPIO_PP1800_S3_EN, 1, 2 },
{ GPIO_PP1250_S3_EN, 1, 2 },
};
-#elif CONFIG_CHIPSET_POWER_SEQ_VERSION == 3
-static const struct power_seq_op s5s3_power_seq[] = {
- { GPIO_PP900_S0_EN, 1, 2 },
- { GPIO_PP900_S3_EN, 1, 2 },
- { GPIO_SYS_RST_L, 0, 0 },
- { GPIO_PP1800_PMU_EN_L, 0, 2 },
- { GPIO_LPDDR_PWR_EN, 1, 2 },
- { GPIO_PP1800_USB_EN_L, 0, 2 },
- { GPIO_PP3300_USB_EN_L, 0, 2 },
- { GPIO_PP5000_EN, 1, 2 },
-};
#else
static const struct power_seq_op s5s3_power_seq[] = {
{ GPIO_PPVAR_LOGIC_EN, 1, 0 },
@@ -140,18 +128,6 @@ static const struct power_seq_op s3s0_power_seq[] = {
{ GPIO_AP_CORE_EN, 1, 2 },
{ GPIO_PP1800_S0_EN, 1, 0 },
};
-#elif CONFIG_CHIPSET_POWER_SEQ_VERSION == 3
-static const struct power_seq_op s3s0_power_seq[] = {
- /* TODO(b/65270978): add GPIO_PP900_S0_EN control later. */
- { GPIO_PP1800_AP_AVDD_EN_L, 0, 2 },
- { GPIO_AP_CORE_EN, 1, 2 },
- { GPIO_PP1800_S0_EN_L, 0, 2 },
- { GPIO_PP3300_S0_EN_L, 0, 2 },
- { GPIO_PP3300_TRACKPAD_EN_L, 0, 1 },
- { GPIO_PP1800_LID_EN_L, 0, 0 },
- { GPIO_PP1800_SIXAXIS_EN_L, 0, 2 },
- { GPIO_PP1800_SENSOR_EN_L, 0, 0 },
-};
#else
static const struct power_seq_op s3s0_power_seq[] = {
{ GPIO_PPVAR_CLOGIC_EN, 1, 2 },
@@ -177,17 +153,6 @@ static const struct power_seq_op s0s3_power_seq[] = {
{ GPIO_PP1800_S0_EN, 0, 1 },
{ GPIO_AP_CORE_EN, 0, 20 },
};
-#elif CONFIG_CHIPSET_POWER_SEQ_VERSION == 3
-static const struct power_seq_op s0s3_power_seq[] = {
- { GPIO_PP1800_SENSOR_EN_L, 1, 0 },
- { GPIO_PP1800_SIXAXIS_EN_L, 1, 0 },
- { GPIO_PP1800_LID_EN_L, 1, 0 },
- { GPIO_PP3300_TRACKPAD_EN_L, 1, 0 },
- { GPIO_PP3300_S0_EN_L, 1, 20 },
- { GPIO_PP1800_S0_EN_L, 1, 1 },
- { GPIO_AP_CORE_EN, 0, 20 },
- { GPIO_PP1800_AP_AVDD_EN_L, 1, 1 },
-};
#else
static const struct power_seq_op s0s3_power_seq[] = {
{ GPIO_PP3300_S0_EN_L, 1, 20 },
@@ -216,16 +181,6 @@ static const struct power_seq_op s3s5_power_seq[] = {
{ GPIO_PP900_S3_EN, 0, 0 },
{ GPIO_PP900_S0_EN, 0, 0 },
};
-#elif CONFIG_CHIPSET_POWER_SEQ_VERSION == 3
-static const struct power_seq_op s3s5_power_seq[] = {
- { GPIO_PP5000_EN, 0, 0 },
- { GPIO_PP3300_USB_EN_L, 1, 20 },
- { GPIO_PP1800_USB_EN_L, 1, 10 },
- { GPIO_LPDDR_PWR_EN, 0, 20 },
- { GPIO_PP1800_PMU_EN_L, 1, 2 },
- { GPIO_PP900_S3_EN, 0, 0 },
- { GPIO_PP900_S0_EN, 0, 0 },
-};
#else
static const struct power_seq_op s3s5_power_seq[] = {
{ GPIO_PP1800_SENSOR_EN_L, 1, 0},