Lines Matching +full:adc +full:- +full:use +full:- +full:res
1 /*-
5 * Redistribution and use in source and binary forms, with or without
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * Vybrid Family 12-bit Analog to Digital Converter (ADC)
73 #define CFG_ADLPC (1 << 7) /* Low-Power Configuration */
79 #define CFG_MODE_12 0x2 /* 12-bit mode */
110 struct resource *res[2]; member
121 { -1, 0 }
131 if (!ofw_bus_is_compatible(dev, "fsl,mvf600-adc")) in adc_probe()
135 "12-bit Analog to Digital Converter"); in adc_probe()
185 if (bus_alloc_resources(dev, adc_spec, sc->res)) { in adc_attach()
191 sc->bst = rman_get_bustag(sc->res[0]); in adc_attach()
192 sc->bsh = rman_get_bushandle(sc->res[0]); in adc_attach()
197 err = bus_setup_intr(dev, sc->res[1], INTR_TYPE_BIO | INTR_MPSAFE, in adc_attach()
198 NULL, adc_intr, sc, &sc->ih); in adc_attach()
204 /* Configure 12-bit mode */ in adc_attach()
230 "adc",
235 DRIVER_MODULE(adc, simplebus, adc_driver, 0, 0);