Lines Matching refs:gptu_w32
58 #define gptu_w32(x, y) ltq_w32((x), gptu_membase + (y)) macro
76 gptu_w32(1 << timer, GPTU_IRNCR); in timer_irq_handler()
82 gptu_w32(0x00, GPTU_IRNEN); in gptu_hwinit()
83 gptu_w32(0xff, GPTU_IRNCR); in gptu_hwinit()
84 gptu_w32(CLC_RMC | CLC_SUSPEND, GPTU_CLC); in gptu_hwinit()
89 gptu_w32(0x00, GPTU_IRNEN); in gptu_hwexit()
90 gptu_w32(0xff, GPTU_IRNCR); in gptu_hwexit()
91 gptu_w32(CLC_DISABLE, GPTU_CLC); in gptu_hwexit()
103 gptu_w32(CON_CNT | CON_EDGE_ANY | CON_SYNC | CON_CLK_INT, in gptu_enable()
105 gptu_w32(1, GPTU_RLD(clk->bits)); in gptu_enable()
106 gptu_w32(gptu_r32(GPTU_IRNEN) | BIT(clk->bits), GPTU_IRNEN); in gptu_enable()
107 gptu_w32(RUN_SEN | RUN_RL, GPTU_RUN(clk->bits)); in gptu_enable()
113 gptu_w32(0, GPTU_RUN(clk->bits)); in gptu_disable()
114 gptu_w32(0, GPTU_CON(clk->bits)); in gptu_disable()
115 gptu_w32(0, GPTU_RLD(clk->bits)); in gptu_disable()
116 gptu_w32(gptu_r32(GPTU_IRNEN) & ~BIT(clk->bits), GPTU_IRNEN); in gptu_disable()