aboutsummaryrefslogtreecommitdiff
path: root/drivers/leds/leds-neo1973-vibrator.c
AgeCommit message (Collapse)Author
2009-03-31This patch brings suspend/resume back to GTA01Tim Niemeyer
"pdata" is NULL on GTA01 and you oops. Revised patch, this time with if(..) instead of #ifdef Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2009-02-22clean-fiq-vib.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2009-02-22gta02_use_new_fiq_and_hdq_stuff.patchBalaji Rao
Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
2009-02-22move_pwm_code_to_plat_s3c.patchBalaji Rao
Since the pwm code in mach-2410 can be reused for 6410, move it to plat-s3c. Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
2008-11-19tracking-2.6.28-breakage-after-change-to-64xx-tree.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-19Move asm/arch/fiq_ipc_gta02.h to mach/fiq_ipc_gta02.hJonas Bonn
Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
2008-11-19Move asm/arch/pwm.h to mach/pwm.hJonas Bonn
Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
2008-11-19Re: [PATCH]: Cleanup of leds-neo1973Nelson Castillo
Remove unneeded spaces and coding style fixes. Purely cosmetic.
2008-11-19fix-stable-tracking-build-without-symlink.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-19[ARM]: Move asm/arch/gta01.h to include/machJonas Bonn
This file is OpenMoko specific and didn't get moved in the big file move. Move it to arch/arm/mach-s3c2410/include/mach where it belongs and fix the references to it. Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
2008-11-19GTA01: replace mutex with spinlock in neo1973_vib_vib_setJonas Bonn
This function (set_brightness) may be called in interrupt context and therefore should not sleep; use a spin_lock instead of a mutex to ensure this. This should take care of the following BUG: [21474678.340000] BUG: sleeping function called from invalid context at kernel/mutex.c:207 [21474678.340000] in_atomic():1, irqs_disabled():0 [21474678.340000] no locks held by python/1255. [21474678.340000] [<c002d928>] (dump_stack+0x0/0x18) from [<c003b08c>] (__might_sleep+0xdc/0xf8) [21474678.340000] [<c003afb0>] (__might_sleep+0x0/0xf8) from [<c02efc08>] (mutex_lock_nested+0x2c/0x264) [21474678.340000] r5:c03ed754 r4:c03ed6dc [21474678.340000] [<c02efbdc>] (mutex_lock_nested+0x0/0x264) from [<c022e180>] (neo1973_vib_vib_set+0x2c/0x6c) [21474678.340000] [<c022e154>] (neo1973_vib_vib_set+0x0/0x6c) from [<c022e6a4>] (led_timer_function+0x8c/0xb4) [21474678.340000] r6:c041a1a0 r5:c7f34820 r4:0000012c [21474678.340000] [<c022e618>] (led_timer_function+0x0/0xb4) from [<c004aeb4>] (run_timer_softirq+0x180/0x20c) [21474678.340000] r5:c7f3482c r4:00000102 [21474678.340000] [<c004ad34>] (run_timer_softirq+0x0/0x20c) from [<c0046368>] (__do_softirq+0x64/0xd8) [21474678.340000] r8:00000000 r7:00000001 r6:0000000a r5:c0419ff8 r4:00000041 [21474678.340000] [<c0046304>] (__do_softirq+0x0/0xd8) from [<c0046764>] (irq_exit+0x48/0x5c) [21474678.340000] r6:00000000 r5:c03d128c r4:0000001e [21474678.340000] [<c004671c>] (irq_exit+0x0/0x5c) from [<c0028050>] (__exception_text_start+0x50/0x68) [21474678.340000] [<c0028000>] (__exception_text_start+0x0/0x68) from [<c0028a8c>] (__irq_usr+0x4c/0xe0) [21474678.340000] Exception stack(0xc7d7bfb0 to 0xc7d7bff8) [21474678.340000] bfa0: 0055bb3a 0000004a 00000000 0055baf0 [21474678.340000] bfc0: 0000004a 0052ae30 00000025 005168e0 00000073 00000025 401281ec 00000000 [21474678.340000] bfe0: 0000006f be9b8470 006e0069 400a8844 60000010 ffffffff [21474678.340000] r6:00004000 r5:f4000000 r4:ffffffff Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
2008-11-19Drop FIQ dependency for GTA01 configuration.Jonas Bonn
When the config option MACH_NEO1973_GTA02 is not set, then we do not need to have any access to the FIQ symbols. Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
2008-11-19tracking-2.6.27-rc2-include-path-changes.patchAndy Green
Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-19[neo] Every access to GPIO bank B has to go through the shadow codeHolger Freyther
- Any setting of any PIN on bank B will undo the LED setting. Introduce neo1973_gpb_set_pin to set the PIN in a way not losing the LED or any other shadowed setting. - Update users of GPBXY for gta01 and gta02. Signed-Off-By: Holger Freyther <zecke@openmoko.org>
2008-11-19OpenMoko => OpenmokoHolger Freyther
Signed-Off-By: Holger Freyther <zecke@openmoko.org>
2008-11-19introduce-fiq-migrate-vibrator-gta02-only.patchmokopatches
On GTA02 we use FIQ to manage the vibrator IO now. That is necessary because we stole timer3 from doing hw pwm for vibrator. This keeps the same UI in /sys but does "bitbang pwm" on the same vibrator GPIO From: Andy Green <andy@openmoko.com> Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-19gta02-core.patchmokopatches
2008-11-19gta01-vibrator.patchmokopatches
This patch adds driver support for the vibator device of the FIC/OpenMoko Neo1973 GSM phone. The driver uses the existing LED class driver framework, since there's a lot of similarity between the LED and the vibrator function. Signed-off-by: Harald Welte <laforge@openmoko.org>