/openbmc/linux/drivers/clocksource/ |
H A D | mxs_timer.c | 162 static int __init mxs_clockevent_init(struct clk *timer_clk) in mxs_clockevent_init() argument 168 clk_get_rate(timer_clk), in mxs_clockevent_init() 188 static int __init mxs_clocksource_init(struct clk *timer_clk) in mxs_clocksource_init() argument 190 unsigned int c = clk_get_rate(timer_clk); in mxs_clocksource_init() 205 struct clk *timer_clk; in mxs_timer_init() local 211 timer_clk = of_clk_get(np, 0); in mxs_timer_init() 212 if (IS_ERR(timer_clk)) { in mxs_timer_init() 214 return PTR_ERR(timer_clk); in mxs_timer_init() 217 ret = clk_prepare_enable(timer_clk); in mxs_timer_init() 257 ret = mxs_clocksource_init(timer_clk); in mxs_timer_init() [all …]
|
H A D | dw_apb_timer_of.c | 20 struct clk *timer_clk; in timer_get_base_and_rate() local 54 timer_clk = of_clk_get_by_name(np, "timer"); in timer_get_base_and_rate() 55 if (IS_ERR(timer_clk)) { in timer_get_base_and_rate() 56 ret = PTR_ERR(timer_clk); in timer_get_base_and_rate() 60 ret = clk_prepare_enable(timer_clk); in timer_get_base_and_rate() 64 *rate = clk_get_rate(timer_clk); in timer_get_base_and_rate() 73 clk_disable_unprepare(timer_clk); in timer_get_base_and_rate() 75 clk_put(timer_clk); in timer_get_base_and_rate()
|
H A D | timer-armada-370-xp.c | 77 static unsigned int timer_clk; variable 194 clockevents_config_and_register(evt, timer_clk, 1, 0xfffffffe); in armada_370_xp_timer_starting_cpu() 273 ticks_per_jiffy = (timer_clk + HZ / 2) / HZ; in armada_370_xp_timer_common_init() 286 armada_370_delay_timer.freq = timer_clk; in armada_370_xp_timer_common_init() 292 sched_clock_register(armada_370_xp_read_sched_clock, 32, timer_clk); in armada_370_xp_timer_common_init() 296 timer_clk, 300, 32, clocksource_mmio_readl_down); in armada_370_xp_timer_common_init() 347 timer_clk = clk_get_rate(clk); in armada_xp_timer_init() 364 timer_clk = clk_get_rate(clk); in armada_375_timer_init() 383 timer_clk = clk_get_rate(clk) / TIMER_DIVIDER; in armada_375_timer_init() 407 timer_clk = clk_get_rate(clk) / TIMER_DIVIDER; in armada_370_timer_init()
|
H A D | timer-rockchip.c | 130 struct clk *timer_clk; in rk_timer_probe() local 160 timer_clk = of_clk_get_by_name(np, "timer"); in rk_timer_probe() 161 if (IS_ERR(timer_clk)) { in rk_timer_probe() 162 ret = PTR_ERR(timer_clk); in rk_timer_probe() 167 ret = clk_prepare_enable(timer_clk); in rk_timer_probe() 172 timer->clk = timer_clk; in rk_timer_probe() 174 timer->freq = clk_get_rate(timer_clk); in rk_timer_probe() 189 clk_disable_unprepare(timer_clk); in rk_timer_probe()
|
/openbmc/linux/arch/arm/boot/dts/nspire/ |
H A D | nspire.dtsi | 38 timer_clk: timer_clk { label 157 clocks = <&timer_clk>, <&timer_clk>, 158 <&timer_clk>; 166 clocks = <&timer_clk>, <&timer_clk>, 167 <&timer_clk>;
|
/openbmc/u-boot/arch/mips/dts/ |
H A D | brcm,bcm63268.dtsi | 67 timer_clk: timer-clk { label 208 clocks = <&periph_clk BCM63268_CLK_USBH>, <&timer_clk BCM63268_TCLK_USB_REF>; 242 <&timer_clk BCM63268_TCLK_EPHY1>, 243 <&timer_clk BCM63268_TCLK_EPHY2>, 244 <&timer_clk BCM63268_TCLK_EPHY3>, 245 <&timer_clk BCM63268_TCLK_GPHY>;
|
/openbmc/linux/Documentation/devicetree/bindings/timer/ |
H A D | lsi,zevio-timer.txt | 24 clocks = <&timer_clk>; 32 clocks = <&timer_clk>;
|
H A D | snps,dw-apb-timer.yaml | 66 clocks = <&timer_clk>, <&timer_pclk>; 74 clocks = <&timer_clk>;
|
/openbmc/u-boot/drivers/timer/ |
H A D | timer-uclass.c | 47 struct clk timer_clk; in timer_pre_probe() local 51 err = clk_get_by_index(dev, 0, &timer_clk); in timer_pre_probe() 53 ret = clk_get_rate(&timer_clk); in timer_pre_probe()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | cevt-txx9.c | 23 #define TIMER_CLK(imclk) ((imclk) / (2 << TIMER_CCD)) macro 60 clocksource_register_hz(&txx9_clocksource.cs, TIMER_CLK(imbusclk)); in txx9_clocksource_init() 72 TIMER_CLK(imbusclk)); in txx9_clocksource_init() 189 clockevent_set_clock(cd, TIMER_CLK(imbusclk)); in txx9_clockevent_init()
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | brcm,bcm63268-timer-clocks.yaml | 35 timer_clk: clock-controller@100000ac {
|
/openbmc/linux/Documentation/devicetree/bindings/dma/ |
H A D | st,stm32-dmamux.yaml | 50 clocks = <&timer_clk>;
|
H A D | st,stm32-mdma.yaml | 98 clocks = <&timer_clk>;
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H A D | st,stm32-lptimer.yaml | 120 clocks = <&timer_clk>;
|
/openbmc/linux/drivers/clk/actions/ |
H A D | owl-s500.c | 193 static OWL_GATE(timer_clk, "timer_clk", "hosc", CMU_DEVCLKEN1, 27, 0, 0); 418 &timer_clk.common, 478 [CLK_TIMER] = &timer_clk.common.hw,
|
H A D | owl-s900.c | 218 static OWL_GATE(timer_clk, "timer_clk", "hosc", CMU_DEVCLKEN1, 27, 0, 0); 526 &timer_clk.common, 619 [CLK_TIMER] = &timer_clk.common.hw,
|
/openbmc/linux/drivers/clk/mmp/ |
H A D | clk-of-pxa168.c | 199 …{PXA168_CLK_TIMER, "timer_clk", "timer_mux", CLK_SET_RATE_PARENT, APBC_TIMER, 0x3, 0x3, 0x0, 0, &t…
|
H A D | clk-of-mmp2.c | 273 …{MMP2_CLK_TIMER, "timer_clk", "timer_mux", CLK_SET_RATE_PARENT, APBC_TIMER, 0x7, 0x3, 0x0, 0, &tim…
|
/openbmc/linux/drivers/clk/rockchip/ |
H A D | clk-rv1108.c | 684 GATE(0, "timer_clk", "xin24m", CLK_IGNORE_UNUSED,
|