2023-08-30 17:31:07 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* TI DaVinci CPUFreq platform support.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2009 Texas Instruments, Inc. https://www.ti.com/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MACH_DAVINCI_CPUFREQ_H
|
|
|
|
#define _MACH_DAVINCI_CPUFREQ_H
|
|
|
|
|
|
|
|
#include <linux/cpufreq.h>
|
|
|
|
|
|
|
|
struct davinci_cpufreq_config {
|
|
|
|
struct cpufreq_frequency_table *freq_table;
|
|
|
|
int (*set_voltage)(unsigned int index);
|
|
|
|
int (*init)(void);
|
|
|
|
};
|
|
|
|
|
2023-10-24 12:59:35 +02:00
|
|
|
#ifdef CONFIG_CPU_FREQ
|
|
|
|
int davinci_cpufreq_init(void);
|
|
|
|
#else
|
|
|
|
static inline int davinci_cpufreq_init(void) { return 0; }
|
|
|
|
#endif
|
|
|
|
|
2023-08-30 17:31:07 +02:00
|
|
|
#endif /* _MACH_DAVINCI_CPUFREQ_H */
|