diff options
Diffstat (limited to 'drivers/clk/stm32/reset-stm32.h')
| -rw-r--r-- | drivers/clk/stm32/reset-stm32.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/clk/stm32/reset-stm32.h b/drivers/clk/stm32/reset-stm32.h new file mode 100644 index 000000000000..f79cad21dfd6 --- /dev/null +++ b/drivers/clk/stm32/reset-stm32.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) STMicroelectronics 2022 - All Rights Reserved + * Author: Gabriel Fernandez <gabriel.fernandez@foss.st.com> for STMicroelectronics. + */ + +struct stm32_reset_cfg { + u16 offset; + u8 bit_idx; + bool set_clr; +}; + +struct clk_stm32_reset_data { + const struct reset_control_ops *ops; + const struct stm32_reset_cfg **reset_lines; + unsigned int nr_lines; + u32 clear_offset; +}; + +int stm32_rcc_reset_init(struct device *dev, struct clk_stm32_reset_data *data, + void __iomem *base); |
