Searched refs:alchemy_rdsys (Results 1 – 13 of 13) sorted by relevance
37 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()
57 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()
131 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 …]
440 if (!(alchemy_rdsys(AU1000_SYS_PINFUNC) & SYS_PF_NI2)) { in alchemy_setup_macs()
392 wakemsk = alchemy_rdsys(AU1000_SYS_WAKEMSK); in au1x_ic1_setwake()
35 t = alchemy_rdsys(AU1000_SYS_TOYREAD); in au1xtoy_rtc_read_time()53 while (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_C0S) in au1xtoy_rtc_set_time()69 t = alchemy_rdsys(AU1000_SYS_CNTRCTRL); in au1xtoy_rtc_probe()76 if (alchemy_rdsys(AU1000_SYS_TOYTRIM) != 32767) { in au1xtoy_rtc_probe()79 while ((alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_T0S) && --t) in au1xtoy_rtc_probe()95 while (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_C0S) in au1xtoy_rtc_probe()
55 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()
827 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1200_dev_setup()872 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PINFUNC_P0A; in db1200_dev_setup()
473 pfc = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1000_dev_setup()
41 v = alchemy_rdsys(AU1000_SYS_PINFUNC); in db1550_hw_setup()
60 pin_func = alchemy_rdsys(AU1000_SYS_PINFUNC) & ~SYS_PF_UR3; in board_setup()
228 return alchemy_rdsys(AU1000_SYS_PINSTATERD) & mask; in alchemy_gpio1_get_value()
601 static inline unsigned long alchemy_rdsys(int regofs) in alchemy_rdsys() function