summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-apalis_t30.h
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-12-01 17:44:13 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-12-01 17:44:13 +0100
commit3d7a3b49fdb67464f04f6bf720c411a95498938a (patch)
tree993795e6f8472571d0955094bfe791aefac909cd /arch/arm/mach-tegra/board-apalis_t30.h
parentfdab4a21aca960b11ce8ffcef82a7794c03e93f9 (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.h')
-rw-r--r--arch/arm/mach-tegra/board-apalis_t30.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-apalis_t30.h b/arch/arm/mach-tegra/board-apalis_t30.h
index 9fde9ef1d89e..a62bab002ae0 100644
--- a/arch/arm/mach-tegra/board-apalis_t30.h
+++ b/arch/arm/mach-tegra/board-apalis_t30.h
@@ -26,6 +26,8 @@
#include <mach/gpio.h>
#include <mach/irqs.h>
+//#define FORCE_OFF_GPIO APALIS_GPIO6
+
/* GPIO */
#define APALIS_GPIO1 TEGRA_GPIO_PS2