Lines Matching refs:peripheral
66 struct regmap *peripheral; /* peripheral registers */
71 .name = "peripheral-registers",
84 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SCLK, 0);
86 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SCLK,
92 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI,
110 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN, 0);
111 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI, 0);
113 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI, 0);
125 regmap_read(rtc->peripheral, RTC_ADDR1, &tmp);
139 regmap_update_bits(rtc->peripheral, RTC_ADDR0, val, 0);
143 if (!regmap_read_poll_timeout(rtc->peripheral, RTC_ADDR1, val,
169 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN,
188 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN,
215 regmap_write(rtc->peripheral, RTC_REG4,
220 regmap_update_bits(rtc->peripheral, RTC_ADDR0,
224 return regmap_read_poll_timeout(rtc->peripheral, RTC_REG4, tmp,
318 rtc->peripheral = devm_regmap_init_mmio(dev, base,
320 if (IS_ERR(rtc->peripheral)) {
321 dev_err(dev, "failed to create peripheral regmap\n");
322 return PTR_ERR(rtc->peripheral);