Am Samstag, 1. April 2017 22:18:30 UTC+2 schrieb Justin Pearson: > > Are you saying that the only way to get PWM in a 4.x kernel is by > modifying am33xx-clocks.dtsi? >
No. The kernel driver should also work (untested). But in your case (controlling the PWM subsystem by PRU code) you have to modify that file. (Or you can develop a loadable kernel module that writes to the register.) > Also, how can I verify whether the register is set correctly? > The PRU cannot write to the Control Module registers, but it can read them. Get a word from 0x44E10664 and pass it to the ARM code. Bits 0:2 must be set to get output from all PWM subsystems. In your case bit 1 set is sufficient to get ehrpwm1B working. Regards -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/3041a94e-58ab-4c28-ad29-ad3a2b90315b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.