msm_cvp_clocks.h 929 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _MSM_CVP_CLOCKS_H_
  6. #define _MSM_CVP_CLOCKS_H_
  7. #include "msm_cvp_internal.h"
  8. #include "cvp_core_hfi.h"
  9. int msm_cvp_set_clocks(struct msm_cvp_core *core);
  10. int msm_cvp_mmrm_register(struct iris_hfi_device *device);
  11. int msm_cvp_mmrm_deregister(struct iris_hfi_device *device);
  12. int msm_cvp_mmrm_set_value_in_range(struct iris_hfi_device *device,
  13. u32 freq_min, u32 freq_cur);
  14. int msm_cvp_set_clocks_impl(struct iris_hfi_device *device, u32 freq);
  15. int msm_cvp_scale_clocks(struct iris_hfi_device *device);
  16. int msm_cvp_prepare_enable_clk(struct iris_hfi_device *device,
  17. const char *name);
  18. int msm_cvp_disable_unprepare_clk(struct iris_hfi_device *device,
  19. const char *name);
  20. int msm_cvp_init_clocks(struct iris_hfi_device *device);
  21. void msm_cvp_deinit_clocks(struct iris_hfi_device *device);
  22. #endif