summaryrefslogblamecommitdiff
path: root/include/linux/platform_data/davinci-cpufreq.h
blob: 1ef91c36f609cc71945717133f9d1b3989c88643 (plain) (tree)
1
2
3
4
5



                                       
                                                                 












                                                   





                                                          
                                    
/* 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);
};

#ifdef CONFIG_CPU_FREQ
int davinci_cpufreq_init(void);
#else
static inline int davinci_cpufreq_init(void) { return 0; }
#endif

#endif /* _MACH_DAVINCI_CPUFREQ_H */