Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (c) 2013, The Linux Foundation. All rights reserved.
0004  */
0005 
0006 #ifndef __QCOM_CLK_RESET_H__
0007 #define __QCOM_CLK_RESET_H__
0008 
0009 #include <linux/reset-controller.h>
0010 
0011 struct qcom_reset_map {
0012     unsigned int reg;
0013     u8 bit;
0014 };
0015 
0016 struct regmap;
0017 
0018 struct qcom_reset_controller {
0019     const struct qcom_reset_map *reset_map;
0020     struct regmap *regmap;
0021     struct reset_controller_dev rcdev;
0022 };
0023 
0024 #define to_qcom_reset_controller(r) \
0025     container_of(r, struct qcom_reset_controller, rcdev);
0026 
0027 extern const struct reset_control_ops qcom_reset_ops;
0028 
0029 #endif