Home
last modified time | relevance | path

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

/external/u-boot/drivers/spi/
Dfsl_dspi.c524 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in fsl_dspi_child_pre_probe() local
527 if (slave_plat->cs >= priv->num_chipselect) { in fsl_dspi_child_pre_probe()
529 slave_plat->cs, priv->num_chipselect - 1); in fsl_dspi_child_pre_probe()
533 priv->ctar_val[slave_plat->cs] = DSPI_CTAR_DEFAULT_VALUE; in fsl_dspi_child_pre_probe()
536 slave_plat->cs, slave_plat->max_hz, slave_plat->mode); in fsl_dspi_child_pre_probe()
583 struct dm_spi_slave_platdata *slave_plat = in fsl_dspi_claim_bus() local
589 cpu_dspi_claim_bus(bus->seq, slave_plat->cs); in fsl_dspi_claim_bus()
592 fsl_dspi_cfg_ctar_mode(priv, slave_plat->cs, priv->mode); in fsl_dspi_claim_bus()
595 fsl_dspi_cfg_cs_active_state(priv, slave_plat->cs, in fsl_dspi_claim_bus()
614 struct dm_spi_slave_platdata *slave_plat = in fsl_dspi_release_bus() local
[all …]
Datmel_spi.c246 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in atmel_spi_claim_bus() local
248 u32 cs = slave_plat->cs; in atmel_spi_claim_bus()
296 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in atmel_spi_cs_activate() local
297 u32 cs = slave_plat->cs; in atmel_spi_cs_activate()
311 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in atmel_spi_cs_deactivate() local
312 u32 cs = slave_plat->cs; in atmel_spi_cs_deactivate()
Daltera_spi.c90 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in altera_spi_xfer() local
99 bus->seq, slave_plat->cs, bitlen, bytes, flags); in altera_spi_xfer()
114 spi_cs_activate(dev, slave_plat->cs); in altera_spi_xfer()
Dxilinx_spi.c171 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in xilinx_spi_xfer() local
180 bus->seq, slave_plat->cs, bitlen, bytes, flags); in xilinx_spi_xfer()
204 spi_cs_activate(dev, slave_plat->cs); in xilinx_spi_xfer()
Ddavinci_spi.c493 struct dm_spi_slave_platdata *slave_plat = in davinci_spi_claim_bus() local
498 if (slave_plat->cs >= ds->num_cs) { in davinci_spi_claim_bus()
502 ds->half_duplex = slave_plat->mode & SPI_PREAMBLE; in davinci_spi_claim_bus()
504 return __davinci_spi_claim_bus(ds, slave_plat->cs); in davinci_spi_claim_bus()
Domap3_spi.c588 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in omap3_spi_claim_bus() local
590 priv->cs = slave_plat->cs; in omap3_spi_claim_bus()
591 priv->freq = slave_plat->max_hz; in omap3_spi_claim_bus()
612 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in omap3_spi_set_wordlen() local
614 priv->cs = slave_plat->cs; in omap3_spi_set_wordlen()
Dzynq_spi.c214 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in zynq_spi_xfer() local
222 bus->seq, slave_plat->cs, bitlen, len, flags); in zynq_spi_xfer()
229 priv->cs = slave_plat->cs; in zynq_spi_xfer()
Dpic32_spi.c237 struct dm_spi_slave_platdata *slave_plat; in pic32_spi_xfer() local
245 slave_plat = dev_get_parent_platdata(slave); in pic32_spi_xfer()
248 bus->seq, slave_plat->cs, flags); in pic32_spi_xfer()
Dstm32_qspi.c518 struct dm_spi_slave_platdata *slave_plat; in stm32_qspi_claim_bus() local
523 slave_plat = dev_get_parent_platdata(dev); in stm32_qspi_claim_bus()
525 if (slave_plat->cs >= STM32_MAX_NORCHIP) in stm32_qspi_claim_bus()
528 _stm32_qspi_set_cs(priv, slave_plat->cs); in stm32_qspi_claim_bus()
Drk_spi.c360 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in rockchip_spi_xfer() local
374 spi_cs_activate(dev, slave_plat->cs); in rockchip_spi_xfer()
408 spi_cs_deactivate(dev, slave_plat->cs); in rockchip_spi_xfer()
Dzynq_qspi.c519 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in zynq_qspi_xfer() local
521 priv->cs = slave_plat->cs; in zynq_qspi_xfer()
527 bus->seq, slave_plat->cs, bitlen, priv->len, flags); in zynq_qspi_xfer()
Dti_qspi.c493 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in ti_qspi_claim_bus() local
501 if (slave_plat->cs > priv->num_cs) { in ti_qspi_claim_bus()
508 return __ti_qspi_claim_bus(priv, slave_plat->cs); in ti_qspi_claim_bus()
Datcspi200_spi.c311 struct dm_spi_slave_platdata *slave_plat = in atcspi200_spi_claim_bus() local
316 if (slave_plat->cs >= ns->num_cs) { in atcspi200_spi_claim_bus()
Dmxc_spi.c535 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in mxc_spi_claim_bus() local
537 return mxc_spi_claim_bus_internal(mxcs, slave_plat->cs); in mxc_spi_claim_bus()
Dfsl_qspi.c1195 struct dm_spi_slave_platdata *slave_plat = dev_get_parent_platdata(dev); in fsl_qspi_claim_bus() local
1209 priv->cur_amba_base = priv->amba_base[slave_plat->cs]; in fsl_qspi_claim_bus()