Lines Matching defs:regmap

15 #include <linux/regmap.h>
45 struct regmap *regmap;
56 regmap_read(data->regmap, data->offset + SNVS_LPSRTCMR, &msb);
57 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &lsb);
94 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count1);
97 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count1);
139 regmap_update_bits(data->regmap, data->offset + SNVS_LPCR, SNVS_LPCR_SRTC_ENV,
143 regmap_read(data->regmap, data->offset + SNVS_LPCR, &lpcr);
199 regmap_write(data->regmap, data->offset + SNVS_LPSRTCLR, time << CNTR_TO_SECS_SH);
200 regmap_write(data->regmap, data->offset + SNVS_LPSRTCMR, time >> (32 - CNTR_TO_SECS_SH));
223 regmap_read(data->regmap, data->offset + SNVS_LPTAR, &lptar);
226 regmap_read(data->regmap, data->offset + SNVS_LPSR, &lpsr);
246 regmap_update_bits(data->regmap, data->offset + SNVS_LPCR,
270 regmap_update_bits(data->regmap, data->offset + SNVS_LPCR, SNVS_LPCR_LPTA_EN, 0);
274 regmap_write(data->regmap, data->offset + SNVS_LPTAR, time);
277 regmap_write(data->regmap, data->offset + SNVS_LPSR, SNVS_LPSR_LPTA);
303 regmap_read(data->regmap, data->offset + SNVS_LPSR, &lpsr);
315 regmap_write(data->regmap, data->offset + SNVS_LPSR, lpsr);
349 data->regmap = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, "regmap");
351 if (IS_ERR(data->regmap)) {
358 data->regmap = devm_regmap_init_mmio(&pdev->dev, mmio, &snvs_rtc_config);
364 if (IS_ERR(data->regmap)) {
392 regmap_write(data->regmap, data->offset + SNVS_LPPGDR, SNVS_LPPGDR_INIT);
395 regmap_write(data->regmap, data->offset + SNVS_LPSR, 0xffffffff);