/external/u-boot/drivers/spi/ |
D | mxc_spi.c | 50 unsigned int max_hz; member 97 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local 102 div = DIV_ROUND_UP(clk_src, max_hz); in spi_cfg_mxc() 106 max_hz, div, clk_src / (4 << div)); in spi_cfg_mxc() 137 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local 150 if (clk_src > max_hz) { in spi_cfg_mxc() 151 pre_div = (clk_src - 1) / max_hz; in spi_cfg_mxc() 158 max_hz); in spi_cfg_mxc() 439 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 447 if (max_hz == 0) { in spi_setup_slave() [all …]
|
D | spi-uclass.c | 53 speed = slave->max_hz; in dm_spi_claim_bus() 54 if (spi->max_hz) { in dm_spi_claim_bus() 56 speed = min(speed, (int)spi->max_hz); in dm_spi_claim_bus() 58 speed = spi->max_hz; in dm_spi_claim_bus() 126 spi->max_hz = dev_read_u32_default(bus, "spi-max-frequency", 0); in spi_post_probe() 164 slave->max_hz = plat->max_hz; in spi_child_pre_probe() 303 plat->max_hz = speed; in spi_get_bus_and_cs() 324 speed = plat->max_hz; in spi_get_bus_and_cs() 377 plat->max_hz = dev_read_u32_default(dev, "spi-max-frequency", 0); in spi_slave_ofdata_to_platdata()
|
D | stm32_qspi.c | 163 u32 max_hz; member 169 u32 max_hz; member 439 plat->max_hz = dev_read_u32_default(bus, "spi-max-frequency", in stm32_qspi_ofdata_to_platdata() 449 plat->max_hz in stm32_qspi_ofdata_to_platdata() 466 dm_spi_bus->max_hz = plat->max_hz; in stm32_qspi_probe() 470 priv->max_hz = plat->max_hz; in stm32_qspi_probe() 573 if (speed > plat->max_hz) in stm32_qspi_set_speed() 574 speed = plat->max_hz; in stm32_qspi_set_speed()
|
D | davinci_spi.c | 396 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 425 ds->freq = max_hz; in spi_setup_slave() 468 static int davinci_spi_set_speed(struct udevice *bus, uint max_hz) in davinci_spi_set_speed() argument 472 debug("%s speed %u\n", __func__, max_hz); in davinci_spi_set_speed() 473 if (max_hz > CONFIG_SYS_SPI_CLK / 2) in davinci_spi_set_speed() 476 ds->freq = max_hz; in davinci_spi_set_speed()
|
D | ti_qspi.c | 105 uint max_hz; 370 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 396 ti_spi_set_speed(priv, max_hz); in spi_setup_slave() 476 static int ti_qspi_set_speed(struct udevice *bus, uint max_hz) in ti_qspi_set_speed() argument 480 ti_spi_set_speed(priv, max_hz); in ti_qspi_set_speed() 604 priv->max_hz = fdtdec_get_int(blob, node, "spi-max-frequency", -1); in ti_qspi_ofdata_to_platdata() 605 if (priv->max_hz < 0) { in ti_qspi_ofdata_to_platdata() 612 (int)priv->base, priv->max_hz); in ti_qspi_ofdata_to_platdata()
|
D | fsl_espi.c | 66 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 89 if ((spibrg / max_hz) > 32) { in spi_setup_slave() 91 pm = spibrg / (max_hz * 16 * 2); in spi_setup_slave() 95 "is used.\n", max_hz, spibrg / (32 * 16)); in spi_setup_slave() 98 pm = spibrg / (max_hz * 2); in spi_setup_slave()
|
D | cadence_qspi.c | 124 if (hz > plat->max_hz) in cadence_spi_set_speed() 125 hz = plat->max_hz; in cadence_spi_set_speed() 303 plat->max_hz = fdtdec_get_uint(blob, subnode, "spi-max-frequency", in cadence_spi_ofdata_to_platdata() 315 __func__, plat->regbase, plat->ahbbase, plat->max_hz, in cadence_spi_ofdata_to_platdata()
|
D | omap3_spi.c | 498 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 544 if (max_hz > OMAP3_MCSPI_MAX_FREQ) { in spi_setup_slave() 546 max_hz); in spi_setup_slave() 563 priv->freq = max_hz; in spi_setup_slave() 591 priv->freq = slave_plat->max_hz; in omap3_spi_claim_bus()
|
D | atmel_spi.c | 43 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 77 scbr = (get_spi_clk_rate(bus) + max_hz - 1) / max_hz; in spi_setup_slave()
|
D | atcspi200_spi.c | 287 static int atcspi200_spi_set_speed(struct udevice *bus, uint max_hz) in atcspi200_spi_set_speed() argument 291 debug("%s speed %u\n", __func__, max_hz); in atcspi200_spi_set_speed() 293 ns->freq = max_hz; in atcspi200_spi_set_speed()
|
D | fsl_dspi.c | 407 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 472 fsl_dspi_cfg_speed(&dspi->priv, max_hz); in spi_setup_slave() 536 slave_plat->cs, slave_plat->max_hz, slave_plat->mode); in fsl_dspi_child_pre_probe() 566 dm_spi_bus->max_hz = plat->speed_hz; in fsl_dspi_probe()
|
D | cf_spi.c | 296 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 307 cfslave->baudrate = max_hz; in spi_setup_slave()
|
D | mxs_spi.c | 56 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 72 mxs_slave->max_khz = max_hz / 1000; in spi_setup_slave()
|
D | kirkwood_spi.c | 106 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 127 data = ((CONFIG_SYS_TCLK / 2) / max_hz) + 0x10; in spi_setup_slave()
|
D | cadence_qspi.h | 17 unsigned int max_hz; member
|
D | lpc32xx_ssp.c | 61 struct spi_slave *spi_setup_slave(uint bus, uint cs, uint max_hz, uint mode) in spi_setup_slave() argument
|
D | mpc8xxx_spi.c | 24 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
|
D | soft_spi_legacy.c | 47 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
|
D | sh_spi.c | 87 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
|
/external/u-boot/drivers/mtd/spi/ |
D | sf-uclass.c | 36 unsigned int max_hz, unsigned int spi_mode) in spi_flash_probe() argument 40 if (spi_flash_probe_bus_cs(bus, cs, max_hz, spi_mode, &dev)) in spi_flash_probe() 52 unsigned int max_hz, unsigned int spi_mode, in spi_flash_probe_bus_cs() argument 68 ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode, in spi_flash_probe_bus_cs()
|
D | sf_probe.c | 58 unsigned int max_hz, unsigned int spi_mode) in spi_flash_probe() argument 63 bus = spi_setup_slave(busnum, cs, max_hz, spi_mode); in spi_flash_probe()
|
/external/u-boot/include/ |
D | spi.h | 40 uint max_hz; member 59 uint max_hz; member 98 uint max_hz; member 183 unsigned int max_hz, unsigned int mode);
|
D | spi_flash.h | 157 unsigned int max_hz, unsigned int spi_mode, 162 unsigned int max_hz, unsigned int spi_mode); 194 unsigned int max_hz, unsigned int spi_mode);
|
D | video.h | 257 unsigned int max_hz, unsigned int spi_mode); 261 unsigned int max_hz, unsigned int spi_mode);
|
/external/u-boot/drivers/video/ |
D | lg4573.c | 191 unsigned int max_hz, unsigned int spi_mode) in lg4573_spi_startup() argument 196 spi = spi_setup_slave(bus, cs, max_hz, spi_mode); in lg4573_spi_startup()
|