Hi Pierre, 2008/4/17 Pierre - Emmanuel GAILLARDON <[EMAIL PROTECTED]>: > Hello, > > I tried to use the PWM1 TI driver to access the PWM1 of the DaVinci6446 with > the TI kernel but it doesn't work properly. > Here is some lines of the code where I configure the PWM driver via the > ioctrl function : > > #define PWM1_DEVICE "/dev/davinci_pwm1" > > lightlib_pwm1_device = open(PWM1_DEVICE, O_RDWR) > > ioctl(lightlib_pwm1_device, PWMIOC_SET_FIRST_PHASE_STATE, 0x00000001) > ioctl(lightlib_pwm1_device, PWMIOC_SET_INACT_OUT_STATE, 0x00000001) > ioctl(lightlib_pwm1_device, PWMIOC_SET_MODE, 1) > ioctl(lightlib_pwm1_device, PWMIOC_SET_RPT_VAL, 0x99999999) > ioctl(lightlib_pwm1_device, PWMIOC_SET_PERIOD, 0x00002000) > ioctl(lightlib_pwm1_device, PWMIOC_SET_DURATION, 0x00001000) > ioctl(lightlib_pwm1_device, PWMIOC_START, 1) > > With this configuration, the PWM remains on the low level > > I noticed that the PWM goes High only when > ioctl(lightlib_pwm1_device, PWMIOC_SET_PERIOD, 0x00008000) > ioctl(lightlib_pwm1_device, PWMIOC_SET_DURATION, 0x00004000) > but here it does act like a PWM, but more like a I/O. > > Has someone already used the TI PWM Drivers ? > Do you have any idea ??? >
Is this driver source available in public domain? If not, it would be hard to support from ML, except TI employees look into this. -- ---Trilok Soni http://triloksoni.wordpress.com _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
