Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Viresh Kumar | 297a662 | 2016-09-09 16:48:08 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016 Linaro |
| 4 | * Viresh Kumar <viresh.kumar@linaro.org> |
Viresh Kumar | 297a662 | 2016-09-09 16:48:08 +0530 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CPUFREQ_DT_H__ |
| 8 | #define __CPUFREQ_DT_H__ |
| 9 | |
| 10 | #include <linux/types.h> |
| 11 | |
Viresh Kumar | 6778270 | 2018-04-24 15:09:45 +0530 | [diff] [blame] | 12 | struct cpufreq_policy; |
| 13 | |
Viresh Kumar | 297a662 | 2016-09-09 16:48:08 +0530 | [diff] [blame] | 14 | struct cpufreq_dt_platform_data { |
| 15 | bool have_governor_per_policy; |
Viresh Kumar | 6778270 | 2018-04-24 15:09:45 +0530 | [diff] [blame] | 16 | |
Peng Fan | 0c86862 | 2020-02-19 15:59:53 +0800 | [diff] [blame] | 17 | unsigned int (*get_intermediate)(struct cpufreq_policy *policy, |
| 18 | unsigned int index); |
| 19 | int (*target_intermediate)(struct cpufreq_policy *policy, |
| 20 | unsigned int index); |
Viresh Kumar | 6778270 | 2018-04-24 15:09:45 +0530 | [diff] [blame] | 21 | int (*suspend)(struct cpufreq_policy *policy); |
| 22 | int (*resume)(struct cpufreq_policy *policy); |
Viresh Kumar | 297a662 | 2016-09-09 16:48:08 +0530 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | #endif /* __CPUFREQ_DT_H__ */ |