Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: zynqmp: correct frequency value

Fix calibration value in case a clock reference is provided.
The actual calibration value written into register is
frequency - 1.

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-1-d4edb966b499@vaisala.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Tomas Melin and committed by
Alexandre Belloni
2724fb4d 1932db20

+3
+3
drivers/rtc/rtc-zynqmp.c
··· 345 345 &xrtcdev->freq); 346 346 if (ret) 347 347 xrtcdev->freq = RTC_CALIB_DEF; 348 + } else { 349 + xrtcdev->freq--; 348 350 } 351 + 349 352 ret = readl(xrtcdev->reg_base + RTC_CALIB_RD); 350 353 if (!ret) 351 354 writel(xrtcdev->freq, (xrtcdev->reg_base + RTC_CALIB_WR));