Searched refs:alchemy_rdsys (Results 1 – 12 of 12) 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()96 if (CNTR_OK != (alchemy_rdsys(AU1000_SYS_CNTRCTRL) & CNTR_OK)) in alchemy_time_init()103 while ((alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_T1S) && --t) in alchemy_time_init()111 while ((alchemy_rdsys(AU1000_SYS_CNTRCTRL) & SYS_CNTRL_C1S) && --t) in alchemy_time_init()118 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()184 return (alchemy_rdsys(a->reg) & 0xff) * parent_rate; in alchemy_clk_aux_recalc()268 unsigned long v = (alchemy_rdsys(AU1000_SYS_POWERCTRL) & 3) + 2; in alchemy_clk_setup_sysbus()490 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_en()501 unsigned long v = alchemy_rdsys(c->reg) >> (c->shift + 1); in alchemy_clk_fgv1_isen()512 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_dis()524 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_setp()539 return (alchemy_rdsys(c->reg) >> c->shift) & 1; in alchemy_clk_fgv1_getp()553 v = alchemy_rdsys(c->reg); in alchemy_clk_fgv1_setr()566 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()
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()
78 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