Commit d6fc87d3 authored by Ben Dooks's avatar Ben Dooks Committed by Ben Dooks

ARM: S3C: CPUFREQ: Move struct s3c_cpufreq_config to cpu-freq-core.h

Move the structure s3c_cpufreq_config from cpu-freq.h to the
less advertised cpu-freq-core.h as it is not needed by anything
outside the core drivers.
Signed-off-by: default avatarBen Dooks <ben@simtec.co.uk>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent ea5fe9ae
...@@ -97,26 +97,6 @@ struct s3c_pllval { ...@@ -97,26 +97,6 @@ struct s3c_pllval {
unsigned long pll_reg; unsigned long pll_reg;
}; };
/**
* struct s3c_cpufreq_config - current cpu frequency configuration
* @freq: The current settings for the core clocks.
* @pll: The PLL table entry for the current PLL settings.
* @divs: The divisor settings for the core clocks.
* @info: The current core driver information.
* @board: The information for the board we are running on.
*
* This is for the core drivers that need to know information about
* the current settings and values. It should not be needed by any
* device drivers.
*/
struct s3c_cpufreq_config {
struct s3c_freq freq;
struct s3c_pllval pll;
struct s3c_clkdivs divs;
struct s3c_cpufreq_info *info; /* for core, not drivers */
struct s3c_cpufreq_board *board;
};
/** /**
* struct s3c_cpufreq_board - per-board cpu frequency informatin * struct s3c_cpufreq_board - per-board cpu frequency informatin
* @refresh: The SDRAM refresh period in nanoseconds. * @refresh: The SDRAM refresh period in nanoseconds.
......
...@@ -64,6 +64,31 @@ struct s3c_plltab { ...@@ -64,6 +64,31 @@ struct s3c_plltab {
int size; int size;
}; };
/**
* struct s3c_cpufreq_config - current cpu frequency configuration
* @freq: The current settings for the core clocks.
* @max: Maxium settings, derived from core, board and user settings.
* @pll: The PLL table entry for the current PLL settings.
* @divs: The divisor settings for the core clocks.
* @info: The current core driver information.
* @board: The information for the board we are running on.
* @lock_pll: Set if the PLL settings cannot be changed.
*
* This is for the core drivers that need to know information about
* the current settings and values. It should not be needed by any
* device drivers.
*/
struct s3c_cpufreq_config {
struct s3c_freq freq;
struct s3c_freq max;
struct cpufreq_frequency_table pll;
struct s3c_clkdivs divs;
struct s3c_cpufreq_info *info; /* for core, not drivers */
struct s3c_cpufreq_board *board;
unsigned int lock_pll:1;
};
/** /**
* struct s3c_cpufreq_info - Information for the CPU frequency driver. * struct s3c_cpufreq_info - Information for the CPU frequency driver.
* @name: The name of this implementation. * @name: The name of this implementation.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment