Home
last modified time | relevance | path

Searched refs:alchemy_rdsys (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/arch/mips/alchemy/common/
Dtime.c37 return alchemy_rdsys(AU1000_SYS_RTCREAD); in au1x_counter1_read()
51 delta += alchemy_rdsys(AU1000_SYS_RTCREAD); in au1x_rtcmatch2_set_next_event()
53 while (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_M21) in au1x_rtcmatch2_set_next_event()
89 if (CNTR_OK != (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & CNTR_OK)) in alchemy_time_init()
96 while ((alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_T1S) && --t) in alchemy_time_init()
104 while ((alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_C1S) && --t) in alchemy_time_init()
111 while ((alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_C1S) && --t) in alchemy_time_init()
Dpower.c57 sleep_sys_clocks[0] = alchemy_rdsys(AU1000_SYS_FREQCTRL0); in save_core_regs()
58 sleep_sys_clocks[1] = alchemy_rdsys(AU1000_SYS_FREQCTRL1); in save_core_regs()
59 sleep_sys_clocks[2] = alchemy_rdsys(AU1000_SYS_CLKSRC); in save_core_regs()
60 sleep_sys_clocks[3] = alchemy_rdsys(AU1000_SYS_CPUPLL); in save_core_regs()
61 sleep_sys_clocks[4] = alchemy_rdsys(AU1000_SYS_AUXPLL); in save_core_regs()
64 sleep_sys_pinfunc = alchemy_rdsys(AU1000_SYS_PINFUNC); in save_core_regs()
Dclock.c131 t = alchemy_rdsys(AU1000_SYS_CPUPLL) & 0x7f; in alchemy_clk_cpu_recalc()
191 return (alchemy_rdsys(a->reg) & 0xff) * parent_rate; in alchemy_clk_aux_recalc()
275 unsigned long v = (alchemy_rdsys(AU1000_SYS_POWERCTRL) & 3) + 2; in alchemy_clk_setup_sysbus()
497 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_en()
508 unsigned long v = alchemy_rdsys(c->reg) >> (c->shift + 1); in alchemy_clk_fgv1_isen()
519 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_dis()
531 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_setp()
546 return (alchemy_rdsys(c->reg) >> c->shift) & 1; in alchemy_clk_fgv1_getp()
560 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_setr()
573 unsigned long v = alchemy_rdsys(c->reg) >> (c->shift + 2); in alchemy_clk_fgv1_recalc()
[all …]
Dplatform.c446 if (!(alchemy_rdsys(AU1000_SYS_PINFUNC) & SYS_PF_NI2)) { in alchemy_setup_macs()
Dirq.c392 wakemsk = alchemy_rdsys(AU1000_SYS_WAKEMSK); in au1x_ic1_setwake()
/Linux-v6.6/drivers/rtc/
Drtc-au1xxx.c32 t = alchemy_rdsys(AU1000_SYS_TOYREAD); in au1xtoy_rtc_read_time()
50 while (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_C0S) in au1xtoy_rtc_set_time()
66 t = alchemy_rdsys(AU1000_SYS_CNTRCTRL); in au1xtoy_rtc_probe()
73 if (alchemy_rdsys(AU1000_SYS_TOYTRIM) != 32767) { in au1xtoy_rtc_probe()
76 while ((alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_T0S) && --t) in au1xtoy_rtc_probe()
92 while (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_C0S) in au1xtoy_rtc_probe()
/Linux-v6.6/arch/mips/alchemy/devboards/
Dpm.c55 while (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_M20) in db1x_pm_enter()
58 alchemy_wrsys(alchemy_rdsys(AU1000_SYS_TOYREAD) + db1x_pm_sleep_secs, in db1x_pm_enter()
62 while (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_M20) in db1x_pm_enter()
103 db1x_pm_last_wakesrc = alchemy_rdsys(AU1000_SYS_WAKESRC); in db1x_pm_end()
241 if (alchemy_rdsys(AU1000_SYS_TOYTRIM) != 32767) in pm_init()
244 db1x_pm_last_wakesrc = alchemy_rdsys(AU1000_SYS_WAKESRC); in pm_init()
Ddb1200.c818 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1200_dev_setup()
863 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PINFUNC_P0A; in db1200_dev_setup()
Ddb1000.c479 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1000_dev_setup()
Ddb1550.c41 v = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1550_hw_setup()
/Linux-v6.6/arch/mips/alchemy/
Dboard-xxs1500.c61 pin_func = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PF_UR3; in board_setup()
/Linux-v6.6/arch/mips/include/asm/mach-au1x00/
Dgpio-au1000.h228 return alchemy_rdsys(AU1000_SYS_PINSTATERD) & mask; in alchemy_gpio1_get_value()
Dau1000.h601 static inline unsigned long alchemy_rdsys(int regofs) in alchemy_rdsys() function