Searched refs:bus_freq (Results 1 – 13 of 13) sorted by relevance
/drivers/i2c/busses/ |
D | i2c-mt7621.c | 63 u32 bus_freq; member 262 i2c->clk_div = clk_get_rate(i2c->clk) / i2c->bus_freq - 1; in mtk_i2c_init() 302 &i2c->bus_freq)) in mtk_i2c_probe() 303 i2c->bus_freq = I2C_MAX_STANDARD_MODE_FREQ; in mtk_i2c_probe() 305 if (i2c->bus_freq == 0) { in mtk_i2c_probe() 328 dev_info(&pdev->dev, "clock %u kHz\n", i2c->bus_freq / 1000); in mtk_i2c_probe()
|
D | i2c-owl.c | 98 u32 bus_freq; member 158 val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); in owl_i2c_set_freq() 419 &i2c_dev->bus_freq)) in owl_i2c_probe() 420 i2c_dev->bus_freq = I2C_MAX_STANDARD_MODE_FREQ; in owl_i2c_probe() 423 if (i2c_dev->bus_freq != I2C_MAX_STANDARD_MODE_FREQ && in owl_i2c_probe() 424 i2c_dev->bus_freq != I2C_MAX_FAST_MODE_FREQ) { in owl_i2c_probe() 425 dev_err(dev, "invalid clock-frequency %d\n", i2c_dev->bus_freq); in owl_i2c_probe()
|
D | i2c-sprd.c | 86 u32 bus_freq; member 361 sprd_i2c_set_clk(i2c_dev, i2c_dev->bus_freq); in sprd_i2c_enable() 509 i2c_dev->bus_freq = I2C_MAX_STANDARD_MODE_FREQ; in sprd_i2c_probe() 520 i2c_dev->bus_freq = prop; in sprd_i2c_probe() 523 if (i2c_dev->bus_freq != I2C_MAX_STANDARD_MODE_FREQ && in sprd_i2c_probe() 524 i2c_dev->bus_freq != I2C_MAX_FAST_MODE_FREQ) in sprd_i2c_probe()
|
D | i2c-davinci.c | 140 .bus_freq = 100, 215 clk = ((input_clock / (psc + 1)) / (pdata->bus_freq * 1000)); in i2c_davinci_calc_clk_dividers() 217 if (input_clock / (psc + 1) / clk > pdata->bus_freq * 1000) in i2c_davinci_calc_clk_dividers() 224 if (pdata->bus_freq > 100) in i2c_davinci_calc_clk_dividers() 278 pdata->bus_freq, pdata->bus_delay); in i2c_davinci_init() 803 dev->pdata->bus_freq = prop / 1000; in davinci_i2c_probe()
|
D | i2c-mv64xxx.c | 797 u32 bus_freq, tclk; in mv64xxx_of_config() local 810 if (of_property_read_u32(np, "clock-frequency", &bus_freq)) in mv64xxx_of_config() 811 bus_freq = I2C_MAX_STANDARD_MODE_FREQ; /* 100kHz by default */ in mv64xxx_of_config() 817 if (!mv64xxx_find_baud_factors(drv_data, bus_freq, tclk)) { in mv64xxx_of_config() 847 if (bus_freq <= I2C_MAX_STANDARD_MODE_FREQ) in mv64xxx_of_config() 854 if (bus_freq <= I2C_MAX_STANDARD_MODE_FREQ) in mv64xxx_of_config()
|
D | i2c-npcm7xx.c | 300 unsigned long bus_freq; /* in Hz */ member 1799 bus->bus_freq = bus_freq_hz; in npcm_i2c_init_clk() 2120 timeout_usec = (2 * 9 * USEC_PER_SEC / bus->bus_freq) * (2 + nread + nwrite); in npcm_i2c_master_xfer()
|
/drivers/net/ethernet/ti/ |
D | davinci_mdio.c | 77 .bus_freq = DEF_OUT_FREQ, 100 div = (mdio_in / data->pdata.bus_freq) - 1; in davinci_mdio_init_clk() 151 data->pdata.bus_freq); in davinci_mdio_reset() 322 data->bus_freq = prop; in davinci_mdio_probe_dt()
|
D | cpsw_ale.h | 28 unsigned long bus_freq; member
|
D | am65-cpsw-nuss.h | 109 unsigned long bus_freq; member
|
D | am65-cpsw-nuss.c | 2077 common->bus_freq = clk_get_rate(clk); in am65_cpsw_nuss_probe() 2127 ale_params.bus_freq = common->bus_freq; in am65_cpsw_nuss_probe()
|
D | cpsw_ale.c | 1140 aging_timer = ale->params.bus_freq / 1000000; in cpsw_ale_hw_aging_timer_start()
|
/drivers/net/can/ |
D | kvaser_pciefd.c | 281 u32 bus_freq; member 682 top = can->kv_pcie->bus_freq / (2 * 500000) - 1; in kvaser_pciefd_pwm_start() 1150 pcie->bus_freq = ioread32(pcie->reg_base + in kvaser_pciefd_setup_board()
|
/drivers/net/ethernet/freescale/ |
D | fec_main.c | 2066 u32 bus_freq; in fec_enet_mii_init() local 2094 bus_freq = 2500000; /* 2.5MHz by default */ in fec_enet_mii_init() 2097 of_property_read_u32(node, "clock-frequency", &bus_freq); in fec_enet_mii_init() 2110 mii_speed = DIV_ROUND_UP(clk_get_rate(fep->clk_ipg), bus_freq * 2); in fec_enet_mii_init()
|