freebsd-src/sys/modules/vf_i2c/Makefile
Pierre-Luc Drouin 5ca8e32633 vf_i2c: split up and add ACPI attachments in addition to FDT
Move the code from the arm specific to the iicbus controller directory.
Split up between general logic and bus attachment code.
Add support for ACPI attachment in addition to FDT.

MFC after:	7 days
Tested by:	bz (LS1088a FDT), Pierre-Luc Drouin (Honeycomb, ACPI)
Based on:	D24917 by Val Packett (initial early version)
Differential Revision:	https://reviews.freebsd.org/D44020
2024-03-29 23:04:51 +00:00

15 lines
299 B
Makefile

.PATH: ${SRCTOP}/sys/dev/iicbus/controller/vybrid
KMOD= vf_i2c
SRCS= vf_i2c.c vf_i2c.h
SRCS+= device_if.h bus_if.h iicbus_if.h
SRCS+= opt_acpi.h opt_platform.h
SRCS.DEV_ACPI= vf_i2c_acpi.c acpi_if.h
.if !empty(OPT_FDT)
SRCS+= vf_i2c_fdt.c ofw_bus_if.h clknode_if.h
.endif
.include <bsd.kmod.mk>