Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/spi/
H A Dcf_spi.c202 u32 bus_setup = 0; in cfspi_setup_slave() local
216 bus_setup |= DSPI_CTAR_DBR; in cfspi_setup_slave()
221 bus_setup |= DSPI_CTAR_CPOL; in cfspi_setup_slave()
223 bus_setup |= DSPI_CTAR_CPHA; in cfspi_setup_slave()
225 bus_setup |= DSPI_CTAR_LSBFE; in cfspi_setup_slave()
231 bus_setup |= in cfspi_setup_slave()
234 bus_setup |= ((mode & 0xF0000000) >> 1); in cfspi_setup_slave()
241 bus_setup |= DSPI_CTAR_DBR; in cfspi_setup_slave()
245 bus_setup |= (mode & 0x000FFF00) >> 4; /* CSSCK, ASC, DT */ in cfspi_setup_slave()
247 bus_setup |= (dspi->ctar[cfslave->slave.bus] & 0x78FCFFF0); in cfspi_setup_slave()
[all …]
H A Dfsl_dspi.c181 uint bus_setup; in fsl_dspi_cfg_ctar_mode() local
183 bus_setup = dspi_read32(priv->flags, &priv->regs->ctar[0]); in fsl_dspi_cfg_ctar_mode()
185 bus_setup &= ~DSPI_CTAR_SET_MODE_MASK; in fsl_dspi_cfg_ctar_mode()
186 bus_setup |= priv->ctar_val[cs]; in fsl_dspi_cfg_ctar_mode()
190 bus_setup |= DSPI_CTAR_CPOL; in fsl_dspi_cfg_ctar_mode()
192 bus_setup |= DSPI_CTAR_CPHA; in fsl_dspi_cfg_ctar_mode()
194 bus_setup |= DSPI_CTAR_LSBFE; in fsl_dspi_cfg_ctar_mode()
196 dspi_write32(priv->flags, &priv->regs->ctar[0], bus_setup); in fsl_dspi_cfg_ctar_mode()
367 uint bus_setup; in fsl_dspi_cfg_speed() local
375 bus_setup = dspi_read32(priv->flags, &priv->regs->ctar[0]); in fsl_dspi_cfg_speed()
[all …]
/openbmc/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_core.c373 inv_icm42600_bus_setup bus_setup) in inv_icm42600_setup() argument
407 ret = bus_setup(st); in inv_icm42600_setup()
575 inv_icm42600_bus_setup bus_setup) in inv_icm42600_core_probe() argument
643 ret = inv_icm42600_setup(st, bus_setup); in inv_icm42600_core_probe()
H A Dinv_icm42600.h388 inv_icm42600_bus_setup bus_setup);