xref: /linux/drivers/clk/stm32/reset-stm32.h (revision 30500c2ad9c440d1a81e7a5dac3bcef62e21d910)
1637cee5fSGabriel Fernandez /* SPDX-License-Identifier: GPL-2.0  */
2637cee5fSGabriel Fernandez /*
3637cee5fSGabriel Fernandez  * Copyright (C) STMicroelectronics 2022 - All Rights Reserved
4637cee5fSGabriel Fernandez  * Author: Gabriel Fernandez <gabriel.fernandez@foss.st.com> for STMicroelectronics.
5637cee5fSGabriel Fernandez  */
6637cee5fSGabriel Fernandez 
7*30500c2aSGabriel Fernandez struct clk_stm32_reset_data {
8*30500c2aSGabriel Fernandez 	const struct reset_control_ops *ops;
9*30500c2aSGabriel Fernandez 	unsigned int nr_lines;
10*30500c2aSGabriel Fernandez 	u32 clear_offset;
11*30500c2aSGabriel Fernandez };
12*30500c2aSGabriel Fernandez 
13*30500c2aSGabriel Fernandez int stm32_rcc_reset_init(struct device *dev, struct clk_stm32_reset_data *data,
14637cee5fSGabriel Fernandez 			 void __iomem *base);
15