]> git.ipfire.org Git - thirdparty/linux.git/commit
rtc: zynqmp: use dynamic max and min offset ranges
authorTomas Melin <tomas.melin@vaisala.com>
Thu, 22 Jan 2026 13:53:49 +0000 (13:53 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Jan 2026 15:44:37 +0000 (16:44 +0100)
commit2254383176fc9f15ce54eabc849b36c874efd3aa
tree0130e23348f5a2679d23a70864591ef5bc5035b1
parent9f5af70268d679e710a65e5e1b4259789a848309
rtc: zynqmp: use dynamic max and min offset ranges

Maximum and minimum offsets in ppb that can be handled are dependent on
the rtc clock frequency and what can fit in the 16-bit register field.

Reviewed-by: Harini T <harini.t@amd.com>
Tested-by: Harini T <harini.t@amd.com>
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20260122-zynqmp-rtc-updates-v4-5-d4edb966b499@vaisala.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-zynqmp.c