crg.h 559 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * HiSilicon Clock and Reset Driver Header
  4. *
  5. * Copyright (c) 2016 HiSilicon Limited.
  6. */
  7. #ifndef __HISI_CRG_H
  8. #define __HISI_CRG_H
  9. struct hisi_clock_data;
  10. struct hisi_reset_controller;
  11. struct hisi_crg_funcs {
  12. struct hisi_clock_data* (*register_clks)(struct platform_device *pdev);
  13. void (*unregister_clks)(struct platform_device *pdev);
  14. };
  15. struct hisi_crg_dev {
  16. struct hisi_clock_data *clk_data;
  17. struct hisi_reset_controller *rstc;
  18. const struct hisi_crg_funcs *funcs;
  19. };
  20. #endif /* __HISI_CRG_H */