1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * TI DaVinci CPUFreq platform support.
4  *
5  * Copyright (C) 2009 Texas Instruments, Inc. https://www.ti.com/
6  */
7 
8 #ifndef _MACH_DAVINCI_CPUFREQ_H
9 #define _MACH_DAVINCI_CPUFREQ_H
10 
11 #include <linux/cpufreq.h>
12 
13 struct davinci_cpufreq_config {
14 	struct cpufreq_frequency_table *freq_table;
15 	int (*set_voltage)(unsigned int index);
16 	int (*init)(void);
17 };
18 
19 #ifdef CONFIG_CPU_FREQ
20 int davinci_cpufreq_init(void);
21 #else
davinci_cpufreq_init(void)22 static inline int davinci_cpufreq_init(void) { return 0; }
23 #endif
24 
25 #endif /* _MACH_DAVINCI_CPUFREQ_H */
26