Thanks Leonardo to measure and put together this report of this issue
when using 4.4.91-ti-r137.
It should turn on the beaglebone TIMER4.
I have tested this code on 3.8 kernel and it works.
This currently prevents PWM to work in BeagleG in newer kernels; so it
would be good to know from some of the people familiar with the
kernel/GPIO interaction could chime in and explain what is going on
and if there is a way to work-around it or if the initialization
should be different altogether.
Ping - it would be really interesting to know if disabling the kernel
driver is simple thing that can be configured from user-space, or
maybe if there are alternatives.
So far I enjoyed that it is possible to relatively simply just read
the datasheet and set the registers, but that seems to increasingly
getting complicated with the kernel doing its own thing. Which is fine
I suppose, but is there a documentation how to use the PWM subsystem
in that case ?