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

clk: stm32mp1: fix bit width of hse_rtc divider

Fix the bit width of the hse rtc divider because it's off by one.

Fixes: 2c87c9d33117 ("clk: stm32mp1: add RTC clock")
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Gabriel Fernandez and committed by
Stephen Boyd
97621d22 f9b76fd2

+1 -1
+1 -1
drivers/clk/clk-stm32mp1.c
··· 1962 1962 _DIV(RCC_ETHCKSELR, 4, 4, 0, NULL)), 1963 1963 1964 1964 /* RTC clock */ 1965 - DIV(NO_ID, "ck_hse_rtc", "ck_hse", 0, RCC_RTCDIVR, 0, 7, 0), 1965 + DIV(NO_ID, "ck_hse_rtc", "ck_hse", 0, RCC_RTCDIVR, 0, 6, 0), 1966 1966 1967 1967 COMPOSITE(RTC, "ck_rtc", rtc_src, CLK_OPS_PARENT_ENABLE | 1968 1968 CLK_SET_RATE_PARENT,