diff options
author | Gabriel Fernandez <gabriel.fernandez@foss.st.com> | 2023-12-08 15:36:57 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-12-17 15:33:26 -0800 |
commit | 30500c2ad9c440d1a81e7a5dac3bcef62e21d910 (patch) | |
tree | 8d0acc4e88aa4ed58b2420286838cfb45885d45f /drivers/clk/stm32/clk-stm32mp13.c | |
parent | 3ac7ca599515d335a55009c9c1016f244ef82a79 (diff) | |
download | linux-30500c2ad9c440d1a81e7a5dac3bcef62e21d910.tar.gz linux-30500c2ad9c440d1a81e7a5dac3bcef62e21d910.tar.bz2 linux-30500c2ad9c440d1a81e7a5dac3bcef62e21d910.zip |
clk: stm32mp1: use stm32mp13 reset driver
STM32MP15 is now using the same reset driver as STM32MP13 as they
have the same binding requirement.
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Link: https://lore.kernel.org/r/20231208143700.354785-3-gabriel.fernandez@foss.st.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/stm32/clk-stm32mp13.c')
-rw-r--r-- | drivers/clk/stm32/clk-stm32mp13.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/clk/stm32/clk-stm32mp13.c b/drivers/clk/stm32/clk-stm32mp13.c index c4a737482fe5..d4ecb3c34a1b 100644 --- a/drivers/clk/stm32/clk-stm32mp13.c +++ b/drivers/clk/stm32/clk-stm32mp13.c @@ -10,8 +10,10 @@ #include <linux/platform_device.h> #include <dt-bindings/clock/stm32mp13-clks.h> #include "clk-stm32-core.h" +#include "reset-stm32.h" #include "stm32mp13_rcc.h" +#define STM32MP1_RESET_ID_MASK GENMASK(15, 0) #define RCC_CLR_OFFSET 0x4 /* STM32 Gates definition */ @@ -1511,13 +1513,18 @@ static struct clk_stm32_clock_data stm32mp13_clock_data = { .is_multi_mux = stm32mp13_is_multi_mux, }; +static struct clk_stm32_reset_data stm32mp13_reset_data = { + .nr_lines = STM32MP1_RESET_ID_MASK, + .clear_offset = RCC_CLR_OFFSET, +}; + static const struct stm32_rcc_match_data stm32mp13_data = { .tab_clocks = stm32mp13_clock_cfg, .num_clocks = ARRAY_SIZE(stm32mp13_clock_cfg), .clock_data = &stm32mp13_clock_data, .check_security = &stm32mp13_clock_is_provided_by_secure, .maxbinding = STM32MP1_LAST_CLK, - .clear_offset = RCC_CLR_OFFSET, + .reset_data = &stm32mp13_reset_data, }; static const struct of_device_id stm32mp13_match_data[] = { |