reset.h 596 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (c) 2015 HiSilicon Technologies Co., Ltd.
  4. */
  5. #ifndef __HISI_RESET_H
  6. #define __HISI_RESET_H
  7. struct device_node;
  8. struct hisi_reset_controller;
  9. #ifdef CONFIG_RESET_CONTROLLER
  10. struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev);
  11. void hisi_reset_exit(struct hisi_reset_controller *rstc);
  12. #else
  13. static inline
  14. struct hisi_reset_controller *hisi_reset_init(struct platform_device *pdev)
  15. {
  16. return 0;
  17. }
  18. static inline void hisi_reset_exit(struct hisi_reset_controller *rstc)
  19. {}
  20. #endif
  21. #endif /* __HISI_RESET_H */