Home
last modified time | relevance | path

Searched refs:cspins (Results 1 – 1 of 1) sorted by relevance

/f-stack/freebsd/arm/freescale/imx/
H A Dimx_spi.c130 gpio_pin_t cspins[CS_MAX]; member
226 gpio_pin_set_active(sc->cspins[cs & ~SPIBUS_CS_HIGH], pinactive); in spi_set_chipsel()
227 gpio_pin_is_active(sc->cspins[cs & ~SPIBUS_CS_HIGH], &pinactive); in spi_set_chipsel()
420 if (cs > CS_MAX || sc->cspins[cs] == NULL) { in spi_transfer()
481 for (idx = 0; idx < nitems(sc->cspins); ++idx) { in spi_detach()
482 if (sc->cspins[idx] != NULL) in spi_detach()
483 gpio_pin_release(sc->cspins[idx]); in spi_detach()
545 for (idx = 0; idx < nitems(sc->cspins); ++idx) { in spi_attach()
547 idx, &sc->cspins[idx]); in spi_attach()
549 gpio_pin_setflags(sc->cspins[idx], GPIO_PIN_OUTPUT); in spi_attach()