Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/qoriq/ls1046_gpio.c
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | qoriq_gpio_probe(device_t dev) | ||||
if (!ofw_bus_status_okay(dev)) | if (!ofw_bus_status_okay(dev)) | ||||
return (ENXIO); | return (ENXIO); | ||||
if (!ofw_bus_is_compatible(dev, "fsl,qoriq-gpio")) | if (!ofw_bus_is_compatible(dev, "fsl,qoriq-gpio")) | ||||
return (ENXIO); | return (ENXIO); | ||||
device_set_desc(dev, "Integrated GPIO Controller"); | device_set_desc(dev, "Integrated GPIO Controller"); | ||||
return (0); | return (BUS_PROBE_DEFAULT); | ||||
} | } | ||||
static int | static int | ||||
qoriq_gpio_attach(device_t dev) | qoriq_gpio_attach(device_t dev) | ||||
{ | { | ||||
struct gpio_softc *sc = device_get_softc(dev); | struct gpio_softc *sc = device_get_softc(dev); | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |