summaryrefslogtreecommitdiff
path: root/board/cheza
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-08-13 14:05:17 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-31 05:22:51 -0700
commit1c2206858913b12b64db7df6de2fe95a1737e31e (patch)
tree1382d5d60806eea2965473d0629582a9c0e76932 /board/cheza
parent224667711a684241ef24cc3338b112097b10eba4 (diff)
downloadchrome-ec-1c2206858913b12b64db7df6de2fe95a1737e31e.tar.gz
cheza: Disable interrupts which are floating when switchcap off
The power signals, AP_RST_L and PMIC_FAULT_L, are floating when switchcap off. Disable their interrupts. The PS_HOLD and POWER_GOOD should be OK as they have pull-down. BRANCH=none BUG=b:78455067 TEST=Checked "power on", "power off", "apshutdown", and "apreset". Change-Id: I17e4c7e8f82e950b52d750961f4b5efc01c18ccf Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1180066 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'board/cheza')
-rw-r--r--board/cheza/board.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/board/cheza/board.c b/board/cheza/board.c
index 21ef62ae19..badbfbef6c 100644
--- a/board/cheza/board.c
+++ b/board/cheza/board.c
@@ -162,13 +162,21 @@ BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
/* Power signal list. Must match order of enum power_signal. */
const struct power_signal_info power_signal_list[] = {
[SDM845_AP_RST_L] = {
- GPIO_AP_RST_L, POWER_SIGNAL_ACTIVE_HIGH, "AP_RST_L"},
+ GPIO_AP_RST_L,
+ POWER_SIGNAL_ACTIVE_HIGH | POWER_SIGNAL_DISABLE_AT_BOOT,
+ "AP_RST_L"},
[SDM845_PS_HOLD] = {
- GPIO_PS_HOLD, POWER_SIGNAL_ACTIVE_HIGH, "PS_HOLD"},
+ GPIO_PS_HOLD,
+ POWER_SIGNAL_ACTIVE_HIGH,
+ "PS_HOLD"},
[SDM845_PMIC_FAULT_L] = {
- GPIO_PMIC_FAULT_L, POWER_SIGNAL_ACTIVE_HIGH, "PMIC_FAULT_L"},
+ GPIO_PMIC_FAULT_L,
+ POWER_SIGNAL_ACTIVE_HIGH | POWER_SIGNAL_DISABLE_AT_BOOT,
+ "PMIC_FAULT_L"},
[SDM845_POWER_GOOD] = {
- GPIO_POWER_GOOD, POWER_SIGNAL_ACTIVE_HIGH, "POWER_GOOD"},
+ GPIO_POWER_GOOD,
+ POWER_SIGNAL_ACTIVE_HIGH,
+ "POWER_GOOD"},
};
BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);