r3173 - trunk/src/target/kernel/patches
laforge at sita.openmoko.org
laforge at sita.openmoko.org
Mon Oct 15 14:49:26 CEST 2007
Author: laforge
Date: 2007-10-15 14:49:23 +0200 (Mon, 15 Oct 2007)
New Revision: 3173
Modified:
trunk/src/target/kernel/patches/gta01-vibrator.patch
Log:
increase vibrator PWM frequency to 257kHz (66MHz / 2 / 2 / 64) to be outside
the human-audible range. It's a vibrator, not a 4kHz beeper!
Modified: trunk/src/target/kernel/patches/gta01-vibrator.patch
===================================================================
--- trunk/src/target/kernel/patches/gta01-vibrator.patch 2007-10-15 12:13:46 UTC (rev 3172)
+++ trunk/src/target/kernel/patches/gta01-vibrator.patch 2007-10-15 12:49:23 UTC (rev 3173)
@@ -31,7 +31,7 @@
+#include <asm/arch/pwm.h>
+#include <asm/arch/gta01.h>
+
-+#define COUNTER 256
++#define COUNTER 64
+
+struct gta01_vib_priv
+{
@@ -64,7 +64,7 @@
+ */
+ mutex_lock(&vp->mutex);
+ if (vp->has_pwm) {
-+ s3c2410_pwm_duty_cycle(value, vp->pwm);
++ s3c2410_pwm_duty_cycle(value/4, vp->pwm);
+ s3c2410_gpio_cfgpin(vp->gpio, S3C2410_GPB3_TOUT3);
+ } else {
+ if (value)
@@ -102,7 +102,7 @@
+ vp->pwm->timerid= PWM3;
+ /* use same prescaler as arch/arm/plat-s3c24xx/time.c */
+ vp->pwm->prescaler = (6 - 1) / 2;
-+ vp->pwm->divider = S3C2410_TCFG1_MUX3_DIV16;
++ vp->pwm->divider = S3C2410_TCFG1_MUX3_DIV2;
+ vp->pwm->counter = COUNTER;
+ vp->pwm->comparer = COUNTER;
+
More information about the commitlog
mailing list