1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2013, The Linux Foundation. All rights reserved.
4  */
5 
6 #ifndef __QCOM_CLK_RESET_H__
7 #define __QCOM_CLK_RESET_H__
8 
9 #include <linux/reset-controller.h>
10 
11 struct qcom_reset_map {
12 	unsigned int reg;
13 	u8 bit;
14 	u8 udelay;
15 };
16 
17 struct regmap;
18 
19 struct qcom_reset_controller {
20 	const struct qcom_reset_map *reset_map;
21 	struct regmap *regmap;
22 	struct reset_controller_dev rcdev;
23 };
24 
25 #define to_qcom_reset_controller(r) \
26 	container_of(r, struct qcom_reset_controller, rcdev);
27 
28 extern const struct reset_control_ops qcom_reset_ops;
29 
30 #endif
31