diff options
author | mokopatches <mokopatches@openmoko.org> | 2008-11-19 17:03:18 +0000 |
---|---|---|
committer | warmcat <andy@warmcat.com> | 2008-11-19 17:03:18 +0000 |
commit | 4be3b6cddde0dbf2d66493466f00a1ea930bdfaf (patch) | |
tree | d714a215bd70753d104da31606d78bec0c9ac858 /include | |
parent | 81487a2b118cee39ed13586b17c394935d799216 (diff) |
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 <andy@openmoko.com>
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-s3c2410/fiq_ipc_gta02.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 <asm/arch/pwm.h> +#include <asm/plat-s3c/regs-timer.h> + + 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 */ |