reset.h 604 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2013, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __QCOM_CLK_RESET_H__
  6. #define __QCOM_CLK_RESET_H__
  7. #include <linux/reset-controller.h>
  8. struct qcom_reset_map {
  9. unsigned int reg;
  10. u8 bit;
  11. u8 udelay;
  12. u32 bitmask;
  13. };
  14. struct regmap;
  15. struct qcom_reset_controller {
  16. const struct qcom_reset_map *reset_map;
  17. struct regmap *regmap;
  18. struct reset_controller_dev rcdev;
  19. };
  20. #define to_qcom_reset_controller(r) \
  21. container_of(r, struct qcom_reset_controller, rcdev);
  22. extern const struct reset_control_ops qcom_reset_ops;
  23. #endif