power/rk3399: Don't turn off the pp900_s0 during s3

The PP900_LOGIC can't be disabled for now, maybe we will disable it in
later,  since the ATF hadn't done it.
In order to the suspend to resume function is fine, let's keep it first.

BRANCH=none
BUG=b:65270978
TEST=build and run the S2R stress tests on nefario board

Change-Id: I932ee2b7667115df7516729f60faa71598f36d93
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/647053
Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
Caesar Wang
2017-09-01 16:06:17 +08:00
committed by chrome-bot
parent f31ee0c829
commit 098bde322f

View File

@@ -95,6 +95,7 @@ static const struct power_seq_op s5s3_power_seq[] = {
};
#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 },
@@ -134,7 +135,7 @@ static const struct power_seq_op s3s0_power_seq[] = {
};
#elif CONFIG_CHIPSET_POWER_SEQ_VERSION == 3
static const struct power_seq_op s3s0_power_seq[] = {
{ GPIO_PP900_S0_EN, 1, 2 },
/* 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 },
@@ -158,7 +159,6 @@ static const struct power_seq_op s3s0_power_seq[] = {
#ifdef S3_USB_WAKE
/* Sigs that may already be on in S3, if we need to wake-on-USB */
static const struct power_seq_op s3s0_usb_wake_power_seq[] = {
{ GPIO_PP900_S0_EN, 1, 2 },
{ GPIO_PP1800_USB_EN, 1, 2 },
{ GPIO_PP3300_S0_EN, 1, 2 },
};
@@ -180,7 +180,6 @@ static const struct power_seq_op s0s3_power_seq[] = {
{ GPIO_PP1800_S0_EN_L, 1, 1 },
{ GPIO_AP_CORE_EN, 0, 20 },
{ GPIO_PP1800_AP_AVDD_EN_L, 1, 1 },
{ GPIO_PP900_S0_EN, 0, 0 },
};
#else
static const struct power_seq_op s0s3_power_seq[] = {
@@ -198,7 +197,6 @@ static const struct power_seq_op s0s3_power_seq[] = {
static const struct power_seq_op s0s3_usb_wake_power_seq[] = {
{ GPIO_PP3300_S0_EN, 0, 20 },
{ GPIO_PP1800_USB_EN, 0, 1 },
{ GPIO_PP900_S0_EN, 0, 1 },
};
#endif
@@ -218,6 +216,7 @@ static const struct power_seq_op s3s5_power_seq[] = {
{ 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[] = {