Home
last modified time | relevance | path

Searched refs:SPI_CPOL (Results 1 – 25 of 55) sorted by relevance

123

/linux/include/uapi/linux/spi/
H A Dspi.h8 #define SPI_CPOL _BITUL(1) /* clock polarity */ macro
12 #define SPI_MODE_2 (SPI_CPOL|0)
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-omap-uwire.c191 if (spi->mode & SPI_CPOL) in uwire_chipselect()
327 if (spi->mode & SPI_CPOL) in uwire_setup_transfer()
487 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
H A Dspi-mpc52xx-psc.c75 if (spi->mode & SPI_CPOL) 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-mpc512x-psc.c102 if (spi->mode & SPI_CPOL) 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-hisi-kunpeng.c315 cr |= FIELD_PREP(CR_CPOL_MASK, (spi->mode & SPI_CPOL) ? 1 : 0); in hisi_spi_prepare_cr()
491 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
H A Dspi-mpc52xx.c172 if (spi->mode & SPI_CPOL) in mpc52xx_spi_fsmstate_idle()
431 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
H A Dspi-altera-dfl.c115 host->mode_bits |= SPI_CPOL; in config_spi_host()
H A Dspi-cavium.c46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
H A Dspi-geni-qcom.c364 if (mode_changed & SPI_CPOL) in setup_fifo_params()
365 writel((spi_slv->mode & SPI_CPOL) ? CPOL : 0, se->base + SE_SPI_CPOL); in setup_fifo_params()
430 peripheral.clock_pol_high = !!(spi_slv->mode & SPI_CPOL); in setup_gsi_xfer()
1071 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
H A Dspi-jcore.c157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
H A Dspi-dw-core.c281 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0()
298 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0()
956 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in dw_spi_add_controller()
H A Dspi-butterfly.c117 setsck(spi, spi->mode & SPI_CPOL); in butterfly_chipselect()
H A Dspi-mxs.c95 ((dev->mode & SPI_CPOL) ? BM_SSP_CTRL1_POLARITY : 0) | in mxs_spi_setup_transfer()
574 host->mode_bits = SPI_CPOL | SPI_CPHA; in mxs_spi_probe()
H A Dspi-cadence.c235 if (spi->mode & SPI_CPOL) in cdns_spi_config_clock_mode()
729 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_spi_probe()
H A Dspi-at91-usart.c351 if (spi->mode & SPI_CPOL) in at91_usart_spi_setup()
508 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in at91_usart_spi_probe()
H A Dspi-meson-spicc.c669 if (spi->mode & SPI_CPOL) in meson_spicc_prepare_message()
675 if (spi->mode & SPI_CPOL) { in meson_spicc_prepare_message()
1057 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LOOP; in meson_spicc_probe()
H A Dspi-microchip-core-qspi.c373 if ((spi->mode & SPI_CPOL) && (spi->mode & SPI_CPHA)) in mchp_coreqspi_setup_clock()
725 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD | in mchp_coreqspi_probe()
H A Dspi-sun6i.c341 if (spi->mode & SPI_CPOL) in sun6i_spi_transfer_one()
673 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST | in sun6i_spi_probe()
H A Dspi-axiado.c138 if (spi->mode & SPI_CPOL) in ax_spi_config_clock_mode()
836 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in ax_spi_probe()
H A Dspi-imx.c648 if (spi->mode & SPI_CPOL) { in mx51_ecspi_prepare_message()
912 if (spi->mode & SPI_CPOL) in mx31_prepare_transfer()
1012 if (spi->mode & SPI_CPOL) in mx21_prepare_transfer()
1086 if (spi->mode & SPI_CPOL) in mx1_prepare_transfer()
2278 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_NO_CS | in spi_imx_probe()
H A Dspi-tegra20-slink.c747 spi->mode & SPI_CPOL ? "" : "~", in tegra_slink_setup()
789 if (spi->mode & SPI_CPOL) in tegra_slink_prepare_message()
1017 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in tegra_slink_probe()
H A Dspi-fsl-espi.c502 if (spi->mode & SPI_CPOL) in fsl_espi_setup()
676 host->mode_bits = SPI_RX_DUAL | SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in fsl_espi_probe()
/linux/drivers/iio/adc/
H A Dmcp320x.c170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()
423 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()
/linux/drivers/rtc/
H A Drtc-rx6110.c348 (spi->mode != (SPI_CS_HIGH | SPI_CPOL | SPI_CPHA))) { in rx6110_spi_probe()

123