0001
0002
0003
0004
0005
0006
0007
0008 #ifndef _OWL_RESET_H_
0009 #define _OWL_RESET_H_
0010
0011 #include <linux/reset-controller.h>
0012
0013 struct owl_reset_map {
0014 u32 reg;
0015 u32 bit;
0016 };
0017
0018 struct owl_reset {
0019 struct reset_controller_dev rcdev;
0020 const struct owl_reset_map *reset_map;
0021 struct regmap *regmap;
0022 };
0023
0024 static inline struct owl_reset *to_owl_reset(struct reset_controller_dev *rcdev)
0025 {
0026 return container_of(rcdev, struct owl_reset, rcdev);
0027 }
0028
0029 extern const struct reset_control_ops owl_reset_ops;
0030
0031 #endif