Home
last modified time | relevance | path

Searched refs:ltq_cgu_r32 (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/arch/mips/lantiq/xway/
Dclk.c22 #define DDR_HZ ram_clocks[ltq_cgu_r32(CGU_SYS) & 0x3]
35 if (ltq_cgu_r32(CGU_SYS) & 0x40) in ltq_danube_fpi_hz()
42 switch (ltq_cgu_r32(CGU_SYS) & 0xc) { in ltq_danube_cpu_hz()
56 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 7) & 3; in ltq_danube_pp32_hz()
79 if (((ltq_cgu_r32(CGU_SYS) >> 3) & 0x3) == 0x2) in ltq_ar9_sys_hz()
88 if (ltq_cgu_r32(CGU_SYS) & BIT(0)) in ltq_ar9_fpi_hz()
96 if (ltq_cgu_r32(CGU_SYS) & BIT(2)) in ltq_ar9_cpu_hz()
107 cpu_sel = (ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0xf; in ltq_vr9_cpu_hz()
148 ocp_sel = ltq_cgu_r32(CGU_SYS_XRX) & 0x3; in ltq_vr9_fpi_hz()
177 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 16) & 0x7; in ltq_vr9_pp32_hz()
[all …]
Dsysctrl.c191 ltq_cgu_w32(ltq_cgu_r32(ifccr) | clk->bits, ifccr); in cgu_enable()
198 ltq_cgu_w32(ltq_cgu_r32(ifccr) & ~clk->bits, ifccr); in cgu_disable()
252 unsigned int val = ltq_cgu_r32(ifccr); in usb_set_clock()
272 unsigned int val = ltq_cgu_r32(ifccr); in pci_enable()
296 ltq_cgu_w32(ltq_cgu_r32(ifccr) & ~(1 << 16), ifccr); in pci_ext_enable()
304 ltq_cgu_w32(ltq_cgu_r32(ifccr) | (1 << 16), ifccr); in pci_ext_disable()
318 unsigned int val = ltq_cgu_r32(ifccr); in clkout_enable()
526 if (ltq_cgu_r32(CGU_SYS) & (1 << 5)) in ltq_soc_init()
/linux-6.12.1/drivers/hwmon/
Dltq-cputemp.c24 ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) | CGU_TEMP_PD, CGU_GPHY1_CR); in ltq_cputemp_enable()
29 ltq_cgu_w32(ltq_cgu_r32(CGU_GPHY1_CR) & ~CGU_TEMP_PD, CGU_GPHY1_CR); in ltq_cputemp_disable()
40 value = (ltq_cgu_r32(CGU_GPHY1_CR) >> 9) & 0x01FF; in ltq_read()
/linux-6.12.1/arch/mips/include/asm/mach-lantiq/xway/
Dlantiq_soc.h71 #define ltq_cgu_r32(x) ltq_r32(ltq_cgu_membase + (x)) macro