Home
last modified time | relevance | path

Searched refs:slave_plat (Results 1 – 23 of 23) sorted by relevance

/u-boot/drivers/spi/
A Dspi-sifive.c108 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 Dfsl_dspi.c452 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 Dti_qspi.c327 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 Datmel_spi.c126 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 Daltera_spi.c92 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 Dxilinx_spi.c214 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 Dcf_spi.c118 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 Ddavinci_spi.c337 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 Dmxc_spi.c150 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 Domap3_spi.c386 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 Dzynq_spi.c238 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 Dpic32_spi.c240 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 Dspi-sunxi.c343 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 Dstm32_spi.c368 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 Drk_spi.c434 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 Dzynq_qspi.c564 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 Dfsl_espi.c512 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 Datcspi200_spi.c313 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 Dspi-qup.c704 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 Dstm32_qspi.c407 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 Dnxp_fspi.c898 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 Dspi.c144 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 Dsandbox.c127 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()

Completed in 40 milliseconds