Home
last modified time | relevance | path

Searched full:bus_freq (Results 1 – 25 of 68) sorted by relevance

123

/openbmc/linux/arch/powerpc/sysdev/
H A Dmpc5xxx_clocks.c19 u32 bus_freq; in mpc5xxx_fwnode_get_bus_frequency() local
22 ret = fwnode_property_read_u32(fwnode, "bus-frequency", &bus_freq); in mpc5xxx_fwnode_get_bus_frequency()
24 return bus_freq; in mpc5xxx_fwnode_get_bus_frequency()
27 ret = fwnode_property_read_u32(parent, "bus-frequency", &bus_freq); in mpc5xxx_fwnode_get_bus_frequency()
30 return bus_freq; in mpc5xxx_fwnode_get_bus_frequency()
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dti,davinci-mdio.yaml36 bus_freq:
62 - bus_freq
79 bus_freq = <1000000>;
/openbmc/linux/drivers/i2c/busses/
H A Di2c-mt7621.c64 u32 bus_freq; member
263 i2c->clk_div = clk_get_rate(i2c->clk) / i2c->bus_freq - 1; in mtk_i2c_init()
295 &i2c->bus_freq)) in mtk_i2c_probe()
296 i2c->bus_freq = I2C_MAX_STANDARD_MODE_FREQ; in mtk_i2c_probe()
298 if (i2c->bus_freq == 0) { in mtk_i2c_probe()
320 dev_info(&pdev->dev, "clock %u kHz\n", i2c->bus_freq / 1000); in mtk_i2c_probe()
H A Di2c-owl.c102 u32 bus_freq; member
162 val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); in owl_i2c_set_freq()
455 &i2c_dev->bus_freq)) in owl_i2c_probe()
456 i2c_dev->bus_freq = I2C_MAX_STANDARD_MODE_FREQ; in owl_i2c_probe()
459 if (i2c_dev->bus_freq != I2C_MAX_STANDARD_MODE_FREQ && in owl_i2c_probe()
460 i2c_dev->bus_freq != I2C_MAX_FAST_MODE_FREQ) { in owl_i2c_probe()
461 dev_err(dev, "invalid clock-frequency %d\n", i2c_dev->bus_freq); in owl_i2c_probe()
H A Di2c-sprd.c85 u32 bus_freq; member
360 sprd_i2c_set_clk(i2c_dev, i2c_dev->bus_freq); in sprd_i2c_enable()
508 i2c_dev->bus_freq = I2C_MAX_STANDARD_MODE_FREQ; in sprd_i2c_probe()
519 i2c_dev->bus_freq = prop; in sprd_i2c_probe()
522 if (i2c_dev->bus_freq != I2C_MAX_STANDARD_MODE_FREQ && in sprd_i2c_probe()
523 i2c_dev->bus_freq != I2C_MAX_FAST_MODE_FREQ) in sprd_i2c_probe()
H A Di2c-davinci.c140 .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()
277 dev_dbg(dev->dev, "bus_freq = %dkHz, bus_delay = %d\n", in i2c_davinci_init()
278 pdata->bus_freq, pdata->bus_delay); in i2c_davinci_init()
793 dev->pdata->bus_freq = prop / 1000; in davinci_i2c_probe()
H A Di2c-mv64xxx.c864 u32 bus_freq, tclk; in mv64xxx_of_config() local
877 if (of_property_read_u32(np, "clock-frequency", &bus_freq)) in mv64xxx_of_config()
878 bus_freq = I2C_MAX_STANDARD_MODE_FREQ; /* 100kHz by default */ in mv64xxx_of_config()
884 if (!mv64xxx_find_baud_factors(drv_data, bus_freq, tclk)) { in mv64xxx_of_config()
913 if (bus_freq <= I2C_MAX_STANDARD_MODE_FREQ) in mv64xxx_of_config()
920 if (bus_freq <= I2C_MAX_STANDARD_MODE_FREQ) in mv64xxx_of_config()
/openbmc/linux/drivers/net/mdio/
H A Dmdio-mscc-miim.c59 u32 bus_freq; member
254 if (!miim->bus_freq) in mscc_miim_clk_set()
259 div = DIV_ROUND_UP(rate, 2 * miim->bus_freq) - 1; in mscc_miim_clk_set()
308 of_property_read_u32(np, "clock-frequency", &miim->bus_freq); in mscc_miim_probe()
310 if (miim->bus_freq && !miim->clk) { in mscc_miim_probe()
/openbmc/u-boot/drivers/net/ti/
H A Dcpsw_mdio.c129 u32 bus_freq, int fck_freq) in cpsw_mdio_init() argument
149 if (!bus_freq || !fck_freq) in cpsw_mdio_init()
152 cpsw_mdio->div = (fck_freq / bus_freq) - 1; in cpsw_mdio_init()
H A Dcpsw_mdio.h14 u32 bus_freq, int fck_freq);
/openbmc/linux/drivers/net/ethernet/ti/
H A Ddavinci_mdio.c90 .bus_freq = DEF_OUT_FREQ,
115 div = (mdio_in / data->pdata.bus_freq) - 1; in davinci_mdio_init_clk()
316 data->pdata.bus_freq); in davinci_mdio_common_reset()
496 if (of_property_read_u32(node, "bus_freq", &prop)) { in davinci_mdio_probe_dt()
497 dev_err(&pdev->dev, "Missing bus_freq property in the DT.\n"); in davinci_mdio_probe_dt()
500 data->bus_freq = prop; in davinci_mdio_probe_dt()
H A Dam65-cpsw-qos.c830 am65_cpsw_qos_tx_rate_calc(u32 rate_mbps, unsigned long bus_freq) in am65_cpsw_qos_tx_rate_calc() argument
834 bus_freq /= 1000000; in am65_cpsw_qos_tx_rate_calc()
835 ir = DIV_ROUND_UP(((u64)rate_mbps * 32768), bus_freq); in am65_cpsw_qos_tx_rate_calc()
847 ch_cir = am65_cpsw_qos_tx_rate_calc(rate_mbps, common->bus_freq); in am65_cpsw_qos_tx_p0_rate_apply()
935 common->bus_freq); in am65_cpsw_qos_tx_p0_rate_init()
H A Dcpsw_ale.h28 unsigned long bus_freq; member
H A Dam65-cpsw-nuss.h144 unsigned long bus_freq; member
/openbmc/u-boot/arch/x86/cpu/baytrail/
H A Dcpu.c121 static unsigned bus_freq(void) in bus_freq() function
141 ulong bclk = bus_freq(); in tsc_freq()
/openbmc/linux/include/linux/platform_data/
H A Di2c-davinci.h17 unsigned int bus_freq; /* standard bus frequency (kHz) */ member
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A Dam57-pruss.dtsi112 bus_freq = <1000000>;
221 bus_freq = <1000000>;
/openbmc/linux/include/linux/
H A Ddavinci_emac.h18 unsigned long bus_freq; member
/openbmc/u-boot/arch/arm/dts/
H A Dkeystone-k2hk.dtsi110 bus_freq = <2500000>;
H A Dkeystone-k2l.dtsi90 bus_freq = <2500000>;
H A Dam3517.dtsi51 bus_freq = <1000000>;
H A Dkeystone-k2e.dtsi143 bus_freq = <2500000>;
/openbmc/qemu/target/i386/hvf/
H A Dhvf.c192 uint64_t bus_freq; in init_apic_bus_freq() local
199 if (sysctlbyname("hw.busfrequency", &bus_freq, &length, NULL, 0)) { in init_apic_bus_freq()
202 env->apic_bus_freq = bus_freq; in init_apic_bus_freq()
/openbmc/linux/arch/powerpc/platforms/512x/
H A Dclock-commonclk.c421 static void __init mpc512x_clk_setup_ref_clock(struct device_node *np, int bus_freq, in mpc512x_clk_setup_ref_clock() argument
452 if (bus_freq && calc_freq != bus_freq) in mpc512x_clk_setup_ref_clock()
454 calc_freq, bus_freq); in mpc512x_clk_setup_ref_clock()
456 calc_freq = bus_freq; /* start with IPS */ in mpc512x_clk_setup_ref_clock()
/openbmc/linux/Documentation/devicetree/bindings/soc/ti/
H A Dti,pruss.yaml424 bus_freq = <1000000>;
515 bus_freq = <1000000>;

123