Lines Matching refs:peripheral
65 struct regmap *peripheral; /* peripheral registers */
70 .name = "peripheral-registers",
83 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SCLK, 0);
85 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SCLK,
91 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI,
109 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN, 0);
110 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI, 0);
112 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI, 0);
124 regmap_read(rtc->peripheral, RTC_ADDR1, &tmp);
138 regmap_update_bits(rtc->peripheral, RTC_ADDR0, val, 0);
142 if (!regmap_read_poll_timeout(rtc->peripheral, RTC_ADDR1, val,
168 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN,
187 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN,
214 regmap_write(rtc->peripheral, RTC_REG4,
219 regmap_update_bits(rtc->peripheral, RTC_ADDR0,
223 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);