/u-boot/test/dm/ |
A D | spi.c | 120 ut_asserteq(slave_a->max_hz, bus_data->speed); in dm_test_spi_switch_slaves() 121 ut_asserteq(slave_a->max_hz, sandbox_spi_get_speed(bus)); in dm_test_spi_switch_slaves() 126 ut_asserteq(slave_b->max_hz, bus_data->speed); in dm_test_spi_switch_slaves() 127 ut_asserteq(slave_b->max_hz, sandbox_spi_get_speed(bus)); in dm_test_spi_switch_slaves() 132 ut_asserteq(slave_a->max_hz, bus_data->speed); in dm_test_spi_switch_slaves() 133 ut_asserteq(slave_a->max_hz, sandbox_spi_get_speed(bus)); in dm_test_spi_switch_slaves() 155 ut_assert(slave_a->max_hz != slave_b->max_hz); in dm_test_spi_claim_bus() 169 slave_a->max_hz = slave_b->max_hz; in dm_test_spi_claim_bus()
|
/u-boot/drivers/mtd/spi/ |
A D | sf-uclass.c | 39 unsigned int max_hz, unsigned int spi_mode) in spi_flash_probe() argument 43 if (spi_flash_probe_bus_cs(bus, cs, max_hz, spi_mode, &dev)) in spi_flash_probe() 55 unsigned int max_hz, unsigned int spi_mode, in spi_flash_probe_bus_cs() argument 71 ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode, in spi_flash_probe_bus_cs()
|
A 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()
|
/u-boot/drivers/spi/ |
A D | mxc_spi.c | 134 unsigned int max_hz; member 199 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local 204 div = DIV_ROUND_UP(clk_src, max_hz); in spi_cfg_mxc() 239 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local 252 if (clk_src > max_hz) { in spi_cfg_mxc() 253 pre_div = (clk_src - 1) / max_hz; in spi_cfg_mxc() 260 max_hz); in spi_cfg_mxc() 545 if (max_hz == 0) { in spi_setup_slave() 565 mxcs->max_hz = max_hz; in spi_setup_slave() 630 mxcs->max_hz = clk_get_rate(&clk); in mxc_spi_probe() [all …]
|
A D | spi-uclass.c | 60 speed = slave->max_hz; in dm_spi_claim_bus() 63 if (spi->max_hz) { in dm_spi_claim_bus() 65 speed = min(speed, spi->max_hz); in dm_spi_claim_bus() 67 speed = spi->max_hz; in dm_spi_claim_bus() 181 spi->max_hz = dev_read_u32_default(bus, "spi-max-frequency", 0); in spi_post_probe() 223 slave->max_hz = plat->max_hz; in spi_child_pre_probe() 371 plat->max_hz = speed; in spi_get_bus_and_cs() 376 plat->max_hz = SPI_DEFAULT_SPEED_HZ; in spi_get_bus_and_cs() 452 plat->max_hz = dev_read_u32_default(dev, "spi-max-frequency", in spi_slave_of_to_plat()
|
A D | fsl_espi.c | 339 unsigned int max_hz; in espi_setup_slave() local 345 max_hz = fsl->speed_hz; in espi_setup_slave() 350 if ((spibrg / max_hz) > 32) { in espi_setup_slave() 352 pm = spibrg / (max_hz * 16 * 2); in espi_setup_slave() 356 max_hz, spibrg / (32 * 16)); in espi_setup_slave() 359 pm = spibrg / (max_hz * 2); in espi_setup_slave() 382 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 396 fsl->speed_hz = max_hz; in spi_setup_slave()
|
A D | octeon_spi.c | 88 uint max_speed = slave->max_hz; in octeon_spi_set_mpicfg() 97 slave->max_hz, slave->mode); in octeon_spi_set_mpicfg() 513 static int octeon_spi_set_speed(struct udevice *bus, uint max_hz) in octeon_spi_set_speed() argument 519 if (max_hz > OCTEON_SPI_MAX_CLOCK_HZ) in octeon_spi_set_speed() 520 max_hz = OCTEON_SPI_MAX_CLOCK_HZ; in octeon_spi_set_speed() 529 debug("%s(%s, %u, %lu)\n", __func__, bus->name, max_hz, clk_rate); in octeon_spi_set_speed() 531 priv->clkdiv = clk_rate / (2 * max_hz); in octeon_spi_set_speed() 534 if (calc_hz <= max_hz) in octeon_spi_set_speed()
|
A D | spi-sunxi.c | 129 u32 max_hz; member 416 if (speed > plat->max_hz) in sun4i_spi_set_speed() 417 speed = plat->max_hz; in sun4i_spi_set_speed() 513 priv->freq = plat->max_hz; in sun4i_spi_probe() 525 plat->max_hz = fdtdec_get_int(gd->fdt_blob, node, in sun4i_spi_of_to_plat() 529 if (plat->max_hz > SUN4I_SPI_MAX_RATE) in sun4i_spi_of_to_plat() 530 plat->max_hz = SUN4I_SPI_MAX_RATE; in sun4i_spi_of_to_plat()
|
A D | cadence_qspi.c | 137 if (hz > plat->max_hz) in cadence_spi_set_speed() 138 hz = plat->max_hz; in cadence_spi_set_speed() 311 plat->max_hz = ofnode_read_u32_default(subnode, "spi-max-frequency", in cadence_spi_of_to_plat() 325 __func__, plat->regbase, plat->ahbbase, plat->max_hz, in cadence_spi_of_to_plat()
|
A D | davinci_spi.c | 312 static int davinci_spi_set_speed(struct udevice *bus, uint max_hz) in davinci_spi_set_speed() argument 316 debug("%s speed %u\n", __func__, max_hz); in davinci_spi_set_speed() 317 if (max_hz > CONFIG_SYS_SPI_CLK / 2) in davinci_spi_set_speed() 320 ds->freq = max_hz; in davinci_spi_set_speed()
|
A D | cadence_qspi.h | 20 unsigned int max_hz; member
|
A D | ti_qspi.c | 101 uint max_hz; member 471 priv->max_hz = dev_read_u32_default(bus, "spi-max-frequency", 0); in ti_qspi_of_to_plat() 472 if (!priv->max_hz) { in ti_qspi_of_to_plat() 479 (int)priv->base, priv->max_hz); in ti_qspi_of_to_plat()
|
A D | atcspi200_spi.c | 289 static int atcspi200_spi_set_speed(struct udevice *bus, uint max_hz) in atcspi200_spi_set_speed() argument 293 debug("%s speed %u\n", __func__, max_hz); in atcspi200_spi_set_speed() 295 ns->freq = max_hz; in atcspi200_spi_set_speed()
|
A D | cf_spi.c | 226 static int coldfire_spi_set_speed(struct udevice *bus, uint max_hz) in coldfire_spi_set_speed() argument 241 cfspi->baudrate = max_hz; in coldfire_spi_set_speed()
|
A D | fsl_dspi.c | 480 slave_plat->cs, slave_plat->max_hz, slave_plat->mode); in fsl_dspi_child_pre_probe() 510 dm_spi_bus->max_hz = plat->speed_hz; in fsl_dspi_probe()
|
A D | sh_qspi.c | 252 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
|
A D | pic32_spi.c | 397 dm_spi->max_hz = fdtdec_get_int(gd->fdt_blob, node, "spi-max-frequency", in pic32_spi_probe()
|
A D | omap3_spi.c | 390 priv->freq = slave_plat->max_hz; in omap3_spi_claim_bus()
|
/u-boot/include/ |
A D | spi.h | 55 uint max_hz; member 76 uint max_hz; member 144 uint max_hz; member 219 unsigned int max_hz, unsigned int mode);
|
A D | spi_flash.h | 92 unsigned int max_hz, unsigned int spi_mode, 97 unsigned int max_hz, unsigned int spi_mode); 129 unsigned int max_hz, unsigned int spi_mode);
|
A D | video.h | 324 unsigned int max_hz, unsigned int spi_mode); 328 unsigned int max_hz, unsigned int spi_mode);
|
/u-boot/drivers/mmc/ |
A D | mmc_spi.c | 457 if (!priv->spi->max_hz) in mmc_spi_probe() 458 priv->spi->max_hz = MMC_SPI_MAX_CLOCK; in mmc_spi_probe() 471 plat->cfg.f_max = priv->spi->max_hz; in mmc_spi_probe()
|
/u-boot/drivers/net/ |
A D | e1000_spi.c | 84 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
|
/u-boot/drivers/video/ |
A D | formike.c | 60 unsigned int max_hz, unsigned int spi_mode) in kwh043st20_f01_spi_startup() argument 65 spi = spi_setup_slave(bus, cs, max_hz, spi_mode); in kwh043st20_f01_spi_startup()
|
/u-boot/lib/acpi/ |
A D | acpi_device.c | 735 spi->speed = plat->max_hz; in acpi_device_set_spi()
|