diff options
Diffstat (limited to 'meta-openmoko/packages/openmoko2/neod/htc.patch')
-rw-r--r-- | meta-openmoko/packages/openmoko2/neod/htc.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-openmoko/packages/openmoko2/neod/htc.patch b/meta-openmoko/packages/openmoko2/neod/htc.patch new file mode 100644 index 0000000000..0ced894a45 --- /dev/null +++ b/meta-openmoko/packages/openmoko2/neod/htc.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Index: neod/configure.ac | ||
2 | =================================================================== | ||
3 | --- neod.orig/configure.ac 2007-09-15 23:01:30.000000000 +0200 | ||
4 | +++ neod/configure.ac 2007-09-15 23:02:01.000000000 +0200 | ||
5 | @@ -32,6 +32,10 @@ | ||
6 | NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_MOTOROLA_EZX" | ||
7 | fi | ||
8 | |||
9 | +if test x"$neod_platform" = x"htc"; then | ||
10 | + NEOD_CFLAGS="$NEOD_CFLAGS -DNEOD_PLATFORM_HTC" | ||
11 | +fi | ||
12 | + | ||
13 | CFLAGS=$NEOD_CFLAGS | ||
14 | |||
15 | AC_OUTPUT([ | ||
16 | Index: neod/src/buttonactions.c | ||
17 | =================================================================== | ||
18 | --- neod.orig/src/buttonactions.c 2007-09-15 23:02:15.000000000 +0200 | ||
19 | +++ neod/src/buttonactions.c 2007-09-15 23:04:16.000000000 +0200 | ||
20 | @@ -63,6 +63,12 @@ | ||
21 | #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a | ||
22 | #endif | ||
23 | |||
24 | +#ifdef NEOD_PLATFORM_HTC | ||
25 | + #define AUX_BUTTON_KEYCODE 0xd4 /* camera */ | ||
26 | + #define POWER_BUTTON_KEYCODE 0x74 /* power */ | ||
27 | + #define TOUCHSCREEN_BUTTON_KEYCODE 0x14a | ||
28 | +#endif | ||
29 | + | ||
30 | #define HEADPHONE_INSERTION_SWITCHCODE 0x02 | ||
31 | |||
32 | GPollFD input_fd[10]; | ||