blob: 28c8af7ec5ef3ad0aa94f43ad9129600ca094329 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Viresh Kumar297a6622016-09-09 16:48:08 +05302/*
3 * Copyright (C) 2016 Linaro
4 * Viresh Kumar <viresh.kumar@linaro.org>
Viresh Kumar297a6622016-09-09 16:48:08 +05305 */
6
7#ifndef __CPUFREQ_DT_H__
8#define __CPUFREQ_DT_H__
9
10#include <linux/types.h>
11
Viresh Kumar67782702018-04-24 15:09:45 +053012struct cpufreq_policy;
13
Viresh Kumar297a6622016-09-09 16:48:08 +053014struct cpufreq_dt_platform_data {
15 bool have_governor_per_policy;
Viresh Kumar67782702018-04-24 15:09:45 +053016
Peng Fan0c868622020-02-19 15:59:53 +080017 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 Kumar67782702018-04-24 15:09:45 +053021 int (*suspend)(struct cpufreq_policy *policy);
22 int (*resume)(struct cpufreq_policy *policy);
Viresh Kumar297a6622016-09-09 16:48:08 +053023};
24
25#endif /* __CPUFREQ_DT_H__ */