/external/u-boot/drivers/spi/ |
D | mxc_spi.c | 52 unsigned int max_hz; member 117 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local 122 div = DIV_ROUND_UP(clk_src, max_hz); in spi_cfg_mxc() 126 max_hz, div, clk_src / (4 << div)); in spi_cfg_mxc() 157 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local 170 if (clk_src > max_hz) { in spi_cfg_mxc() 171 pre_div = (clk_src - 1) / max_hz; in spi_cfg_mxc() 178 max_hz); in spi_cfg_mxc() 455 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 463 if (max_hz == 0) { in spi_setup_slave() [all …]
|
D | spi-uclass.c | 55 speed = slave->max_hz; in dm_spi_claim_bus() 56 if (spi->max_hz) { in dm_spi_claim_bus() 58 speed = min(speed, (int)spi->max_hz); in dm_spi_claim_bus() 60 speed = spi->max_hz; in dm_spi_claim_bus() 166 spi->max_hz = dev_read_u32_default(bus, "spi-max-frequency", 0); in spi_post_probe() 204 slave->max_hz = plat->max_hz; in spi_child_pre_probe() 343 plat->max_hz = speed; in spi_get_bus_and_cs() 347 plat->max_hz = SPI_DEFAULT_SPEED_HZ; in spi_get_bus_and_cs() 370 if (plat->max_hz) { in spi_get_bus_and_cs() 371 speed = plat->max_hz; in spi_get_bus_and_cs() [all …]
|
D | davinci_spi.c | 392 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 421 ds->freq = max_hz; in spi_setup_slave() 464 static int davinci_spi_set_speed(struct udevice *bus, uint max_hz) in davinci_spi_set_speed() argument 468 debug("%s speed %u\n", __func__, max_hz); in davinci_spi_set_speed() 469 if (max_hz > CONFIG_SYS_SPI_CLK / 2) in davinci_spi_set_speed() 472 ds->freq = max_hz; in davinci_spi_set_speed()
|
D | spi-sunxi.c | 125 u32 max_hz; member 412 if (speed > plat->max_hz) in sun4i_spi_set_speed() 413 speed = plat->max_hz; in sun4i_spi_set_speed() 509 priv->freq = plat->max_hz; in sun4i_spi_probe() 521 plat->max_hz = fdtdec_get_int(gd->fdt_blob, node, in sun4i_spi_ofdata_to_platdata() 525 if (plat->max_hz > SUN4I_SPI_MAX_RATE) in sun4i_spi_ofdata_to_platdata() 526 plat->max_hz = SUN4I_SPI_MAX_RATE; in sun4i_spi_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() 318 plat->max_hz = ofnode_read_u32_default(subnode, "spi-max-frequency", in cadence_spi_ofdata_to_platdata() 346 __func__, plat->regbase, plat->ahbbase, plat->max_hz, in cadence_spi_ofdata_to_platdata()
|
D | omap3_spi.c | 493 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 539 if (max_hz > OMAP3_MCSPI_MAX_FREQ) { in spi_setup_slave() 541 max_hz); in spi_setup_slave() 558 priv->freq = max_hz; in spi_setup_slave() 586 priv->freq = slave_plat->max_hz; in omap3_spi_claim_bus()
|
D | ti_qspi.c | 94 uint max_hz; member 461 priv->max_hz = fdtdec_get_int(blob, node, "spi-max-frequency", -1); in ti_qspi_ofdata_to_platdata() 462 if (priv->max_hz < 0) { in ti_qspi_ofdata_to_platdata() 469 (int)priv->base, priv->max_hz); in ti_qspi_ofdata_to_platdata()
|
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 | atmel_spi.c | 38 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 72 scbr = (get_spi_clk_rate(bus) + max_hz - 1) / max_hz; in spi_setup_slave()
|
D | fsl_dspi.c | 424 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 489 fsl_dspi_cfg_speed(&dspi->priv, max_hz); in spi_setup_slave() 553 slave_plat->cs, slave_plat->max_hz, slave_plat->mode); in fsl_dspi_child_pre_probe() 583 dm_spi_bus->max_hz = plat->speed_hz; in fsl_dspi_probe()
|
D | cadence_qspi.h | 20 unsigned int max_hz; member
|
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 | soft_spi_legacy.c | 40 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
|
D | lpc32xx_ssp.c | 52 struct spi_slave *spi_setup_slave(uint bus, uint cs, uint max_hz, uint mode) in spi_setup_slave() argument
|
D | cf_spi.c | 224 static int coldfire_spi_set_speed(struct udevice *bus, uint max_hz) in coldfire_spi_set_speed() argument 239 cfspi->baudrate = max_hz; in coldfire_spi_set_speed()
|
D | mxs_spi.c | 371 unsigned int max_hz, unsigned int mode) argument 387 mxs_slave->max_khz = max_hz / 1000;
|
/external/u-boot/drivers/mtd/spi/ |
D | sf-uclass.c | 45 unsigned int max_hz, unsigned int spi_mode) in spi_flash_probe() argument 49 if (spi_flash_probe_bus_cs(bus, cs, max_hz, spi_mode, &dev)) in spi_flash_probe() 61 unsigned int max_hz, unsigned int spi_mode, in spi_flash_probe_bus_cs() argument 77 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/arm-trusted-firmware/drivers/mtd/spi-mem/ |
D | spi_mem.c | 25 unsigned int max_hz; member 92 ret = ops->set_speed(spi_slave.max_hz); in spi_mem_set_speed_mode() 219 spi_slave.max_hz = SPI_MEM_DEFAULT_SPEED_HZ; in spi_mem_init_slave() 223 spi_slave.max_hz = fdt32_to_cpu(*cuint); in spi_mem_init_slave()
|
/external/u-boot/include/ |
D | spi.h | 42 uint max_hz; member 61 uint max_hz; member 100 uint max_hz; member 178 unsigned int max_hz, unsigned int mode);
|
D | spi_flash.h | 106 unsigned int max_hz, unsigned int spi_mode, 111 unsigned int max_hz, unsigned int spi_mode); 143 unsigned int max_hz, unsigned int spi_mode);
|
D | video.h | 259 unsigned int max_hz, unsigned int spi_mode); 263 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()
|
/external/u-boot/drivers/mmc/ |
D | mmc_spi.c | 381 if (!priv->spi->max_hz) in mmc_spi_probe() 382 priv->spi->max_hz = MMC_SPI_MAX_CLOCK; in mmc_spi_probe() 396 plat->cfg.f_max = priv->spi->max_hz; in mmc_spi_probe()
|