/u-boot/drivers/spi/ |
A D | spi-sifive.c | 108 struct dm_spi_slave_plat *slave_plat) in sifive_spi_prep_device() argument 111 if (slave_plat->mode & SPI_CS_HIGH) in sifive_spi_prep_device() 112 spi->cs_inactive &= ~BIT(slave_plat->cs); in sifive_spi_prep_device() 114 spi->cs_inactive |= BIT(slave_plat->cs); in sifive_spi_prep_device() 122 struct dm_spi_slave_plat *slave_plat) in sifive_spi_set_cs() argument 126 if (slave_plat->mode & SPI_CS_HIGH) in sifive_spi_set_cs() 140 struct dm_spi_slave_plat *slave_plat, in sifive_spi_prep_transfer() argument 154 if (slave_plat->mode & SPI_LSB_FIRST) in sifive_spi_prep_transfer() 222 sifive_spi_prep_device(spi, slave_plat); in sifive_spi_xfer() 224 ret = sifive_spi_set_cs(spi, slave_plat); in sifive_spi_xfer() [all …]
|
A D | fsl_dspi.c | 452 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in fsl_dspi_child_pre_probe() local 458 if (slave_plat->cs >= priv->num_chipselect) { in fsl_dspi_child_pre_probe() 460 slave_plat->cs, priv->num_chipselect - 1); in fsl_dspi_child_pre_probe() 475 priv->ctar_val[slave_plat->cs] = DSPI_CTAR_DEFAULT_VALUE | in fsl_dspi_child_pre_probe() 480 slave_plat->cs, slave_plat->max_hz, slave_plat->mode); in fsl_dspi_child_pre_probe() 527 struct dm_spi_slave_plat *slave_plat = in fsl_dspi_claim_bus() local 533 cpu_dspi_claim_bus(dev_seq(bus), slave_plat->cs); in fsl_dspi_claim_bus() 536 fsl_dspi_cfg_ctar_mode(priv, slave_plat->cs, priv->mode); in fsl_dspi_claim_bus() 539 fsl_dspi_cfg_cs_active_state(priv, slave_plat->cs, in fsl_dspi_claim_bus() 558 struct dm_spi_slave_plat *slave_plat = in fsl_dspi_release_bus() local [all …]
|
A D | ti_qspi.c | 327 struct dm_spi_slave_plat *slave_plat; in ti_qspi_exec_mem_op() local 335 slave_plat = dev_get_parent_plat(slave->dev); in ti_qspi_exec_mem_op() 347 ti_qspi_setup_mmap_read(priv, slave_plat->cs, op->cmd.opcode, in ti_qspi_exec_mem_op() 359 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in ti_qspi_claim_bus() local 366 if (slave_plat->cs > priv->num_cs) { in ti_qspi_claim_bus() 374 slave_plat->cs, true); in ti_qspi_claim_bus() 380 priv->dc <<= slave_plat->cs * 8; in ti_qspi_claim_bus() 388 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in ti_qspi_release_bus() local 398 slave_plat->cs, false); in ti_qspi_release_bus() 403 writel(0, TI_QSPI_SETUP_REG(priv, slave_plat->cs)); in ti_qspi_release_bus()
|
A D | atmel_spi.c | 126 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in atmel_spi_claim_bus() local 128 u32 cs = slave_plat->cs; in atmel_spi_claim_bus() 176 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in atmel_spi_cs_activate() local 177 u32 cs = slave_plat->cs; in atmel_spi_cs_activate() 191 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in atmel_spi_cs_deactivate() local 192 u32 cs = slave_plat->cs; in atmel_spi_cs_deactivate()
|
A D | altera_spi.c | 92 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in altera_spi_xfer() local 101 dev_seq(bus), slave_plat->cs, bitlen, bytes, flags); in altera_spi_xfer() 116 spi_cs_activate(dev, slave_plat->cs); in altera_spi_xfer()
|
A D | xilinx_spi.c | 214 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in xilinx_spi_startup_block() local 235 spi_cs_activate(dev, slave_plat->cs); in xilinx_spi_startup_block() 247 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in xilinx_spi_xfer() local 258 dev_seq(bus), slave_plat->cs, bitlen, bytes, flags); in xilinx_spi_xfer() 271 spi_cs_activate(dev, slave_plat->cs); in xilinx_spi_xfer()
|
A D | cf_spi.c | 118 struct dm_spi_slave_plat *slave_plat = in coldfire_spi_claim_bus() local 127 dspi_chip_select(slave_plat->cs); in coldfire_spi_claim_bus() 137 struct dm_spi_slave_plat *slave_plat = in coldfire_spi_release_bus() local 143 dspi_chip_unselect(slave_plat->cs); in coldfire_spi_release_bus() 154 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in coldfire_spi_xfer() local 172 ctrl = setup_ctrl(ctrl, slave_plat->cs); in coldfire_spi_xfer()
|
A D | davinci_spi.c | 337 struct dm_spi_slave_plat *slave_plat = in davinci_spi_claim_bus() local 342 if (slave_plat->cs >= ds->num_cs) { in davinci_spi_claim_bus() 346 ds->half_duplex = slave_plat->mode & SPI_PREAMBLE; in davinci_spi_claim_bus() 348 return __davinci_spi_claim_bus(ds, slave_plat->cs); in davinci_spi_claim_bus()
|
A D | mxc_spi.c | 150 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in mxc_spi_cs_activate() local 152 u32 cs = slave_plat->cs; in mxc_spi_cs_activate() 168 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in mxc_spi_cs_deactivate() local 170 u32 cs = slave_plat->cs; in mxc_spi_cs_deactivate() 651 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in mxc_spi_claim_bus() local 655 return mxc_spi_claim_bus_internal(mxcs, slave_plat->cs); in mxc_spi_claim_bus()
|
A D | omap3_spi.c | 386 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in omap3_spi_claim_bus() local 388 priv->cs = slave_plat->cs; in omap3_spi_claim_bus() 390 priv->freq = slave_plat->max_hz; in omap3_spi_claim_bus() 415 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in omap3_spi_set_wordlen() local 417 priv->cs = slave_plat->cs; in omap3_spi_set_wordlen()
|
A D | zynq_spi.c | 238 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in zynq_spi_xfer() local 246 dev_seq(bus), slave_plat->cs, bitlen, len, flags); in zynq_spi_xfer() 253 priv->cs = slave_plat->cs; in zynq_spi_xfer()
|
A D | pic32_spi.c | 240 struct dm_spi_slave_plat *slave_plat; in pic32_spi_xfer() local 248 slave_plat = dev_get_parent_plat(slave); in pic32_spi_xfer() 251 dev_seq(bus), slave_plat->cs, flags); in pic32_spi_xfer()
|
A D | spi-sunxi.c | 343 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in sun4i_spi_xfer() local 359 sun4i_spi_set_cs(bus, slave_plat->cs, true); in sun4i_spi_xfer() 393 sun4i_spi_set_cs(bus, slave_plat->cs, false); in sun4i_spi_xfer() 404 sun4i_spi_set_cs(bus, slave_plat->cs, false); in sun4i_spi_xfer()
|
A D | stm32_spi.c | 368 struct dm_spi_slave_plat *slave_plat; in stm32_spi_xfer() local 413 slave_plat = dev_get_parent_plat(slave); in stm32_spi_xfer() 415 stm32_spi_set_cs(bus, slave_plat->cs, false); in stm32_spi_xfer() 466 stm32_spi_set_cs(bus, slave_plat->cs, true); in stm32_spi_xfer()
|
A D | rk_spi.c | 434 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in rockchip_spi_xfer() local 448 spi_cs_activate(dev, slave_plat->cs); in rockchip_spi_xfer() 501 spi_cs_deactivate(dev, slave_plat->cs); in rockchip_spi_xfer()
|
A D | zynq_qspi.c | 564 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in zynq_qspi_xfer() local 566 priv->cs = slave_plat->cs; in zynq_qspi_xfer() 572 dev_seq(bus), slave_plat->cs, bitlen, priv->len, flags); in zynq_qspi_xfer()
|
A D | fsl_espi.c | 512 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in fsl_espi_child_pre_probe() local 516 debug("%s cs %u\n", __func__, slave_plat->cs); in fsl_espi_child_pre_probe() 517 fsl->cs = slave_plat->cs; in fsl_espi_child_pre_probe()
|
A D | atcspi200_spi.c | 313 struct dm_spi_slave_plat *slave_plat = in atcspi200_spi_claim_bus() local 318 if (slave_plat->cs >= ns->num_cs) { in atcspi200_spi_claim_bus()
|
A D | spi-qup.c | 704 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in qup_spi_xfer() local 722 ret = qup_spi_set_cs(bus, slave_plat->cs, false); in qup_spi_xfer() 740 ret = qup_spi_set_cs(bus, slave_plat->cs, true); in qup_spi_xfer()
|
A D | stm32_qspi.c | 407 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in stm32_qspi_claim_bus() local 408 int slave_cs = slave_plat->cs; in stm32_qspi_claim_bus()
|
A D | nxp_fspi.c | 898 struct dm_spi_slave_plat *slave_plat = dev_get_parent_plat(dev); in nxp_fspi_claim_bus() local 903 nxp_fspi_select_mem(f, slave_plat->cs); in nxp_fspi_claim_bus()
|
/u-boot/test/dm/ |
A D | spi.c | 144 struct dm_spi_slave_plat *slave_plat; in dm_test_spi_claim_bus() local 167 slave_plat = dev_get_parent_plat(slave_a->dev); in dm_test_spi_claim_bus() 168 slave_a->mode = slave_plat->mode; in dm_test_spi_claim_bus()
|
/u-boot/drivers/mtd/spi/ |
A D | sandbox.c | 127 struct dm_spi_slave_plat *slave_plat; in sandbox_sf_probe() local 141 slave_plat = dev_get_parent_plat(dev); in sandbox_sf_probe() 142 cs = slave_plat->cs; in sandbox_sf_probe()
|