Home
last modified time | relevance | path

Searched full:bus_clk (Results 1 – 25 of 168) sorted by relevance

1234567

/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun6i_drc.c17 struct clk *bus_clk; member
45 drc->bus_clk = devm_clk_get(dev, "ahb"); in sun6i_drc_bind()
46 if (IS_ERR(drc->bus_clk)) { in sun6i_drc_bind()
48 ret = PTR_ERR(drc->bus_clk); in sun6i_drc_bind()
51 clk_prepare_enable(drc->bus_clk); in sun6i_drc_bind()
71 clk_disable_unprepare(drc->bus_clk); in sun6i_drc_bind()
84 clk_disable_unprepare(drc->bus_clk); in sun6i_drc_unbind()
/openbmc/u-boot/arch/m68k/include/asm/
H A Dimmap.h28 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
62 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
91 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
122 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
145 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
165 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
191 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
215 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
238 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
262 #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
[all …]
/openbmc/linux/arch/mips/ar7/
H A Dclock.c92 static struct clk_rate bus_clk = { variable
211 int base_clock = bus_clk.rate; in tnetd7300_set_clock()
215 base_clock = bus_clk.rate; in tnetd7300_set_clock()
248 bus_clk.rate = tnetd7300_get_clock(BUS_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks()
255 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks()
351 bus_clk.rate = in tnetd7200_init_clocks()
355 bus_clk.rate); in tnetd7200_init_clocks()
382 bus_clk.rate = cpu_clk.rate / 2; in tnetd7200_init_clocks()
385 dsp_mul * 2, bus_clk.rate); in tnetd7200_init_clocks()
392 bus_clk.rate = ((dsp_base / dsp_prediv) * dsp_mul) in tnetd7200_init_clocks()
[all …]
/openbmc/u-boot/arch/m68k/cpu/mcf547x_8x/
H A Dspeed.c19 * get_clocks() fills in gd->cpu_clock and gd->bus_clk
23 gd->bus_clk = CONFIG_SYS_CLK; in get_clocks()
24 gd->cpu_clk = (gd->bus_clk * 2); in get_clocks()
27 gd->arch.i2c1_clk = gd->bus_clk; in get_clocks()
/openbmc/u-boot/arch/m68k/cpu/mcf523x/
H A Dspeed.c19 * get_clocks() fills in gd->cpu_clock and gd->bus_clk
30 gd->bus_clk = CONFIG_SYS_CLK; in get_clocks()
31 gd->cpu_clk = (gd->bus_clk * 2); in get_clocks()
34 gd->arch.i2c1_clk = gd->bus_clk; in get_clocks()
/openbmc/u-boot/arch/m68k/cpu/mcf52x2/
H A Dspeed.c17 /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
71 gd->bus_clk = gd->cpu_clk / 2; in get_clocks()
73 gd->bus_clk = gd->cpu_clk; in get_clocks()
77 gd->arch.i2c1_clk = gd->bus_clk; in get_clocks()
79 gd->arch.i2c2_clk = gd->bus_clk; in get_clocks()
/openbmc/u-boot/board/freescale/p1_p2_rdb_pc/
H A Dspl.c27 u32 plat_ratio, bus_clk; in board_init_f() local
47 bus_clk = CONFIG_SYS_CLK_FREQ * plat_ratio; in board_init_f()
48 gd->bus_clk = bus_clk; in board_init_f()
51 bus_clk / 16 / CONFIG_BAUDRATE); in board_init_f()
/openbmc/u-boot/board/Arcturus/ucp1020/
H A Dspl.c35 u32 plat_ratio, bus_clk; in board_init_f() local
55 bus_clk = CONFIG_SYS_CLK_FREQ * plat_ratio; in board_init_f()
56 gd->bus_clk = bus_clk; in board_init_f()
59 bus_clk / 16 / CONFIG_BAUDRATE); in board_init_f()
/openbmc/linux/drivers/clk/sunxi-ng/
H A Dccu-sun9i-a80-usb.c95 struct clk *bus_clk; in sun9i_a80_usb_clk_probe() local
103 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun9i_a80_usb_clk_probe()
104 if (IS_ERR(bus_clk)) in sun9i_a80_usb_clk_probe()
105 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sun9i_a80_usb_clk_probe()
109 ret = clk_prepare_enable(bus_clk); in sun9i_a80_usb_clk_probe()
122 clk_disable_unprepare(bus_clk); in sun9i_a80_usb_clk_probe()
/openbmc/linux/arch/sh/kernel/cpu/
H A Dclock-cpg.c19 static struct clk bus_clk = { variable
35 &bus_clk,
43 CLKDEV_CON_ID("bus_clk", &bus_clk),
/openbmc/u-boot/drivers/spi/
H A Dfsl_dspi.c81 * @bus_clk: DSPI input clk frequency
92 uint bus_clk; member
368 int best_i, best_j, bus_clk; in fsl_dspi_cfg_speed() local
370 bus_clk = priv->bus_clk; in fsl_dspi_cfg_speed()
372 debug("DSPI set_speed: expected SCK speed %u, bus_clk %u.\n", in fsl_dspi_cfg_speed()
373 speed, bus_clk); in fsl_dspi_cfg_speed()
378 ret = fsl_dspi_hz_to_spi_baud(&best_i, &best_j, speed, bus_clk); in fsl_dspi_cfg_speed()
382 fsl_dspi_hz_to_spi_baud(&best_i, &best_j, speed, bus_clk); in fsl_dspi_cfg_speed()
420 dspi->priv.bus_clk = gd->bus_clk; in spi_setup_slave()
422 dspi->priv.bus_clk = mxc_get_clock(MXC_DSPI_CLK); in spi_setup_slave()
[all …]
H A Dcf_spi.c206 if ((cfslave->baudrate > (gd->bus_clk >> 1)) || in cfspi_setup_slave()
207 (cfslave->baudrate < (gd->bus_clk / tmp))) { in cfspi_setup_slave()
209 (int)(gd->bus_clk >> 1), (int)(gd->bus_clk / tmp)); in cfspi_setup_slave()
215 (cfslave->baudrate > (gd->bus_clk / (prescaler[0] * scaler[0])))) { in cfspi_setup_slave()
258 baud_speed = gd->bus_clk / prescaler[i]; in cfspi_setup_slave()
/openbmc/u-boot/arch/mips/mach-ath79/qca953x/
H A Dclk.c89 gd->bus_clk = gd->mem_clk / (div + 1); in get_clocks()
92 gd->bus_clk = gd->cpu_clk / (div + 1); in get_clocks()
100 if (!gd->bus_clk) in get_bus_freq()
102 return gd->bus_clk; in get_bus_freq()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-bcm2835.c66 struct clk *bus_clk; member
431 i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); in bcm2835_i2c_probe()
433 if (IS_ERR(i2c_dev->bus_clk)) in bcm2835_i2c_probe()
434 return dev_err_probe(&pdev->dev, PTR_ERR(i2c_dev->bus_clk), in bcm2835_i2c_probe()
445 ret = clk_set_rate_exclusive(i2c_dev->bus_clk, bus_clk_rate); in bcm2835_i2c_probe()
450 ret = clk_prepare_enable(i2c_dev->bus_clk); in bcm2835_i2c_probe()
497 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_probe()
499 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_probe()
508 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove()
509 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dclock.c82 gd->bus_clk = sys_info.freq_systembus; in get_clocks()
86 gd->arch.sdhc_clk = gd->bus_clk; in get_clocks()
94 return gd->bus_clk; in get_bus_freq()
104 return gd->bus_clk / 2; in get_serial_clock()
/openbmc/u-boot/drivers/clk/owl/
H A Dclk_s900.c19 u32 bus_clk = 0, core_pll, dev_pll; in owl_clk_init() local
29 /* Configure BUS_CLK */ in owl_clk_init()
30 bus_clk |= (CMU_PDBGDIV_DIV | CMU_PERDIV_DIV | CMU_NOCDIV_DIV | in owl_clk_init()
33 writel(bus_clk, priv->base + CMU_BUSCLK); in owl_clk_init()
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-of-dwcmshc.c92 struct clk *bus_clk; member
509 priv->bus_clk = devm_clk_get(dev, "bus"); in dwcmshc_probe()
510 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe()
511 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe()
578 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe()
614 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove()
637 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend()
638 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend()
659 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume()
660 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume()
[all …]
/openbmc/linux/drivers/watchdog/
H A Dgef_wdt.c66 static unsigned int bus_clk; variable
126 if (timeout > 0xFFFFFFFF / bus_clk) in gef_wdt_set_timeout()
127 timeout = 0xFFFFFFFF / bus_clk; in gef_wdt_set_timeout()
130 gef_wdt_count = (timeout * bus_clk) >> 8; in gef_wdt_set_timeout()
268 bus_clk = 133; /* in MHz */ in gef_wdt_probe()
272 bus_clk = freq; in gef_wdt_probe()
/openbmc/linux/Documentation/devicetree/bindings/display/bridge/
H A Dsamsung,mipi-dsim.yaml158 - const: bus_clk
186 - const: bus_clk
206 - const: bus_clk
226 - const: bus_clk
254 clock-names = "bus_clk",
/openbmc/u-boot/board/freescale/p1022ds/
H A Dspl_minimal.c22 u32 plat_ratio, sys_clk, bus_clk; in board_init_f() local
37 bus_clk = sys_clk * plat_ratio / 2; in board_init_f()
40 bus_clk / 16 / CONFIG_BAUDRATE); in board_init_f()
/openbmc/linux/drivers/usb/host/
H A Dxhci-histb.c37 struct clk *bus_clk; member
88 histb->bus_clk = devm_clk_get(dev, "bus"); in xhci_histb_clks_get()
89 if (IS_ERR(histb->bus_clk)) { in xhci_histb_clks_get()
91 return PTR_ERR(histb->bus_clk); in xhci_histb_clks_get()
119 ret = clk_prepare_enable(histb->bus_clk); in xhci_histb_host_enable()
152 clk_disable_unprepare(histb->bus_clk); in xhci_histb_host_enable()
164 clk_disable_unprepare(histb->bus_clk); in xhci_histb_host_disable()
/openbmc/u-boot/arch/mips/mach-ath79/ar933x/
H A Dclk.c71 gd->bus_clk = pll / div; in get_clocks()
78 if (!gd->bus_clk) in get_bus_freq()
80 return gd->bus_clk; in get_bus_freq()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-histb.c57 struct clk *bus_clk; member
213 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_disable()
241 ret = clk_prepare_enable(hipcie->bus_clk); in histb_pcie_host_enable()
281 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_enable()
369 hipcie->bus_clk = devm_clk_get(dev, "bus"); in histb_pcie_probe()
370 if (IS_ERR(hipcie->bus_clk)) { in histb_pcie_probe()
372 return PTR_ERR(hipcie->bus_clk); in histb_pcie_probe()
/openbmc/linux/sound/soc/fsl/
H A Dfsl_aud2htx.c222 aud2htx->bus_clk = devm_clk_get(&pdev->dev, "bus"); in fsl_aud2htx_probe()
223 if (IS_ERR(aud2htx->bus_clk)) { in fsl_aud2htx_probe()
225 return PTR_ERR(aud2htx->bus_clk); in fsl_aud2htx_probe()
270 clk_disable_unprepare(aud2htx->bus_clk); in fsl_aud2htx_runtime_suspend()
280 ret = clk_prepare_enable(aud2htx->bus_clk); in fsl_aud2htx_runtime_resume()
/openbmc/linux/drivers/pwm/
H A Dpwm-sun4i.c85 struct clk *bus_clk; member
426 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe()
427 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe()
428 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe()
448 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe()
450 dev_err(&pdev->dev, "cannot prepare and enable bus_clk %pe\n", in sun4i_pwm_probe()
472 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_probe()
485 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()

1234567