brintos

brintos / linux-shallow public Read only

0
0
Text · 531 B · f79cad2 Raw
22 lines · c
1/* SPDX-License-Identifier: GPL-2.0  */2/*3 * Copyright (C) STMicroelectronics 2022 - All Rights Reserved4 * Author: Gabriel Fernandez <gabriel.fernandez@foss.st.com> for STMicroelectronics.5 */6 7struct stm32_reset_cfg {8	u16 offset;9	u8 bit_idx;10	bool set_clr;11};12 13struct clk_stm32_reset_data {14	const struct reset_control_ops *ops;15	const struct stm32_reset_cfg **reset_lines;16	unsigned int nr_lines;17	u32 clear_offset;18};19 20int stm32_rcc_reset_init(struct device *dev, struct clk_stm32_reset_data *data,21			 void __iomem *base);22