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);
194 regmap_write(data->regmap, data->offset + SNVS_LPSRTCLR, time << CNTR_TO_SECS_SH);
195 regmap_write(data->regmap, data->offset + SNVS_LPSRTCMR, time >> (32 - CNTR_TO_SECS_SH));
215 regmap_read(data->regmap, data->offset + SNVS_LPTAR, &lptar);
218 regmap_read(data->regmap, data->offset + SNVS_LPSR, &lpsr);
235 regmap_update_bits(data->regmap, data->offset + SNVS_LPCR,
256 regmap_update_bits(data->regmap, data->offset + SNVS_LPCR, SNVS_LPCR_LPTA_EN, 0);
260 regmap_write(data->regmap, data->offset + SNVS_LPTAR, time);
263 regmap_write(data->regmap, data->offset + SNVS_LPSR, SNVS_LPSR_LPTA);
287 regmap_read(data->regmap, data->offset + SNVS_LPSR, &lpsr);
299 regmap_write(data->regmap, data->offset + SNVS_LPSR, lpsr);
331 data->regmap = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, "regmap");
333 if (IS_ERR(data->regmap)) {
340 data->regmap = devm_regmap_init_mmio(&pdev->dev, mmio, &snvs_rtc_config);
346 if (IS_ERR(data->regmap)) {
374 regmap_write(data->regmap, data->offset + SNVS_LPPGDR, SNVS_LPPGDR_INIT);
377 regmap_write(data->regmap, data->offset + SNVS_LPSR, 0xffffffff);