Hi,
I am working on Beaglebone (AM335x)and tried to control PWM.
I have a plan to control PWM by using "register" only with datasheet (http://www.ti.com/lit/ug/spruh73i/spruh73i.pdf) and would like not to use "pwm_test device driver" because of real time issue.
I found it controlling "frequency" and "duty cycle" by using register only is quite easy. (https://github.com/zedoul/rtdm-pwm/blob/master/rtdm/mf2044-pwm-drv.c)
but controlling "init/deinit PWM" is quite confusing and still could not make it. I read kernel source - pwm-tipwmss.c, pwm-tiehrpwm.c, and pwm_test.c, but still could not get it too. Also I asked "Beaglebone google group" but they don't make it too. So I guess this thread is my last chance.
So my questions are :
* Is it possible to enable/disable PWM by controlling "registers" only? If not, which prerequisites should be placed in order to make it?
* Could you let me know the sample code for enabling PWM which is equivalent to "echo bone_pwm_P9_14 > /sys/devices/bone_capemgr.7/slots" ?
* Could you let me know the document to read in order to activate PWM?
Thanks in advance.