2 * Copyright (c) 2016 Maxime Ripard. All rights reserved.
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.
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.
17 #include <linux/reset-controller.h>
18 #include <linux/spinlock.h>
20 struct ccu_reset_map
{
28 struct ccu_reset_map
*reset_map
;
31 struct reset_controller_dev rcdev
;
34 static inline struct ccu_reset
*rcdev_to_ccu_reset(struct reset_controller_dev
*rcdev
)
36 return container_of(rcdev
, struct ccu_reset
, rcdev
);
39 extern const struct reset_control_ops ccu_reset_ops
;
41 #endif /* _CCU_RESET_H_ */