From 08bb2e329bbebb2116e9674e2bf0d2dc408ca8ad Mon Sep 17 00:00:00 2001 From: John Lee Date: Thu, 14 Feb 2008 10:36:24 +0000 Subject: openmoko-dialer2: add machine specific patch for backlight and vibrator * this should be done in external config but for now we use patch * gta01 and gta02 use different names for backlight and vibrator under /sys * this only works with kernel 2.6.24 --- .../openmoko2/openmoko-dialer2/fic-gta01/.mtn2git_empty | 0 .../openmoko-dialer2/fic-gta01/kernel-2.6.24.patch | 13 +++++++++++++ .../openmoko2/openmoko-dialer2/fic-gta02/.mtn2git_empty | 0 .../openmoko-dialer2/fic-gta02/kernel-2.6.24.patch | 15 +++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 packages/openmoko2/openmoko-dialer2/fic-gta01/.mtn2git_empty create mode 100644 packages/openmoko2/openmoko-dialer2/fic-gta01/kernel-2.6.24.patch create mode 100644 packages/openmoko2/openmoko-dialer2/fic-gta02/.mtn2git_empty create mode 100644 packages/openmoko2/openmoko-dialer2/fic-gta02/kernel-2.6.24.patch (limited to 'packages/openmoko2/openmoko-dialer2') diff --git a/packages/openmoko2/openmoko-dialer2/fic-gta01/.mtn2git_empty b/packages/openmoko2/openmoko-dialer2/fic-gta01/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/openmoko2/openmoko-dialer2/fic-gta01/kernel-2.6.24.patch b/packages/openmoko2/openmoko-dialer2/fic-gta01/kernel-2.6.24.patch new file mode 100644 index 0000000000..c6f34f4131 --- /dev/null +++ b/packages/openmoko2/openmoko-dialer2/fic-gta01/kernel-2.6.24.patch @@ -0,0 +1,13 @@ +Index: openmoko-dialer2/src/phone-kit/moko-notify.c +=================================================================== +--- openmoko-dialer2/src/phone-kit/moko-notify.c.orig 2008-02-14 17:47:23.000000000 +0800 ++++ openmoko-dialer2/src/phone-kit/moko-notify.c 2008-02-14 17:48:19.000000000 +0800 +@@ -38,7 +38,7 @@ + + #define DEFAULT_RINGTONE "/default_ringtone.ogg" + #define SYS_BRIGHTNESS "/sys/class/backlight/gta01-bl" +-#define SYS_VIBRATE "/sys/class/leds/gta01:vibrator" ++#define SYS_VIBRATE "/sys/class/leds/neo1973:vibrator" + + struct _MokoNotifyPrivate + { diff --git a/packages/openmoko2/openmoko-dialer2/fic-gta02/.mtn2git_empty b/packages/openmoko2/openmoko-dialer2/fic-gta02/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/openmoko2/openmoko-dialer2/fic-gta02/kernel-2.6.24.patch b/packages/openmoko2/openmoko-dialer2/fic-gta02/kernel-2.6.24.patch new file mode 100644 index 0000000000..72c516f5d6 --- /dev/null +++ b/packages/openmoko2/openmoko-dialer2/fic-gta02/kernel-2.6.24.patch @@ -0,0 +1,15 @@ +Index: openmoko-dialer2/src/phone-kit/moko-notify.c +=================================================================== +--- openmoko-dialer2/src/phone-kit/moko-notify.c (revision 4051) ++++ openmoko-dialer2/src/phone-kit/moko-notify.c (working copy) +@@ -37,8 +37,8 @@ + MOKO_TYPE_NOTIFY, MokoNotifyPrivate)) + + #define DEFAULT_RINGTONE "/default_ringtone.ogg" +-#define SYS_BRIGHTNESS "/sys/class/backlight/gta01-bl" +-#define SYS_VIBRATE "/sys/class/leds/gta01:vibrator" ++#define SYS_BRIGHTNESS "/sys/class/backlight/pcf50633-bl" ++#define SYS_VIBRATE "/sys/class/leds/neo1973:vibrator" + + struct _MokoNotifyPrivate + { -- cgit v1.2.3