aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2023-10-06 19:20:00 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2023-10-06 19:29:38 +0000
commit03205a8cd57feb95752142d899d026ff8f45f3e6 (patch)
tree240637feba862e5649910b2666262e5d7905ca18
parent38cbdae33b7c3f772845c06f52b86c0ddeab6a17 (diff)
downloadsrc-03205a8cd57feb95752142d899d026ff8f45f3e6.tar.gz
src-03205a8cd57feb95752142d899d026ff8f45f3e6.zip
i2c: rtc: Add module for hym8563 driver
It's used in the nanopi-r5s
-rw-r--r--sys/modules/i2c/Makefile3
-rw-r--r--sys/modules/i2c/hym8563/Makefile13
2 files changed, 15 insertions, 1 deletions
diff --git a/sys/modules/i2c/Makefile b/sys/modules/i2c/Makefile
index abbb390b0e07..6c976e9303f1 100644
--- a/sys/modules/i2c/Makefile
+++ b/sys/modules/i2c/Makefile
@@ -28,7 +28,8 @@ SUBDIR = \
smbus \
.if !empty(OPT_FDT)
-SUBDIR += rv3032 \
+SUBDIR += hym8563 \
+ rv3032 \
rx8803 \
tca64xx \
tmp461
diff --git a/sys/modules/i2c/hym8563/Makefile b/sys/modules/i2c/hym8563/Makefile
new file mode 100644
index 000000000000..e64190887610
--- /dev/null
+++ b/sys/modules/i2c/hym8563/Makefile
@@ -0,0 +1,13 @@
+
+.PATH: ${SRCTOP}/sys/dev/iicbus/rtc
+KMOD= hym8563
+SRCS= hym8563.c
+
+SRCS+= bus_if.h \
+ clock_if.h \
+ device_if.h \
+ iicbus_if.h \
+ opt_platform.h \
+ ofw_bus_if.h
+
+.include <bsd.kmod.mk>