Home
last modified time | relevance | path

Searched refs:timebase (Results 1 – 25 of 108) sorted by relevance

12345

/linux/arch/powerpc/boot/
H A Dpq2.c29 u32 *timebase, u32 *brgfreq) in pq2_get_clocks() argument
55 if (timebase) in pq2_get_clocks()
56 *timebase = busclk / 4; in pq2_get_clocks()
75 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq) in pq2_set_clocks() argument
79 dt_fixup_cpu_clocks(corefreq, timebase, sysfreq); in pq2_set_clocks()
92 u32 sysfreq, corefreq, timebase, brgfreq; in pq2_fixup_clocks() local
94 if (!pq2_get_clocks(crystal, &sysfreq, &corefreq, &timebase, &brgfreq)) in pq2_fixup_clocks()
97 pq2_set_clocks(sysfreq, corefreq, timebase, brgfreq); in pq2_fixup_clocks()
H A Dsimpleboot.c28 const u32 *na, *ns, *reg, *timebase; in platform_init() local
73 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); in platform_init()
74 if (timebase && (size == 4)) in platform_init()
75 timebase_period_ns = 1000000000 / *timebase; in platform_init()
H A Dtreeboot-currituck.c85 const u32 *timebase; in platform_init() local
107 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); in platform_init()
108 if (timebase && (size == 4)) in platform_init()
109 timebase_period_ns = 1000000000 / *timebase; in platform_init()
H A Dtreeboot-akebono.c98 const u32 *timebase; in platform_init() local
151 timebase = fdt_getprop(_dtb_start, node, "timebase-frequency", &size); in platform_init()
152 if (timebase && (size == 4)) in platform_init()
153 timebase_period_ns = 1000000000 / *timebase; in platform_init()
H A Dpq2.h8 u32 *timebase, u32 *brgfreq);
9 void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq);
/linux/arch/powerpc/platforms/pasemi/
H A Dsetup.c102 static unsigned long timebase; variable
113 timebase = get_tb(); in pas_give_timebase()
116 while (timebase) in pas_give_timebase()
124 while (!timebase) in pas_take_timebase()
128 set_tb(timebase >> 32, timebase & 0xffffffff); in pas_take_timebase()
129 timebase = 0; in pas_take_timebase()
/linux/drivers/pwm/
H A Dpwm-img.c92 u32 val, div, duty, timebase; in img_pwm_config() local
110 timebase = DIV_ROUND_UP(mul, 1); in img_pwm_config()
113 timebase = DIV_ROUND_UP(mul, 8); in img_pwm_config()
116 timebase = DIV_ROUND_UP(mul, 64); in img_pwm_config()
119 timebase = DIV_ROUND_UP(mul, 512); in img_pwm_config()
126 duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); in img_pwm_config()
139 (timebase << PWM_CH_CFG_TMBASE_SHIFT); in img_pwm_config()
/linux/drivers/isdn/mISDN/
H A Dl1oip_core.c266 u16 timebase, u8 *buf, int len) in l1oip_socket_send() argument
307 *p++ = timebase >> 8; /* time base */ in l1oip_socket_send()
308 *p++ = timebase; in l1oip_socket_send()
351 l1oip_socket_recv(struct l1oip *hc, u8 remotecodec, u8 channel, u16 timebase, in l1oip_socket_recv() argument
409 if (((s16)(timebase - rx_counter)) >= 0) { in l1oip_socket_recv()
411 if (timebase >= (rx_counter & 0xffff)) in l1oip_socket_recv()
413 (rx_counter & 0xffff0000) | timebase; in l1oip_socket_recv()
416 | timebase; in l1oip_socket_recv()
419 if (timebase < (rx_counter & 0xffff)) in l1oip_socket_recv()
421 (rx_counter & 0xffff0000) | timebase; in l1oip_socket_recv()
[all …]
/linux/arch/powerpc/boot/dts/
H A Diss4xx-mpic.dts39 timebase-frequency = <100000000>;
53 timebase-frequency = <100000000>;
69 timebase-frequency = <100000000>;
85 timebase-frequency = <100000000>;
H A Dps3.dts33 * dtc expects a clock-frequency and timebase-frequency entries, so
51 timebase-frequency = <0>;
H A Dgamecube.dts36 timebase-frequency = <40500000>; /* 162MHz / 4 */
H A Dmedia5200.dts29 timebase-frequency = <33000000>; // 33 MHz, these were configured by U-Boot
H A Dstorcenter.dts36 timebase-frequency = <25000000>;
H A Dcurrituck.dts35 timebase-frequency = <100000000>; // 100Mhz
49 timebase-frequency = <100000000>; // 100Mhz
H A Dmicrowatt.dts80 timebase-frequency = <100000000>;
H A Diss4xx.dts37 timebase-frequency = <100000000>;
H A Dadder875-redboot.dts33 timebase-frequency = <0>;
/linux/arch/powerpc/boot/dts/fsl/
H A Dmpc8641si-pre.dtsi37 timebase-frequency = <0>;
49 timebase-frequency = <0>;
H A Dmpc8568si-pre.dtsi65 &pmc 0x00004000>; // timebase
H A Dmpc8569si-pre.dtsi64 &pmc 0x00004000>; // timebase
/linux/Documentation/devicetree/bindings/powerpc/opal/
H A Dpower-mgt.txt15 extent of state-loss, whether timebase is stopped on this
45 0x00000002 /* Needs timebase restore */
54 /* timebase (POWER8) */
/linux/arch/riscv/boot/dts/sifive/
H A Dhifive-unleashed-a00.dts22 timebase-frequency = <RTCCLK_FREQ>;
/linux/arch/riscv/boot/dts/allwinner/
H A Dsun20i-d1s.dtsi10 timebase-frequency = <24000000>;
/linux/arch/riscv/boot/dts/renesas/
H A Dr9a07g043f.dtsi18 timebase-frequency = <12000000>;
/linux/Documentation/arch/powerpc/
H A Delf_hwcaps.rst111 The timebase facility (mftb instruction) is not available.
114 required to test this bit before using the timebase.

12345