Lines Matching +full:reference +full:- +full:select
1 /*-
28 * Vybrid Family 12-bit Analog to Digital Converter (ADC)
29 * Chapter 37, Vybrid Reference Manual, Rev. 5, 07/2013
56 #define HC_ADCH_M 0x1f /* Input Channel Select Mask */
57 #define HC_ADCH_S 0 /* Input Channel Select Shift */
65 #define CFG_AVGS_M 0x3 /* Hardware Average select Mask */
66 #define CFG_AVGS_S 14 /* Hardware Average select Shift */
67 #define CFG_ADTRG (1 << 13) /* Conversion Trigger Select */
68 #define CFG_REFSEL_M 0x3 /* Voltage Reference Select Mask */
69 #define CFG_REFSEL_S 11 /* Voltage Reference Select Shift */
73 #define CFG_ADLPC (1 << 7) /* Low-Power Configuration */
74 #define CFG_ADIV_M 0x3 /* Clock Divide Select */
75 #define CFG_ADIV_S 5 /* Clock Divide Select */
79 #define CFG_MODE_12 0x2 /* 12-bit mode */
80 #define CFG_ADICLK_M 0x3 /* Input Clock Select Mask */
81 #define CFG_ADICLK_S 0 /* Input Clock Select Shift */
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()