summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-bq32k.c
diff options
context:
space:
mode:
authorAmelie Delaunay <amelie.delaunay@st.com>2018-04-19 15:21:43 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-05-06 22:22:43 +0200
commit22cb47c1ea2040c0424073c9d67dd0e644334a7c (patch)
tree6078b76a0a0cc61e097defb823f1ffe7f51d8ca9 /drivers/rtc/rtc-bq32k.c
parentdeb7dcfbf00ccdf0d7fadfa4fa18adacef2b8b7a (diff)
downloadlinux-22cb47c1ea2040c0424073c9d67dd0e644334a7c.tar.bz2
rtc: stm32: get DBP register and mask from DT st, syscfg property
RTC driver should not be aware of the PWR registers offset and bits position. Furthermore, we can imagine that DBP relative register and bit mask could change depending on the SoC. So this patch introduces 2 parameters, dbp_reg and dbp_mask, allowing to get PWR_CR and PWR_CR_DBP from device tree. And it prepares next RTC version, backup domain write protection is disabled only if needed. Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-bq32k.c')
0 files changed, 0 insertions, 0 deletions