Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
cpu-freq-core.h File Reference
#include <plat/cpu-freq.h>

Go to the source code of this file.

Data Structures

struct  s3c2410_iobank_timing
 
struct  s3c2412_iobank_timing
 
union  s3c_iobank
 
struct  s3c_iotimings
 
struct  s3c_plltab
 
struct  s3c_cpufreq_config
 
struct  s3c_cpufreq_info
 

Macros

#define MAX_BANKS   (8)
 
#define S3C2412_MAX_IO   (8)
 

: The name of this implementation.

struct s3c_cpufreq_info - Information for the CPU frequency driver.

: The maximum frequencies for the system. : Transition latency to give to cpufreq. : The lock-time in uS for the MPLL. : The lock-time in uS for the UPLL. : The number of bits each LOCKTIME field. : Set if this driver needs to change the PLL values to achieve any frequency changes. This is really only need by devices like the S3C2410 where there is no or limited divider between the PLL and the ARMCLK. : Update the clocks on resume. : Get the current IO timing data, mainly for use at start. : Update the IO timings from the cached copies calculated from the entry when changing the frequency. : Calculate and update the cached copies of the IO timings from the newly calculated frequencies. : Calculate (fill in) the given frequency table from the current frequency configuration. If the table passed in is NULL, then the return is the number of elements to be filled for allocation of the table. : Set the memory refresh configuration. : Set the PLL frequencies. : Update the clock divisors. : Calculate the clock divisors.

#define s3c_cpufreq_debugfs_call(x)   NULL
 
#define s3c2410_iotiming_debugfs   NULL
 
#define s3c2410_iotiming_calc   NULL
 
#define s3c2410_iotiming_get   NULL
 
#define s3c2410_iotiming_set   NULL
 
#define s3c2412_iotiming_debugfs   NULL
 
#define s3c2412_iotiming_calc   NULL
 
#define s3c2412_iotiming_get   NULL
 
#define s3c2412_iotiming_set   NULL
 
#define s3c_freq_dbg(x...)   do { if (0) printk(x); } while (0)
 
#define s3c_freq_iodbg(x...)   do { if (0) printk(x); } while (0)
 
int s3c_cpufreq_register (struct s3c_cpufreq_info *info)
 
int s3c_plltab_register (struct cpufreq_frequency_table *plls, unsigned int plls_no)
 
struct s3c_cpufreq_configs3c_cpufreq_getconfig (void)
 
struct s3c_iotimingss3c_cpufreq_getiotimings (void)
 
struct clks3c_cpufreq_clk_get (struct device *, const char *)
 
void s3c2410_cpufreq_setrefresh (struct s3c_cpufreq_config *cfg)
 
void s3c2410_set_fvco (struct s3c_cpufreq_config *cfg)
 

Macro Definition Documentation

#define MAX_BANKS   (8)

Definition at line 18 of file cpu-freq-core.h.

#define s3c2410_iotiming_calc   NULL

Definition at line 235 of file cpu-freq-core.h.

#define s3c2410_iotiming_debugfs   NULL

Definition at line 234 of file cpu-freq-core.h.

#define s3c2410_iotiming_get   NULL

Definition at line 236 of file cpu-freq-core.h.

#define s3c2410_iotiming_set   NULL

Definition at line 237 of file cpu-freq-core.h.

#define s3c2412_iotiming_calc   NULL

Definition at line 257 of file cpu-freq-core.h.

#define s3c2412_iotiming_debugfs   NULL

Definition at line 256 of file cpu-freq-core.h.

#define s3c2412_iotiming_get   NULL

Definition at line 258 of file cpu-freq-core.h.

#define s3c2412_iotiming_set   NULL

Definition at line 259 of file cpu-freq-core.h.

#define S3C2412_MAX_IO   (8)

Definition at line 19 of file cpu-freq-core.h.

#define s3c_cpufreq_debugfs_call (   x)    NULL

Definition at line 208 of file cpu-freq-core.h.

#define s3c_freq_dbg (   x...)    do { if (0) printk(x); } while (0)

Definition at line 265 of file cpu-freq-core.h.

#define s3c_freq_iodbg (   x...)    do { if (0) printk(x); } while (0)

Definition at line 271 of file cpu-freq-core.h.

Function Documentation

void s3c2410_cpufreq_setrefresh ( struct s3c_cpufreq_config cfg)

s3c2410_cpufreq_setrefresh - set SDRAM refresh value : The frequency configuration

Set the SDRAM refresh value appropriately for the configured frequency.

Definition at line 32 of file s3c2410-cpufreq-utils.c.

void s3c2410_set_fvco ( struct s3c_cpufreq_config cfg)

s3c2410_set_fvco - set the PLL value : The frequency configuration

Definition at line 61 of file s3c2410-cpufreq-utils.c.

struct clk* s3c_cpufreq_clk_get ( struct device ,
const char  
)
read

Definition at line 368 of file cpu-freq.c.

struct s3c_cpufreq_config* s3c_cpufreq_getconfig ( void  )
read
struct s3c_iotimings* s3c_cpufreq_getiotimings ( void  )
read
int s3c_cpufreq_register ( struct s3c_cpufreq_info info)

Definition at line 491 of file cpu-freq.c.

int s3c_plltab_register ( struct cpufreq_frequency_table plls,
unsigned int  plls_no 
)

s3c_plltab_register - register CPU PLL table. : The list of PLL entries. : The size of the PLL entries .

Register the given set of PLLs with the system.

Definition at line 693 of file cpu-freq.c.