crg.h 1015 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * HiSilicon Clock and Reset Driver Header
  3. *
  4. * Copyright (c) 2016 HiSilicon Limited.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. */
  16. #ifndef __HISI_CRG_H
  17. #define __HISI_CRG_H
  18. struct hisi_clock_data;
  19. struct hisi_reset_controller;
  20. struct hisi_crg_funcs {
  21. struct hisi_clock_data* (*register_clks)(struct platform_device *pdev);
  22. void (*unregister_clks)(struct platform_device *pdev);
  23. };
  24. struct hisi_crg_dev {
  25. struct hisi_clock_data *clk_data;
  26. struct hisi_reset_controller *rstc;
  27. const struct hisi_crg_funcs *funcs;
  28. };
  29. #endif /* __HISI_CRG_H */