git: 03205a8cd57f - main - i2c: rtc: Add module for hym8563 driver

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Fri, 06 Oct 2023 19:29:47 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=03205a8cd57feb95752142d899d026ff8f45f3e6

commit 03205a8cd57feb95752142d899d026ff8f45f3e6
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2023-10-06 19:20:00 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-10-06 19:29:38 +0000

    i2c: rtc: Add module for hym8563 driver
    
    It's used in the nanopi-r5s
---
 sys/modules/i2c/Makefile         |  3 ++-
 sys/modules/i2c/hym8563/Makefile | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

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>