cpufreq-dt.h 679 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2016 Linaro
  4. * Viresh Kumar <viresh.kumar@linaro.org>
  5. */
  6. #ifndef __CPUFREQ_DT_H__
  7. #define __CPUFREQ_DT_H__
  8. #include <linux/types.h>
  9. struct cpufreq_policy;
  10. struct cpufreq_dt_platform_data {
  11. bool have_governor_per_policy;
  12. unsigned int (*get_intermediate)(struct cpufreq_policy *policy,
  13. unsigned int index);
  14. int (*target_intermediate)(struct cpufreq_policy *policy,
  15. unsigned int index);
  16. int (*suspend)(struct cpufreq_policy *policy);
  17. int (*resume)(struct cpufreq_policy *policy);
  18. };
  19. struct platform_device *cpufreq_dt_pdev_register(struct device *dev);
  20. #endif /* __CPUFREQ_DT_H__ */