clock enable for i.mx35 pwm
Alexander Stein
alexander.stein at systec-electronic.com
Tue Nov 16 06:17:32 EST 2010
Hello,
I tried to use the PWM for activating a beeper. I noticed I had to write twice
to the input device (pwm-beeper.c) to get a sound. I noticed the clock is
enabled after the PWM is configured (or should be configured). So it seems
while the clock is disabled, you can't program the PWM unit. So on pwm_request
the clock should be enabled immediately and on pwm_enable the MX3_PWMCR_EN bit
should be set (at least for i.mx > 2.1). No idea how to do that in the "older"
variants.
Any opinions/fix about that?
Best regards,
Alexander
More information about the linux-arm-kernel
mailing list