aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/Makefile
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2018-01-21 21:27:41 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2018-01-21 21:27:41 +0000
commit137a344c6341d1469432e9deb3a25593f96672ad (patch)
tree626c66537773f2a1941bf7b9f7b6d93100bb77ca /sys/modules/Makefile
parentbdf16dd67c2e90c41bb35b4cc5395da329de8450 (diff)
downloadsrc-137a344c6341d1469432e9deb3a25593f96672ad.tar.gz
src-137a344c6341d1469432e9deb3a25593f96672ad.zip
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
Notes
Notes: svn path=/head/; revision=328223
Diffstat (limited to 'sys/modules/Makefile')
-rw-r--r--sys/modules/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 892c50ab3198..925d89a341fd 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -60,6 +60,7 @@ SUBDIR= \
${_autofs} \
${_auxio} \
${_bce} \
+ ${_bcm283x_pwm} \
bfe \
bge \
bhnd \
@@ -806,6 +807,10 @@ _cloudabi64= cloudabi64
.endif
+.if ${MACHINE_ARCH:Marmv[67]*} != "" || ${MACHINE_CPUARCH} == "aarch64"
+_bcm283x_pwm= bcm283x_pwm
+.endif
+
.if ${MACHINE_ARCH:Marmv[67]*} != ""
_ffec= ffec
.endif