Add pnp info and a module makefile for the imx_wdog watchdog driver.

This commit is contained in:
Ian Lepore 2018-07-07 17:25:09 +00:00
parent 62ba9c86ed
commit 2b352b736d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336070
3 changed files with 23 additions and 0 deletions

View File

@ -209,6 +209,13 @@ imx_wdog_attach(device_t dev)
sc->sc_pde_enabled = true;
EVENTHANDLER_REGISTER(watchdog_list, imx_watchdog, sc, 0);
/*
* The watchdog hardware cannot be disabled, so there's little point in
* coding up a detach() routine to carefully tear everything down, just
* make the device busy so that detach can't happen.
*/
device_busy(sc->sc_dev);
return (0);
}
@ -227,3 +234,4 @@ static driver_t imx_wdog_driver = {
static devclass_t imx_wdog_devclass;
DRIVER_MODULE(imx_wdog, simplebus, imx_wdog_driver, imx_wdog_devclass, 0, 0);
SIMPLEBUS_PNP_INFO(compat_data);

View File

@ -5,5 +5,6 @@ SUBDIR = \
../ffec \
imx_i2c \
imx_spi \
imx_wdog \
.include <bsd.subdir.mk>

View File

@ -0,0 +1,14 @@
# $FreeBSD$
.PATH: ${SRCTOP}/sys/arm/freescale/imx
KMOD= imx_wdog
SRCS= imx_wdog.c
# Generated files...
SRCS+= \
bus_if.h \
device_if.h \
ofw_bus_if.h \
.include <bsd.kmod.mk>