summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorximingc <ximingc@nvidia.com>2014-01-23 11:29:45 +0800
committerGerrit Code Review <gerrit2@nvidia.com>2014-01-26 23:11:57 -0800
commita628a52ac42daab97efa7deea9cff6d9584db668 (patch)
treecd54d1d8694489245c2037a0a7494cbc3489cd3f /arch
parenta61fb8cd8298a8bf3e73da5bba8dacc07752c984 (diff)
ARM:tegra:tn7c:Configure GPIO_PQ1 as sleep gpio
GPIO_PQ1(KB_COL1) needs to re-configure in LP0 state. Bug 1439735 Change-Id: I5a18136c537e7a6938e19f4e834bde61846c1161 Signed-off-by: ximingc <ximingc@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/board-tegranote7c-pinmux.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-tegranote7c-pinmux.c b/arch/arm/mach-tegra/board-tegranote7c-pinmux.c
index 84bc78a9193f..85d323be6394 100644
--- a/arch/arm/mach-tegra/board-tegranote7c-pinmux.c
+++ b/arch/arm/mach-tegra/board-tegranote7c-pinmux.c
@@ -78,10 +78,13 @@ static void __init tegranote7c_gpio_init_configure(void)
}
#ifdef CONFIG_PM_SLEEP
-/* pinmux settings during low power mode for power saving purpose */
-static struct tegra_pingroup_config tegranote7c_sleep_pinmux[] = {
+/* pinmux settings during low power mode for special purpose */
+static struct tegra_pingroup_config tegranote7c_sleep_pinmux[] = { };
+
+/* gpio settings during low power mode for special purpose */
+static struct gpio_init_pin_info tegranote7c_sleep_gpio[] = {
/* Config RT6154 to PSM mode to save modem power */
- GPIO_PINMUX(KB_COL1, PULL_DOWN, NORMAL, OUTPUT, DISABLE),
+ GPIO_INIT_PIN_MODE(TEGRA_GPIO_PQ1, false, 0),
};
#endif
@@ -105,6 +108,8 @@ int __init tegranote7c_pinmux_init(void)
#ifdef CONFIG_PM_SLEEP
tegra11x_set_sleep_pinmux(tegranote7c_sleep_pinmux,
ARRAY_SIZE(tegranote7c_sleep_pinmux));
+ tegra11x_set_sleep_gpio(tegranote7c_sleep_gpio,
+ ARRAY_SIZE(tegranote7c_sleep_gpio));
#endif
return 0;