Hello, 

Here is a patch to map "aux" and "power" button to palm tungsten t5
"home" and "power" button.

It's surely useless as T5 has no gsm, no gps, and not enough memory to
run openmoko as is :)

So feel free to not include it in upstream, it's just for fun !

-- 
Frédéric Leroy
# 
# old_revision [31539cdbe4bf1ddb9c898a13b8a9bf8437e711c8]
# 
# add_file "packages/openmoko2/neod/palmtt5.patch"
#  content [5018ce3e91c9099fc8fd445321293f02a6139540]
# 
# patch "packages/openmoko2/neod_svn.bb"
#  from [b6f42319c68704f5ba7b3028e3ddce7196da82ec]
#    to [fdab0372889518fa78f6a75d607bb65509a8f2f2]
# 
============================================================
--- packages/openmoko2/neod/palmtt5.patch	5018ce3e91c9099fc8fd445321293f02a6139540
+++ packages/openmoko2/neod/palmtt5.patch	5018ce3e91c9099fc8fd445321293f02a6139540
@@ -0,0 +1,32 @@
+Index: configure.ac
+===================================================================
+--- neod.orig/configure.ac	(révision 3421)
++++ neod/configure.ac	(copie de travail)
+@@ -40,6 +40,10 @@
+ 	NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_IPAQ"
+ fi
+ 
++if test x"$neod_platform" = x"palmtt5"; then
++	NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_PALM"
++fi
++
+ CFLAGS=$NEOD_CFLAGS
+ 
+ AC_OUTPUT([
+Index: src/buttonactions.c
+===================================================================
+--- neod.orig/src/buttonactions.c	(révision 3421)
++++ neod/src/buttonactions.c	(copie de travail)
+@@ -71,6 +71,12 @@
+     #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
+ #endif
+ 
++#ifdef NEOD_PLATFORM_PALM
++    #define AUX_BUTTON_KEYCODE 0x43     /* home */
++    #define POWER_BUTTON_KEYCODE 0x42 /* power */
++    #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
++#endif
++
+ #define HEADPHONE_INSERTION_SWITCHCODE 0x02
+ #define CHARGER_INSERTION_BUTTON 0x164
+ 
============================================================
--- packages/openmoko2/neod_svn.bb	b6f42319c68704f5ba7b3028e3ddce7196da82ec
+++ packages/openmoko2/neod_svn.bb	fdab0372889518fa78f6a75d607bb65509a8f2f2
@@ -8,7 +8,8 @@ SRC_URI += "file://htc.patch;patch=1;max
 inherit openmoko2 gconf
 
 SRC_URI += "file://htc.patch;patch=1;maxrev=3348 \
-            file://ipaq.patch;patch=1;maxrev=3348"
+            file://ipaq.patch;patch=1;maxrev=3348 \
+            file://palmtt5.patch;patch=1;maxrev=3421"
 
 EXTRA_OECONF_fic-gta01 = "--with-platform=neo1973"
 EXTRA_OECONF_fic-gta02 = "--with-platform=neo1973"
@@ -20,6 +21,7 @@ EXTRA_OECONF_htcuniversal = "--with-plat
 EXTRA_OECONF_magician  = "--with-platform=htc"
 EXTRA_OECONF_hx4700    = "--with-platform=ipaq"
 EXTRA_OECONF_htcuniversal = "--with-platform=htc"
+EXTRA_OECONF_palmtt5   = "--with-platform=palmtt5"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 

Reply via email to