Lines Matching refs:regs
19 struct mxs_lradc_regs *regs = (struct mxs_lradc_regs *)MXS_LRADC_BASE; in mxs_lradc_init() local
23 writel(LRADC_CTRL0_SFTRST, ®s->hw_lradc_ctrl0_clr); in mxs_lradc_init()
24 writel(LRADC_CTRL0_CLKGATE, ®s->hw_lradc_ctrl0_clr); in mxs_lradc_init()
25 writel(LRADC_CTRL0_ONCHIP_GROUNDREF, ®s->hw_lradc_ctrl0_clr); in mxs_lradc_init()
27 clrsetbits_le32(®s->hw_lradc_ctrl3, in mxs_lradc_init()
31 clrsetbits_le32(®s->hw_lradc_ctrl4, in mxs_lradc_init()
40 struct mxs_lradc_regs *regs = (struct mxs_lradc_regs *)MXS_LRADC_BASE; in mxs_lradc_enable_batt_measurement() local
45 if (!(readl(®s->hw_lradc_status) & LRADC_STATUS_CHANNEL7_PRESENT)) { in mxs_lradc_enable_batt_measurement()
52 writel(LRADC_CTRL1_LRADC7_IRQ_EN, ®s->hw_lradc_ctrl1_clr); in mxs_lradc_enable_batt_measurement()
53 writel(LRADC_CTRL1_LRADC7_IRQ, ®s->hw_lradc_ctrl1_clr); in mxs_lradc_enable_batt_measurement()
55 clrsetbits_le32(®s->hw_lradc_conversion, in mxs_lradc_enable_batt_measurement()
58 writel(LRADC_CONVERSION_AUTOMATIC, ®s->hw_lradc_conversion_set); in mxs_lradc_enable_batt_measurement()
62 ®s->hw_lradc_ctrl2_clr); in mxs_lradc_enable_batt_measurement()
63 writel(0xffffffff, ®s->hw_lradc_ch7_clr); in mxs_lradc_enable_batt_measurement()
64 clrbits_le32(®s->hw_lradc_ch7, LRADC_CH_NUM_SAMPLES_MASK); in mxs_lradc_enable_batt_measurement()
65 writel(LRADC_CH_ACCUMULATE, ®s->hw_lradc_ch7_clr); in mxs_lradc_enable_batt_measurement()
68 writel(1 << 7, ®s->hw_lradc_ctrl0_set); in mxs_lradc_enable_batt_measurement()
73 100, ®s->hw_lradc_delay3); in mxs_lradc_enable_batt_measurement()
75 writel(0xffffffff, ®s->hw_lradc_ch7_clr); in mxs_lradc_enable_batt_measurement()
76 writel(LRADC_DELAY_KICK, ®s->hw_lradc_delay3_set); in mxs_lradc_enable_batt_measurement()