Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/ti/am335x/am335x_dmtpps.c
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | |||||
static int dmtpps_tmr_num; /* Set by probe() */ | static int dmtpps_tmr_num; /* Set by probe() */ | ||||
/* List of compatible strings for FDT tree */ | /* List of compatible strings for FDT tree */ | ||||
static struct ofw_compat_data compat_data[] = { | static struct ofw_compat_data compat_data[] = { | ||||
{"ti,am335x-timer", 1}, | {"ti,am335x-timer", 1}, | ||||
{"ti,am335x-timer-1ms", 1}, | {"ti,am335x-timer-1ms", 1}, | ||||
{NULL, 0}, | {NULL, 0}, | ||||
}; | }; | ||||
SIMPLEBUS_PNP_INFO(compat_data); | |||||
/* | /* | ||||
* A table relating pad names to the hardware timer number they can be mux'd to. | * A table relating pad names to the hardware timer number they can be mux'd to. | ||||
*/ | */ | ||||
struct padinfo { | struct padinfo { | ||||
char * ballname; | char * ballname; | ||||
int tmr_num; | int tmr_num; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 505 Lines • ▼ Show 20 Lines | static driver_t dmtpps_driver = { | ||||
"am335x_dmtpps", | "am335x_dmtpps", | ||||
dmtpps_methods, | dmtpps_methods, | ||||
sizeof(struct dmtpps_softc), | sizeof(struct dmtpps_softc), | ||||
}; | }; | ||||
static devclass_t dmtpps_devclass; | static devclass_t dmtpps_devclass; | ||||
DRIVER_MODULE(am335x_dmtpps, simplebus, dmtpps_driver, dmtpps_devclass, 0, 0); | DRIVER_MODULE(am335x_dmtpps, simplebus, dmtpps_driver, dmtpps_devclass, 0, 0); | ||||
SIMPLEBUS_PNP_INFO(compat_data); | |||||
MODULE_DEPEND(am335x_dmtpps, ti_sysc, 1, 1, 1); | MODULE_DEPEND(am335x_dmtpps, ti_sysc, 1, 1, 1); |