diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-12-01 17:44:13 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-12-01 17:44:13 +0100 |
commit | 3d7a3b49fdb67464f04f6bf720c411a95498938a (patch) | |
tree | 993795e6f8472571d0955094bfe791aefac909cd /arch/arm/mach-tegra/board-apalis_t30.c | |
parent | fdab4a21aca960b11ce8ffcef82a7794c03e93f9 (diff) |
apalis_t30: implement optional force off gpio support
Both the Apalis EvalBoard as well as Ixora allow their LTC2954
pushbutton on/off controller to optionally be forced off by using a
GPIO. This patch implements this upon poweroff/shutdown using Apalis
GPIO6 which happens to be internally pulled-up upon power-on reset
(otherwise we would immediately get powered off again). For this to
work the following wiring is required:
Apalis EvalBoard V1.1a X2-A5 to X61-5
Ixora V1.0a X27-18 to X5-5
Diffstat (limited to 'arch/arm/mach-tegra/board-apalis_t30.c')
-rw-r--r-- | arch/arm/mach-tegra/board-apalis_t30.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-apalis_t30.c b/arch/arm/mach-tegra/board-apalis_t30.c index f119ec7724df..a114e4773e12 100644 --- a/arch/arm/mach-tegra/board-apalis_t30.c +++ b/arch/arm/mach-tegra/board-apalis_t30.c @@ -366,7 +366,9 @@ static struct gpio apalis_t30_gpios[] = { {APALIS_GPIO3, GPIOF_IN, "GPIO3 X1-5"}, {APALIS_GPIO4, GPIOF_IN, "GPIO4 X1-7"}, {APALIS_GPIO5, GPIOF_IN, "GPIO5 X1-9"}, +#ifndef FORCE_OFF_GPIO {APALIS_GPIO6, GPIOF_IN, "GPIO6 X1-11"}, +#endif /* GPIO7 is used by PCIe driver on Evaluation board */ /* {APALIS_GPIO7, GPIOF_IN, "GPIO7 X1-13"}, */ {APALIS_GPIO8, GPIOF_IN, "GPIO8 X1-15, FAN"}, |