scottellis/omap3-pwm — pull request #4 by subCdteOso (2012-12-29 07:24:17+00:00)
Title: Adding IOCTL handler and alternate output pin functionality.

- An IOCTL handler that adds the ability to change the pulse
width and the pulse frequency values. The Pulse frequency
may also be read via the IOCTL handler. There’s one more
IOCTL call that will reset the pulse width to the start value
when in servo mode.

- The ability to specify an alternate output pin for each timer. There
are actually three options for each timer but the GPMC pin option
is omitted (mode 3). With each timer number in the insmod
options an ‘A’, ‘a’, ‘B’, or ‘b’ may be added and the mode 2 or
mode 1 mux option will be selected respectively. For example:
insmod /root/pwm.ko timers=8,9B,10,11
will put timers 8,10, and 11 in mode 2 and timer 9 in mode 1. If the
A/B option isn’t given it defaults to the mode 2 behavior. With this
setup the intent was to preserve the existing behavior and extend
the ability to specify alternate pins at the command line.