summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpio-keys.kl1
-rw-r--r--gta04.mk5
-rw-r--r--twl4030_pwrbutton.kl1
3 files changed, 5 insertions, 2 deletions
diff --git a/gpio-keys.kl b/gpio-keys.kl
new file mode 100644
index 0000000..3d30e23
--- /dev/null
+++ b/gpio-keys.kl
@@ -0,0 +1 @@
+key 169 BACK WAKE_DROPPED
diff --git a/gta04.mk b/gta04.mk
index 645072c..2544b21 100644
--- a/gta04.mk
+++ b/gta04.mk
@@ -13,9 +13,10 @@
# limitations under the License.
# Hardware
-# TODO: keymaps
PRODUCT_COPY_FILES := \
- device/goldelico/gta04/vold.fstab:system/etc/vold.fstab
+ device/goldelico/gta04/vold.fstab:system/etc/vold.fstab \
+ device/goldelico/gta04/twl4030_pwrbutton.kl:system/usr/keylayout/twl4030_pwrbutton.kl \
+ device/goldelico/gta04/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl
# APNS
PRODUCT_COPY_FILES += \
diff --git a/twl4030_pwrbutton.kl b/twl4030_pwrbutton.kl
new file mode 100644
index 0000000..ef2c8f6
--- /dev/null
+++ b/twl4030_pwrbutton.kl
@@ -0,0 +1 @@
+key 116 POWER WAKE