Hi, I just ported Pengutronics BSP to mini2440 board. After that I copied pwm module from linux-2.6.32-2 to new kernel (3.1), I did some changes according to new kernel like unlocked_ioctl, sema_init. Module compiled successfully and I can load in new board too, but the problem is after loading module it is not working. I am testing the module from pwm_test program comes with FriendlyArm BSP. Can you please guide me in right direction so that I can have working PWM with newer BSP. Thank You for your time. -- miniarm
Pengutronics BSP - PWM not working !!
A newer kernel comes with its internal generic PWM framebwork. Maybe the old driver you are using collides with it. At least the buzzer on the Mini2440 is driven by a PWM, controlled via the PWM framework. Take a look into the kernel's "linux-3.6/drivers/input/misc/pwm-beeper.c" file to get an idea to make use of the generic PWM framework inside a kernel driver.