Home
last modified time | relevance | path

Searched refs:SPI_CPHA (Results 1 – 25 of 43) sorted by relevance

12

/linux/include/uapi/linux/spi/
H A Dspi.h7 #define SPI_CPHA _BITUL(0) /* clock phase */ macro
11 #define SPI_MODE_1 (0|SPI_CPHA)
13 #define SPI_MODE_3 (SPI_CPOL|SPI_CPHA)
14 #define SPI_MODE_X_MASK (SPI_CPOL|SPI_CPHA)
/linux/drivers/spi/
H A Dspi-mpc52xx-psc.c71 if (spi->mode & SPI_CPHA) in mpc52xx_psc_spi_activate_cs()
310 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_of_probe()
H A Dspi-bitbang.c204 cs->txrx_word = bitbang->txrx_word[spi->mode & (SPI_CPOL|SPI_CPHA)]; in spi_bitbang_setup()
370 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | bitbang->flags; in spi_bitbang_init()
H A Dspi-orion.c244 if (spi->mode & SPI_CPHA) in orion_spi_mode_set()
281 spi->mode & SPI_CPHA) in orion_spi_50mhz_ac_timing_erratum()
671 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | SPI_CS_WORD; in orion_spi_probe()
H A Dspi-mpc512x-psc.c97 if (spi->mode & SPI_CPHA) in mpc512x_psc_spi_activate_cs()
475 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_of_probe()
H A Dspi-altera-dfl.c117 host->mode_bits |= SPI_CPHA; in config_spi_host()
H A Dspi-cavium.c45 cpha = mode & SPI_CPHA; in octeon_spi_do_transfer()
H A Dspi-mpc52xx.c170 if (spi->mode & SPI_CPHA) in mpc52xx_spi_fsmstate_idle()
431 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
H A Dspi-jcore.c157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
H A Dspi-geni-qcom.c362 if (mode_changed & SPI_CPHA) in setup_fifo_params()
363 writel((spi_slv->mode & SPI_CPHA) ? CPHA : 0, se->base + SE_SPI_CPHA); in setup_fifo_params()
431 peripheral.data_pol_high = !!(spi_slv->mode & SPI_CPHA); in setup_gsi_xfer()
1071 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
H A Dspi-zynq-qspi.c115 #define ZYNQ_QSPI_MODEBITS (SPI_CPOL | SPI_CPHA)
359 if (spi->mode & SPI_CPHA) in zynq_qspi_config_op()
H A Dspi-dw-core.c283 if (spi->mode & SPI_CPHA) in dw_spi_prepare_cr0()
300 if (spi->mode & SPI_CPHA) in dw_spi_prepare_cr0()
956 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in dw_spi_add_controller()
H A Dspi-cadence.c233 if (spi->mode & SPI_CPHA) in cdns_spi_config_clock_mode()
729 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_spi_probe()
H A Dspi-ch341.c188 ctrl->mode_bits = SPI_CPHA; in ch341_probe()
H A Dspi-axiado.c136 if (spi->mode & SPI_CPHA) in ax_spi_config_clock_mode()
836 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in ax_spi_probe()
H A Dspi-rzv2h-rspi.c659 conf32 |= FIELD_PREP(RSPI_SPCMD_CPHA, !!(spi->mode & SPI_CPHA)); in rzv2h_rspi_prepare_message()
760 controller->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in rzv2h_rspi_probe()
H A Dspi-imx.c706 bool cpha = (spi->mode & SPI_CPHA); in mx51_configure_cpha()
910 if (spi->mode & SPI_CPHA) in mx31_prepare_transfer()
1010 if (spi->mode & SPI_CPHA) in mx21_prepare_transfer()
1084 if (spi->mode & SPI_CPHA) in mx1_prepare_transfer()
2275 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_NO_CS | in spi_imx_probe()
H A Dspi-microchip-core-qspi.c412 if ((spi->mode & SPI_CPOL) && (spi->mode & SPI_CPHA)) in mchp_coreqspi_setup_clock()
772 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD | in mchp_coreqspi_probe()
H A Dspi-omap-uwire.c487 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
H A Dspi-ppc4xx.c376 SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST; in spi_ppc4xx_of_probe()
H A Dspi-virtio.c179 static_assert(VIRTIO_SPI_CPHA == SPI_CPHA, in virtio_spi_transfer_one()
H A Dspi-fsl-lpspi.c314 if (fsl_lpspi->config.mode & SPI_CPHA) in fsl_lpspi_set_cmd()
988 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in fsl_lpspi_probe()
/linux/drivers/rtc/
H A Drtc-ds1302.c122 } else if (spi->mode & SPI_CPHA) { in ds1302_probe()
H A Drtc-rx6110.c348 (spi->mode != (SPI_CS_HIGH | SPI_CPOL | SPI_CPHA))) { in rx6110_spi_probe()
/linux/drivers/mmc/host/
H A Dmmc_spi.c1078 host->spi->mode &= ~(SPI_CPOL|SPI_CPHA); in mmc_spi_set_ios()
1099 host->spi->mode |= (SPI_CPOL|SPI_CPHA); in mmc_spi_set_ios()

12