Lines Matching refs:gptu_w32
60 #define gptu_w32(x, y) ltq_w32((x), gptu_membase + (y)) macro
78 gptu_w32(1 << timer, GPTU_IRNCR); in timer_irq_handler()
84 gptu_w32(0x00, GPTU_IRNEN); in gptu_hwinit()
85 gptu_w32(0xff, GPTU_IRNCR); in gptu_hwinit()
86 gptu_w32(CLC_RMC | CLC_SUSPEND, GPTU_CLC); in gptu_hwinit()
91 gptu_w32(0x00, GPTU_IRNEN); in gptu_hwexit()
92 gptu_w32(0xff, GPTU_IRNCR); in gptu_hwexit()
93 gptu_w32(CLC_DISABLE, GPTU_CLC); in gptu_hwexit()
105 gptu_w32(CON_CNT | CON_EDGE_ANY | CON_SYNC | CON_CLK_INT, in gptu_enable()
107 gptu_w32(1, GPTU_RLD(clk->bits)); in gptu_enable()
108 gptu_w32(gptu_r32(GPTU_IRNEN) | BIT(clk->bits), GPTU_IRNEN); in gptu_enable()
109 gptu_w32(RUN_SEN | RUN_RL, GPTU_RUN(clk->bits)); in gptu_enable()
115 gptu_w32(0, GPTU_RUN(clk->bits)); in gptu_disable()
116 gptu_w32(0, GPTU_CON(clk->bits)); in gptu_disable()
117 gptu_w32(0, GPTU_RLD(clk->bits)); in gptu_disable()
118 gptu_w32(gptu_r32(GPTU_IRNEN) & ~BIT(clk->bits), GPTU_IRNEN); in gptu_disable()