Home
last modified time | relevance | path

Searched refs:max_hz (Results 1 – 25 of 28) sorted by relevance

12

/u-boot/test/dm/
A Dspi.c120 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 Dsf-uclass.c39 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 Dsf_probe.c58 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 Dmxc_spi.c134 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 Dspi-uclass.c60 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 Dfsl_espi.c339 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 Docteon_spi.c88 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 Dspi-sunxi.c129 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 Dcadence_qspi.c137 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 Ddavinci_spi.c312 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 Dcadence_qspi.h20 unsigned int max_hz; member
A Dti_qspi.c101 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 Datcspi200_spi.c289 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 Dcf_spi.c226 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 Dfsl_dspi.c480 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 Dsh_qspi.c252 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
A Dpic32_spi.c397 dm_spi->max_hz = fdtdec_get_int(gd->fdt_blob, node, "spi-max-frequency", in pic32_spi_probe()
A Domap3_spi.c390 priv->freq = slave_plat->max_hz; in omap3_spi_claim_bus()
/u-boot/include/
A Dspi.h55 uint max_hz; member
76 uint max_hz; member
144 uint max_hz; member
219 unsigned int max_hz, unsigned int mode);
A Dspi_flash.h92 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 Dvideo.h324 unsigned int max_hz, unsigned int spi_mode);
328 unsigned int max_hz, unsigned int spi_mode);
/u-boot/drivers/mmc/
A Dmmc_spi.c457 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 De1000_spi.c84 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
/u-boot/drivers/video/
A Dformike.c60 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 Dacpi_device.c735 spi->speed = plat->max_hz; in acpi_device_set_spi()

Completed in 29 milliseconds

12