summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>2026-08-21 22:10:26 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-08-23 21:23:57 +0200
commitafb8972b9e36cd519bc30fb63081fe9ae96adec2 (patch)
tree5d19f92373c0c638a9ee5f0c6fddd10fb35d7613 /scripts/objdiff
parent6e0d7d480f2df83dba82e2fa8f6cd453e9a8326f (diff)
downloadlinux-next-afb8972b9e36cd519bc30fb63081fe9ae96adec2.tar.gz
linux-next-afb8972b9e36cd519bc30fb63081fe9ae96adec2.zip
rtc: rzn1: Dynamically calculate synchronization delay based on clock rate
Replace the hardcoded hardware synchronization delays with a calculated time window derived from the operating sub-clock frequency. The driver currently hardcodes microsecond ranges assuming a fixed sub-clock frequency of 32.768 kHz. Newer SoC variants, such as the RZ/T2H, drive this hardware block using a much faster clock rate (~195.3 kHz). Hardcoding these wait windows forces faster blocks to over-sleep, introducing unnecessary delays during clock initialization and register configuration. Calculate the duration of the required clock cycles in microseconds based on the runtime clock rate, and store this value in the driver private structure to adjust the usleep_range() and readl_poll_timeout() boundaries dynamically. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://patch.msgid.link/20260821211032.13554-12-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions