Home
last modified time | relevance | path

Searched full:timer_clk (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/drivers/clocksource/
H A Dmxs_timer.c162 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 Ddw_apb_timer_of.c20 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 Dtimer-armada-370-xp.c77 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 Dtimer-rockchip.c130 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 Dnspire.dtsi38 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 Dbrcm,bcm63268.dtsi67 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 Dlsi,zevio-timer.txt24 clocks = <&timer_clk>;
32 clocks = <&timer_clk>;
H A Dsnps,dw-apb-timer.yaml66 clocks = <&timer_clk>, <&timer_pclk>;
74 clocks = <&timer_clk>;
/openbmc/u-boot/drivers/timer/
H A Dtimer-uclass.c47 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 Dcevt-txx9.c23 #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 Dbrcm,bcm63268-timer-clocks.yaml35 timer_clk: clock-controller@100000ac {
/openbmc/linux/Documentation/devicetree/bindings/dma/
H A Dst,stm32-dmamux.yaml50 clocks = <&timer_clk>;
H A Dst,stm32-mdma.yaml98 clocks = <&timer_clk>;
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dst,stm32-lptimer.yaml120 clocks = <&timer_clk>;
/openbmc/linux/drivers/clk/actions/
H A Dowl-s500.c193 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 Dowl-s900.c218 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 Dclk-of-pxa168.c199 …{PXA168_CLK_TIMER, "timer_clk", "timer_mux", CLK_SET_RATE_PARENT, APBC_TIMER, 0x3, 0x3, 0x0, 0, &t…
H A Dclk-of-mmp2.c273 …{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 Dclk-rv1108.c684 GATE(0, "timer_clk", "xin24m", CLK_IGNORE_UNUSED,