From 4be3b6cddde0dbf2d66493466f00a1ea930bdfaf Mon Sep 17 00:00:00 2001 From: mokopatches Date: Wed, 19 Nov 2008 17:03:18 +0000 Subject: introduce-fiq-migrate-vibrator-gta02-only.patch 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 Signed-off-by: Andy Green --- include/asm-arm/arch-s3c2410/fiq_ipc_gta02.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/asm-arm') diff --git a/include/asm-arm/arch-s3c2410/fiq_ipc_gta02.h b/include/asm-arm/arch-s3c2410/fiq_ipc_gta02.h index 6cbd8e44710..507d23556b2 100644 --- a/include/asm-arm/arch-s3c2410/fiq_ipc_gta02.h +++ b/include/asm-arm/arch-s3c2410/fiq_ipc_gta02.h @@ -16,8 +16,15 @@ * for testing */ +#include +#include + + struct fiq_ipc { - u8 u8a[0]; /* placeholder */ + /* vibrator */ + unsigned long vib_gpio_pin; /* which pin to meddle with */ + u8 vib_pwm; /* 0 = OFF -- will ensure GPIO deasserted and stop FIQ */ + u8 vib_pwm_latched; }; /* actual definition lives in arch/arm/mach-s3c2440/fiq_c_isr.c */ -- cgit v1.2.3