Stephen Boyd | b36ba30 | 2014-01-15 10:47:27 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * This software is licensed under the terms of the GNU General Public |
| 5 | * License version 2, as published by the Free Software Foundation, and |
| 6 | * may be copied, distributed, and modified under those terms. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef __QCOM_CLK_RESET_H__ |
| 15 | #define __QCOM_CLK_RESET_H__ |
| 16 | |
| 17 | #include <linux/reset-controller.h> |
| 18 | |
| 19 | struct qcom_reset_map { |
| 20 | unsigned int reg; |
| 21 | u8 bit; |
| 22 | }; |
| 23 | |
| 24 | struct regmap; |
| 25 | |
| 26 | struct qcom_reset_controller { |
| 27 | const struct qcom_reset_map *reset_map; |
| 28 | struct regmap *regmap; |
| 29 | struct reset_controller_dev rcdev; |
| 30 | }; |
| 31 | |
| 32 | #define to_qcom_reset_controller(r) \ |
| 33 | container_of(r, struct qcom_reset_controller, rcdev); |
| 34 | |
Philipp Zabel | add479e | 2016-02-25 10:45:12 +0100 | [diff] [blame^] | 35 | extern const struct reset_control_ops qcom_reset_ops; |
Stephen Boyd | b36ba30 | 2014-01-15 10:47:27 -0800 | [diff] [blame] | 36 | |
| 37 | #endif |