summaryrefslogtreecommitdiff
path: root/packages/openmoko2/neod/htc.patch
diff options
context:
space:
mode:
authorPhilipp Zabel <philipp.zabel@gmail.com>2007-09-29 16:27:24 +0000
committerPhilipp Zabel <philipp.zabel@gmail.com>2007-09-29 16:27:24 +0000
commit0591f8ca8149b2f64651e656ee0dd6048c8cff8f (patch)
treea499ecd9c658988e2dd54229aa702eda8c1807bc /packages/openmoko2/neod/htc.patch
parentc8f855c12f5e6b787d131e0c04f4474094c522c3 (diff)
neod: make it work with magician and hx4700
Diffstat (limited to 'packages/openmoko2/neod/htc.patch')
-rw-r--r--packages/openmoko2/neod/htc.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/openmoko2/neod/htc.patch b/packages/openmoko2/neod/htc.patch
new file mode 100644
index 0000000000..0ced894a45
--- /dev/null
+++ b/packages/openmoko2/neod/htc.patch
@@ -0,0 +1,32 @@
+Index: neod/configure.ac
+===================================================================
+--- neod.orig/configure.ac 2007-09-15 23:01:30.000000000 +0200
++++ neod/configure.ac 2007-09-15 23:02:01.000000000 +0200
+@@ -32,6 +32,10 @@
+ NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_MOTOROLA_EZX"
+ fi
+
++if test x"$neod_platform" = x"htc"; then
++ NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_HTC"
++fi
++
+ CFLAGS=$NEOD_CFLAGS
+
+ AC_OUTPUT([
+Index: neod/src/buttonactions.c
+===================================================================
+--- neod.orig/src/buttonactions.c 2007-09-15 23:02:15.000000000 +0200
++++ neod/src/buttonactions.c 2007-09-15 23:04:16.000000000 +0200
+@@ -63,6 +63,12 @@
+ #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
+ #endif
+
++#ifdef NEOD_PLATFORM_HTC
++ #define AUX_BUTTON_KEYCODE 0xd4 /* camera */
++ #define POWER_BUTTON_KEYCODE 0x74 /* power */
++ #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
++#endif
++
+ #define HEADPHONE_INSERTION_SWITCHCODE 0x02
+
+ GPollFD input_fd[10];