| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | mxc_spi.c | 51 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 D | spi-uclass.c | 56 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 D | stm32_qspi.c | 163 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 D | ti_qspi.c | 106 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 D | davinci_spi.c | 397 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 D | fsl_espi.c | 67 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 D | cadence_qspi.c | 125 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 D | omap3_spi.c | 501 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 D | atmel_spi.c | 46 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 D | atcspi200_spi.c | 286 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 D | fsl_dspi.c | 408 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 D | cf_spi.c | 297 unsigned int max_hz, unsigned int mode) in spi_setup_slave() argument 308 cfslave->baudrate = max_hz; in spi_setup_slave()
|
| H A D | mxs_spi.c | 57 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 D | kirkwood_spi.c | 107 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 D | cadence_qspi.h | 18 unsigned int max_hz; member
|
| H A D | lpc32xx_ssp.c | 62 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 D | sf-uclass.c | 46 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 D | sf_probe.c | 64 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 D | spi.h | 56 uint max_hz; member 77 uint max_hz; member 112 uint max_hz; member 198 unsigned int max_hz, unsigned int mode);
|
| H A 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);
|
| H A D | video.h | 241 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 D | lg4573.c | 192 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 D | spi-orion.c | 77 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 D | ifx_modem.h | 8 unsigned long max_hz; /* max SPI frequency */ member
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | ifx6x60.h | 78 long max_hz; /* max SPI frequency */ member
|