reset.h 986 B

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef __QCOM_CLK_RESET_H__
  14. #define __QCOM_CLK_RESET_H__
  15. #include <linux/reset-controller.h>
  16. struct qcom_reset_map {
  17. unsigned int reg;
  18. u8 bit;
  19. };
  20. struct regmap;
  21. struct qcom_reset_controller {
  22. const struct qcom_reset_map *reset_map;
  23. struct regmap *regmap;
  24. struct reset_controller_dev rcdev;
  25. };
  26. #define to_qcom_reset_controller(r) \
  27. container_of(r, struct qcom_reset_controller, rcdev);
  28. extern struct reset_control_ops qcom_reset_ops;
  29. #endif