Lines Matching refs:spicr
93 u32 spicr; /* SPI Control Register (SPICR) */ member
150 writel(XILSPI_SPICR_DFLT_ON, ®s->spicr); in xilinx_spi_claim_bus()
162 writel(XILSPI_SPICR_DFLT_OFF, ®s->spicr); in xilinx_spi_release_bus()
228 reg = readl(®s->spicr) & ~SPICR_MASTER_INHIBIT; in xilinx_spi_startup_block()
229 writel(reg, ®s->spicr); in xilinx_spi_startup_block()
283 reg = readl(®s->spicr) & ~SPICR_MASTER_INHIBIT; in xilinx_spi_xfer()
284 writel(reg, ®s->spicr); in xilinx_spi_xfer()
327 uint32_t spicr; in xilinx_spi_set_mode() local
329 spicr = readl(®s->spicr); in xilinx_spi_set_mode()
331 spicr |= SPICR_LSB_FIRST; in xilinx_spi_set_mode()
333 spicr |= SPICR_CPHA; in xilinx_spi_set_mode()
335 spicr |= SPICR_CPOL; in xilinx_spi_set_mode()
337 spicr |= SPICR_LOOP; in xilinx_spi_set_mode()
339 writel(spicr, ®s->spicr); in xilinx_spi_set_mode()