helio-dvfsrc_v3.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2019 MediaTek Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
  12. */
  13. #ifndef __HELIO_DVFSRC_V3_H
  14. #define __HELIO_DVFSRC_V3_H
  15. #include "helio-dvfsrc-opp.h"
  16. extern int is_dvfsrc_enabled(void);
  17. extern void dvfsrc_set_power_model_ddr_request(unsigned int level);
  18. /* met profile function */
  19. extern int vcorefs_get_num_opp(void);
  20. extern int vcorefs_get_opp_info_num(void);
  21. extern char **vcorefs_get_opp_info_name(void);
  22. extern unsigned int *vcorefs_get_opp_info(void);
  23. extern int vcorefs_get_src_req_num(void);
  24. extern char **vcorefs_get_src_req_name(void);
  25. extern unsigned int *vcorefs_get_src_req(void);
  26. extern u32 vcorefs_get_md_scenario(void);
  27. extern int get_cur_ddr_ratio(void);
  28. extern int is_dvfsrc_opp_fixed(void);
  29. #endif /* __HELIO_DVFSRC_V3_H */