MLK-25346: rtc: add readonly option to rtc-imx-sc driver
authorNitin Garg <nitin.garg@nxp.com>
Tue, 23 Mar 2021 20:42:46 +0000 (15:42 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Fri, 9 Apr 2021 14:35:31 +0000 (09:35 -0500)
commit0b8be44a9338484c8aa62da03c4af7d0338c6b1b
treee008c4bfea8cf5d85b496c9f64ed984a879cc49b
parent1730a5e196055cef89fe50dd63852ebc32cce135
MLK-25346: rtc: add readonly option to rtc-imx-sc driver

Setting RTC time requires ownership of SCU's SYSTEM
resource. Add an 'readonly' option to the driver to
allow usage of the RTC even without owning the SYSTEM
resource. In that case, time setting is not allowed.

Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
Signed-off-by: Nitin Garg <nitin.garg@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt
drivers/rtc/rtc-imx-sc.c