Commit ae6816ba authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Lee Jones

mfd: stm32-timers: Fix max register

STM32 timers register bank size is 0x400. Fix regmap max_register.
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Acked-by: default avatarBenjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 118f6523
...@@ -15,7 +15,7 @@ static const struct regmap_config stm32_timers_regmap_cfg = { ...@@ -15,7 +15,7 @@ static const struct regmap_config stm32_timers_regmap_cfg = {
.reg_bits = 32, .reg_bits = 32,
.val_bits = 32, .val_bits = 32,
.reg_stride = sizeof(u32), .reg_stride = sizeof(u32),
.max_register = 0x400, .max_register = 0x3fc,
}; };
static void stm32_timers_get_arr_size(struct stm32_timers *ddata) static void stm32_timers_get_arr_size(struct stm32_timers *ddata)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment