Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dmxc_spi.c51 unsigned int max_hz; member
98 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local
103 div = DIV_ROUND_UP(clk_src, max_hz); in spi_cfg_mxc()
107 max_hz, div, clk_src / (4 << div)); in spi_cfg_mxc()
138 unsigned int max_hz = mxcs->max_hz; in spi_cfg_mxc() local
151 if (clk_src > max_hz) { in spi_cfg_mxc()
152 pre_div = (clk_src - 1) / max_hz; in spi_cfg_mxc()
159 max_hz); in spi_cfg_mxc()
440 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
448 if (max_hz == 0) { in spi_setup_slave()
[all …]
H A Dspi-uclass.c56 speed = slave->max_hz; in dm_spi_claim_bus()
59 if (spi->max_hz) { in dm_spi_claim_bus()
61 speed = min(speed, spi->max_hz); in dm_spi_claim_bus()
63 speed = spi->max_hz; in dm_spi_claim_bus()
175 spi->max_hz = dev_read_u32_default(bus, "spi-max-frequency", 0); in spi_post_probe()
217 slave->max_hz = plat->max_hz; in spi_child_pre_probe()
365 plat->max_hz = speed; in spi_get_bus_and_cs()
369 plat->max_hz = SPI_DEFAULT_SPEED_HZ; in spi_get_bus_and_cs()
448 plat->max_hz = dev_read_u32_default(dev, "spi-max-frequency", in spi_slave_ofdata_to_platdata()
H A Dstm32_qspi.c163 u32 max_hz; member
169 u32 max_hz; member
434 plat->max_hz = fdtdec_get_int(blob, node, "spi-max-frequency", in stm32_qspi_ofdata_to_platdata()
444 plat->max_hz in stm32_qspi_ofdata_to_platdata()
458 dm_spi_bus->max_hz = plat->max_hz; in stm32_qspi_probe()
462 priv->max_hz = plat->max_hz; in stm32_qspi_probe()
546 if (speed > plat->max_hz) in stm32_qspi_set_speed()
547 speed = plat->max_hz; in stm32_qspi_set_speed()
H A Dti_qspi.c106 uint max_hz;
371 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
397 ti_spi_set_speed(priv, max_hz); in spi_setup_slave()
477 static int ti_qspi_set_speed(struct udevice *bus, uint max_hz) in ti_qspi_set_speed() argument
481 ti_spi_set_speed(priv, max_hz); in ti_qspi_set_speed()
605 priv->max_hz = fdtdec_get_int(blob, node, "spi-max-frequency", -1); in ti_qspi_ofdata_to_platdata()
606 if (priv->max_hz < 0) { in ti_qspi_ofdata_to_platdata()
613 (int)priv->base, priv->max_hz); in ti_qspi_ofdata_to_platdata()
H A Ddavinci_spi.c397 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
426 ds->freq = max_hz; in spi_setup_slave()
469 static int davinci_spi_set_speed(struct udevice *bus, uint max_hz) in davinci_spi_set_speed() argument
473 debug("%s speed %u\n", __func__, max_hz); in davinci_spi_set_speed()
474 if (max_hz > CONFIG_SYS_SPI_CLK / 2) in davinci_spi_set_speed()
477 ds->freq = max_hz; in davinci_spi_set_speed()
H A Dfsl_espi.c67 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
90 if ((spibrg / max_hz) > 32) { in spi_setup_slave()
92 pm = spibrg / (max_hz * 16 * 2); in spi_setup_slave()
96 "is used.\n", max_hz, spibrg / (32 * 16)); in spi_setup_slave()
99 pm = spibrg / (max_hz * 2); in spi_setup_slave()
H A Dcadence_qspi.c125 if (hz > plat->max_hz) in cadence_spi_set_speed()
126 hz = plat->max_hz; in cadence_spi_set_speed()
313 plat->max_hz = fdtdec_get_uint(blob, subnode, "spi-max-frequency", in cadence_spi_ofdata_to_platdata()
325 __func__, plat->regbase, plat->ahbbase, plat->max_hz, in cadence_spi_ofdata_to_platdata()
H A Domap3_spi.c501 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
547 if (max_hz > OMAP3_MCSPI_MAX_FREQ) { in spi_setup_slave()
549 max_hz); in spi_setup_slave()
566 priv->freq = max_hz; in spi_setup_slave()
657 priv->freq = slave_plat->max_hz; in omap3_spi_set_speed()
H A Datmel_spi.c46 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
80 scbr = (get_spi_clk_rate(bus) + max_hz - 1) / max_hz; in spi_setup_slave()
H A Datcspi200_spi.c286 static int atcspi200_spi_set_speed(struct udevice *bus, uint max_hz) in atcspi200_spi_set_speed() argument
290 debug("%s speed %u\n", __func__, max_hz); in atcspi200_spi_set_speed()
292 ns->freq = max_hz; in atcspi200_spi_set_speed()
H A Dfsl_dspi.c408 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
473 fsl_dspi_cfg_speed(&dspi->priv, max_hz); in spi_setup_slave()
537 slave_plat->cs, slave_plat->max_hz, slave_plat->mode); in fsl_dspi_child_pre_probe()
567 dm_spi_bus->max_hz = plat->speed_hz; in fsl_dspi_probe()
H A Dcf_spi.c297 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
308 cfslave->baudrate = max_hz; in spi_setup_slave()
H A Dmxs_spi.c57 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
73 mxs_slave->max_khz = max_hz / 1000; in spi_setup_slave()
H A Dkirkwood_spi.c107 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument
128 data = ((CONFIG_SYS_TCLK / 2) / max_hz) + 0x10; in spi_setup_slave()
H A Dcadence_qspi.h18 unsigned int max_hz; member
H A Dlpc32xx_ssp.c62 struct spi_slave *spi_setup_slave(uint bus, uint cs, uint max_hz, uint mode) in spi_setup_slave() argument
/OK3568_Linux_fs/u-boot/drivers/mtd/spi/
H A Dsf-uclass.c46 unsigned int max_hz, unsigned int spi_mode) in spi_flash_probe() argument
50 if (spi_flash_probe_bus_cs(bus, cs, max_hz, spi_mode, &dev)) in spi_flash_probe()
62 unsigned int max_hz, unsigned int spi_mode, in spi_flash_probe_bus_cs() argument
78 ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode, in spi_flash_probe_bus_cs()
H A Dsf_probe.c64 unsigned int max_hz, unsigned int spi_mode) in spi_flash_probe() argument
69 bus = spi_setup_slave(busnum, cs, max_hz, spi_mode); in spi_flash_probe()
/OK3568_Linux_fs/u-boot/include/
H A Dspi.h56 uint max_hz; member
77 uint max_hz; member
112 uint max_hz; member
198 unsigned int max_hz, unsigned int mode);
H A Dspi_flash.h106 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);
H A Dvideo.h241 unsigned int max_hz, unsigned int spi_mode);
245 unsigned int max_hz, unsigned int spi_mode);
/OK3568_Linux_fs/u-boot/drivers/video/
H A Dlg4573.c192 unsigned int max_hz, unsigned int spi_mode) in lg4573_spi_startup() argument
197 spi = spi_setup_slave(bus, cs, max_hz, spi_mode); in lg4573_spi_startup()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-orion.c77 unsigned long max_hz; member
535 .max_hz = 50000000,
541 .max_hz = 50000000,
555 .max_hz = 50000000,
668 master->max_speed_hz = min(devdata->max_hz, in orion_spi_probe()
674 master->max_speed_hz = devdata->max_hz; in orion_spi_probe()
/OK3568_Linux_fs/kernel/include/linux/spi/
H A Difx_modem.h8 unsigned long max_hz; /* max SPI frequency */ member
/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Difx6x60.h78 long max_hz; /* max SPI frequency */ member

12