clk-fhctl.h 656 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2022 MediaTek Inc.
  4. * Author: Edward-JW Yang <edward-jw.yang@mediatek.com>
  5. */
  6. #ifndef __CLK_FHCTL_H
  7. #define __CLK_FHCTL_H
  8. #include "clk-pllfh.h"
  9. enum fhctl_variant {
  10. FHCTL_PLLFH_V1,
  11. FHCTL_PLLFH_V2,
  12. };
  13. struct fhctl_offset {
  14. u32 offset_hp_en;
  15. u32 offset_clk_con;
  16. u32 offset_rst_con;
  17. u32 offset_slope0;
  18. u32 offset_slope1;
  19. u32 offset_cfg;
  20. u32 offset_updnlmt;
  21. u32 offset_dds;
  22. u32 offset_dvfs;
  23. u32 offset_mon;
  24. };
  25. const struct fhctl_offset *fhctl_get_offset_table(enum fhctl_variant v);
  26. const struct fh_operation *fhctl_get_ops(void);
  27. void fhctl_hw_init(struct mtk_fh *fh);
  28. #endif