mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 04:32:03 +00:00
13d5e27a44
Using a device_initcall() for initializing the voltage regulator on DA850 is not such a good idea because it gets called for all platforms - even those who do not have a regulator implemented. This leads to a big fat warning message during boot-up when regulator cannot be found. Instead, tie initialization of voltage regulator to cpufreq init. Define a platform specific init call which in case of DA850 gets used for initializing the regulator. On other future platforms it can be used for other purposes. Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
27 lines
806 B
C
27 lines
806 B
C
/*
|
|
* TI DaVinci CPUFreq platform support.
|
|
*
|
|
* Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation version 2.
|
|
*
|
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
|
* kind, whether express or implied; without even the implied warranty
|
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
#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);
|
|
};
|
|
|
|
#endif
|