phk
c80c647d0e
Forgot to edit copy&pasted copyright blurb.
2018-01-22 07:15:24 +00:00
phk
15663d7fc1
Add a skeleton Clock Manager for RPi2/3, and use that from pwm
...
instead of frobbing the registers directly.
As a hack the bcm2835_pwm kmod presently ignores the 'status="disabled"'
in the RPI3 DTB, assuming that if you load the kld you probably
want the PWM to work.
2018-01-22 07:10:30 +00:00
phk
0f399435e7
Rename rpi_pwm to bcm283x_pwm, and build it on armv[67] and arm64.
...
Truncate ratio if period is lowered.
Tested on Rpi2 and Rpi3.
Rpi3 requires DTB->DTS->edit->DTB hack
2018-01-21 21:27:41 +00:00
phk
7765038ea7
Add a rudimentary PWM driver for the RaspberryPi.
...
Control is through sysctl, only GPIO12 supported.
bootverbose creates sysctls for direct mangling of relevant registers.
Only tested on RPI2
2018-01-14 20:36:21 +00:00