Home
last modified time | relevance | path

Searched refs:bus_freq (Results 1 – 25 of 51) sorted by relevance

123

/linux-6.12.1/arch/powerpc/sysdev/
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()
/linux-6.12.1/drivers/i2c/busses/
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()
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()
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()
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()
278 pdata->bus_freq, pdata->bus_delay); in i2c_davinci_init()
791 dev->pdata->bus_freq = prop / 1000; in davinci_i2c_probe()
Di2c-mv64xxx.c863 u32 bus_freq, tclk; in mv64xxx_of_config() local
876 if (of_property_read_u32(np, "clock-frequency", &bus_freq)) in mv64xxx_of_config()
877 bus_freq = I2C_MAX_STANDARD_MODE_FREQ; /* 100kHz by default */ in mv64xxx_of_config()
883 if (!mv64xxx_find_baud_factors(drv_data, bus_freq, tclk)) { in mv64xxx_of_config()
912 if (bus_freq <= I2C_MAX_STANDARD_MODE_FREQ) in mv64xxx_of_config()
919 if (bus_freq <= I2C_MAX_STANDARD_MODE_FREQ) in mv64xxx_of_config()
/linux-6.12.1/drivers/net/mdio/
Dmdio-mscc-miim.c60 u32 bus_freq; member
255 if (!miim->bus_freq) in mscc_miim_clk_set()
260 div = DIV_ROUND_UP(rate, 2 * miim->bus_freq) - 1; in mscc_miim_clk_set()
316 of_property_read_u32(np, "clock-frequency", &miim->bus_freq); in mscc_miim_probe()
318 if (miim->bus_freq && !miim->clk) { in mscc_miim_probe()
/linux-6.12.1/include/linux/platform_data/
Di2c-davinci.h17 unsigned int bus_freq; /* standard bus frequency (kHz) */ member
/linux-6.12.1/include/linux/
Ddavinci_emac.h18 unsigned long bus_freq; member
/linux-6.12.1/arch/powerpc/platforms/512x/
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()
/linux-6.12.1/drivers/net/ethernet/ti/
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()
500 data->bus_freq = prop; in davinci_mdio_probe_dt()
Dam65-cpsw-qos.c33 am65_cpsw_qos_tx_rate_calc(u32 rate_mbps, unsigned long bus_freq) in am65_cpsw_qos_tx_rate_calc() argument
37 bus_freq /= 1000000; in am65_cpsw_qos_tx_rate_calc()
38 ir = DIV_ROUND_UP(((u64)rate_mbps * 32768), bus_freq); in am65_cpsw_qos_tx_rate_calc()
85 common->bus_freq); in am65_cpsw_tx_pn_shaper_apply()
95 common->bus_freq); in am65_cpsw_tx_pn_shaper_apply()
1187 ch_cir = am65_cpsw_qos_tx_rate_calc(rate_mbps, common->bus_freq); in am65_cpsw_qos_tx_p0_rate_apply()
1275 common->bus_freq); in am65_cpsw_qos_tx_p0_rate_init()
Dcpsw_ale.h29 unsigned long bus_freq; member
Dam65-cpsw-nuss.h170 unsigned long bus_freq; member
/linux-6.12.1/arch/arm/boot/dts/ti/omap/
Dam57-pruss.dtsi112 bus_freq = <1000000>;
221 bus_freq = <1000000>;
Dam3517.dtsi108 bus_freq = <1000000>;
/linux-6.12.1/arch/arm64/boot/dts/ti/
Dk3-j784s4-evm-quad-port-eth-exp1.dtso77 bus_freq = <1000000>;
Dk3-j721e-evm-gesi-exp-board.dtso73 bus_freq = <1000000>;
/linux-6.12.1/arch/arm/boot/dts/ti/keystone/
Dkeystone-k2e.dtsi195 bus_freq = <2500000>;
Dkeystone-k2hk.dtsi292 bus_freq = <2500000>;
Dkeystone-k2l.dtsi398 bus_freq = <2500000>;
/linux-6.12.1/arch/arm/boot/dts/ti/davinci/
Dda850-lcdk.dts263 bus_freq = <2200000>;
Dda850-evm.dts323 bus_freq = <2200000>;
/linux-6.12.1/drivers/net/can/
Dkvaser_pciefd.c428 u32 bus_freq; member
698 top = can->kv_pcie->bus_freq / (2 * 500000) - 1; in kvaser_pciefd_pwm_start()
1172 pcie->bus_freq = ioread32(KVASER_PCIEFD_SYSID_ADDR(pcie) + KVASER_PCIEFD_SYSID_BUSFREQ_REG); in kvaser_pciefd_setup_board()
/linux-6.12.1/include/linux/soundwire/
Dsdw.h280 u32 *bus_freq; member

123