summaryrefslogtreecommitdiff
path: root/power/tegra.c
diff options
context:
space:
mode:
Diffstat (limited to 'power/tegra.c')
-rw-r--r--power/tegra.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/power/tegra.c b/power/tegra.c
index 37db5cb997..a52ee268e6 100644
--- a/power/tegra.c
+++ b/power/tegra.c
@@ -365,8 +365,8 @@ static void power_on(void)
uint64_t t;
/* Set pull-up and enable interrupt */
- gpio_set_flags(GPIO_SUSPEND_L, GPIO_INPUT | GPIO_PULL_UP |
- GPIO_INT_BOTH);
+ gpio_set_flags(power_signal_list[TEGRA_SUSPEND_ASSERTED].gpio,
+ GPIO_INPUT | GPIO_PULL_UP | GPIO_INT_BOTH);
/* Make sure we de-assert the PMI_THERM_L and AP_RESET_L pin. */
set_pmic_therm(0);
@@ -445,7 +445,8 @@ static void power_off(void)
chipset_turn_off_power_rails();
/* Change SUSPEND_L pin to high-Z to reduce power draw. */
- gpio_set_flags(GPIO_SUSPEND_L, GPIO_INPUT);
+ gpio_set_flags(power_signal_list[TEGRA_SUSPEND_ASSERTED].gpio,
+ GPIO_INPUT);
lid_opened = 0;
enable_sleep(SLEEP_MASK_AP_RUN);