mini2440 pwm pin's rising edge detect

dipen
Now i want to detect rising edge of pwm for pin no (mini2440 board)
S3C2410_GPB(0),  //CON4-pin no 31 and gpio no  32 //PWM 

So on rising edge i want to enable other output gpio pins.

SO i don't know how to detect rising edge of pwm pin in kernel module.
so if have you any example or  suggestion so help me..