Yao Zi
00a3b0eb8e
clk: thead: th1520-ap: Correctly handle flags for dividers
...
Unlike the gate clocks which make no use of flags, most dividers in
TH1520 SoC are one-based, thus are applied with CLK_DIVIDER_ONE_BASED
flag. We couldn't simply ignore the flag, which causes wrong results
when calculating the clock rates.
Add a member to ccu_div_internal for defining the flags, and pass it to
divider_recalc_rate(). With this fix, frequency of all the clocks match
the Linux kernel's calculation.
Fixes: e6bfa6fc94 ("clk: thead: Port clock controller driver of TH1520 SoC")
Signed-off-by: Yao Zi <ziyao@disroot.org >
Acked-by: Leo Yu-Chi Liang <ycliang@andestech.com >
2025-07-17 14:37:40 +08:00
..
2025-07-10 08:41:05 -06:00
2025-07-10 08:41:03 -06:00
2024-05-20 13:35:03 -06:00
2024-12-15 11:39:23 -06:00
2025-07-11 11:33:25 -06:00
2025-02-14 10:19:24 -06:00
2025-04-11 12:16:44 -06:00
2025-06-02 18:20:33 +02:00
2025-07-03 18:11:06 +08:00
2025-07-17 14:37:40 +08:00
2025-07-14 15:16:56 -06:00
2025-05-03 16:55:32 -03:00
2025-07-11 11:33:25 -06:00
2025-06-14 09:09:39 -06:00
2024-05-20 13:35:03 -06:00
2025-07-16 10:56:28 -06:00
2025-07-10 08:40:52 -06:00
2024-05-20 13:35:03 -06:00
2025-04-10 09:59:37 +02:00
2025-07-08 14:58:43 +02:00
2025-07-08 14:58:43 +02:00
2024-05-20 13:35:03 -06:00
2025-06-02 17:26:16 -06:00
2025-07-17 14:37:36 +08:00
2024-05-20 13:35:03 -06:00
2025-07-11 11:33:25 -06:00
2025-04-12 09:44:02 +03:00
2025-06-14 09:11:10 -06:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-03-13 14:23:05 -06:00
2025-07-14 15:16:30 -06:00
2025-07-08 14:58:43 +02:00
2025-07-01 10:43:03 -06:00
2025-04-11 12:16:49 -06:00
2025-07-15 09:56:08 -06:00
2025-07-10 08:41:23 -06:00
2024-05-20 13:35:03 -06:00
2025-07-14 15:16:48 -06:00
2025-07-08 16:19:31 -06:00
2025-06-26 13:48:36 -06:00
2025-07-14 12:44:04 -06:00
2025-06-14 09:10:48 -06:00
2025-06-12 16:26:56 -06:00
2025-06-20 12:15:08 -06:00
2025-06-14 09:10:48 -06:00
2024-05-20 13:35:03 -06:00
2025-06-18 12:16:39 -06:00
2025-06-11 09:42:55 +02:00
2025-04-23 22:12:04 +08:00
2025-06-25 13:42:04 -06:00
2025-07-14 15:16:43 -06:00
2025-07-10 08:02:11 -03:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-03 11:37:46 -06:00
2025-06-14 09:09:39 -06:00
2025-07-17 14:37:36 +08:00
2025-04-10 15:43:10 +02:00
2025-02-28 08:41:54 -06:00
2025-05-08 08:30:53 +03:00
2024-07-22 10:53:06 -06:00
2025-04-11 12:16:44 -06:00
2025-06-10 19:30:00 +03:00
2025-04-16 13:42:06 +02:00
2025-06-18 08:05:29 -06:00
2025-06-14 09:10:48 -06:00
2025-06-02 17:26:16 -06:00
2025-07-10 08:02:11 -03:00
2024-05-20 13:35:03 -06:00
2025-07-14 08:54:19 -06:00
2024-05-20 13:35:03 -06:00
2025-04-11 12:16:44 -06:00