diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-12-01 17:48:15 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-12-01 17:48:15 +0100 |
commit | 76fa4be11b079ff5aeac2f3365433859ffb69130 (patch) | |
tree | a15b6bf525e0a7c938c01de3440ad81bf1c2a8f5 /arch/arm/mach-tegra/board-apalis_t30.h | |
parent | 3d7a3b49fdb67464f04f6bf720c411a95498938a (diff) |
apalis_t30: implement power button optionally acting as power-key
Both the Apalis EvalBoard as well as Ixora allow their LTC2954
pushbutton on/off controller to optionally initiate orderly shutdown
via GPIO interrupt on GPIO5 upon short power button press (short here
meaning really short unless C137 resp. C35 is assembled). For this to
work the following wiring is required:
Apalis EvalBoard V1.1a X61-4 to X2-6
Ixora V1.0a X5-4 to X27-17
For systemd/logind to actually use this as a power-switch a custom udev
rule /etc/udev/rules.d/70-power-switch-apalis_t30.rules as follows is
required:
# Specific rule for apalis_t30:
#
# Apalis T30's power button is not part of the kernel acpi subsystem.
# Let's manually add the power-switch tag to control its behaviour with
# systemd/logind
ACTION=="remove", GOTO="power_apalis_t30_end"
SUBSYSTEM=="input", KERNEL=="event1", TAG+="power-switch"
LABEL="power_apalis_t30_end"
Diffstat (limited to 'arch/arm/mach-tegra/board-apalis_t30.h')
-rw-r--r-- | arch/arm/mach-tegra/board-apalis_t30.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-apalis_t30.h b/arch/arm/mach-tegra/board-apalis_t30.h index a62bab002ae0..c08ff32741b8 100644 --- a/arch/arm/mach-tegra/board-apalis_t30.h +++ b/arch/arm/mach-tegra/board-apalis_t30.h @@ -27,6 +27,7 @@ #include <mach/irqs.h> //#define FORCE_OFF_GPIO APALIS_GPIO6 +//#define POWER_GPIO APALIS_GPIO5 /* GPIO */ |