r2953 - in trunk/src/target/OM-2007.2/daemons/neod: . src

mickey at sita.openmoko.org mickey at sita.openmoko.org
Tue Sep 11 16:53:30 CEST 2007


Author: mickey
Date: 2007-09-11 16:53:30 +0200 (Tue, 11 Sep 2007)
New Revision: 2953

Modified:
   trunk/src/target/OM-2007.2/daemons/neod/README
   trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
Log:
neod: add button action support for Motorola EZX platform


Modified: trunk/src/target/OM-2007.2/daemons/neod/README
===================================================================
--- trunk/src/target/OM-2007.2/daemons/neod/README	2007-09-11 09:25:22 UTC (rev 2952)
+++ trunk/src/target/OM-2007.2/daemons/neod/README	2007-09-11 14:53:30 UTC (rev 2953)
@@ -1,6 +1,8 @@
-Minimal Button and powermanagement handling daemon
+Minimal Button and powermanagement handling daemon for
+ * FIC Neo1973
+ * Motorola EZX Platform
 
-NOTE: Merely throwaway code, since it may be a better idea to base on
+NOTE: Merely throwaway code -- might be a better idea to base on
  * freedesktop's HAL / OHM, or
  * G[PE]2's machined, or
  * Florian Boor's devmand, or

Modified: trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
===================================================================
--- trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c	2007-09-11 09:25:22 UTC (rev 2952)
+++ trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c	2007-09-11 14:53:30 UTC (rev 2953)
@@ -45,13 +45,19 @@
 //FIXME load this from sysfs
 static const int MAX_BRIGHTNESS = 5000;
 
-#ifndef DEBUG_THIS_FILE
-    #define AUX_BUTTON_KEYCODE 169
-    #define POWER_BUTTON_KEYCODE 116
+#define AUX_BUTTON_KEYCODE 0x22
+#define POWER_BUTTON_KEYCODE 0x23
+#define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
+
+#ifdef NEOD_PLATFORM_FIC_NEO1973
+    #define AUX_BUTTON_KEYCODE 169    /* aux */
+    #define POWER_BUTTON_KEYCODE 116  /* power */
     #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
-#else
-    #define AUX_BUTTON_KEYCODE 0x22
-    #define POWER_BUTTON_KEYCODE 0x23
+#endif
+
+#ifdef NEOD_PLATFORM_MOTOROLA_EZX
+    #define AUX_BUTTON_KEYCODE 0xa7   /* voice */
+    #define POWER_BUTTON_KEYCODE 0xd4 /* camera */
     #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a
 #endif
 





More information about the commitlog mailing list