Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
s3c2440-cpufreq.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/cpufreq.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include <mach/regs-clock.h>
#include <plat/cpu.h>
#include <plat/cpu-freq-core.h>
#include <plat/clock.h>

Go to the source code of this file.

Macros

#define CAMDIVN_HCLK_HALF
 

Functions

int s3c2440_cpufreq_calcdivs (struct s3c_cpufreq_config *cfg)
 
 subsys_initcall (s3c2440_cpufreq_init)
 
 subsys_initcall (s3c2442_cpufreq_init)
 

Variables

struct s3c_cpufreq_info s3c2440_cpufreq_info
 

Macro Definition Documentation

#define CAMDIVN_HCLK_HALF
Value:
(S3C2440_CAMDIVN_HCLK3_HALF | \
S3C2440_CAMDIVN_HCLK4_HALF)

Definition at line 134 of file s3c2440-cpufreq.c.

Function Documentation

int s3c2440_cpufreq_calcdivs ( struct s3c_cpufreq_config cfg)

s3c2440_cpufreq_calcdivs - calculate divider settings : The cpu frequency settings.

Calcualte the divider values for the given frequency settings specified in . The values are stored in for later use by the relevant set routine if the request settings can be reached.

Definition at line 59 of file s3c2440-cpufreq.c.

subsys_initcall ( s3c2440_cpufreq_init  )
subsys_initcall ( s3c2442_cpufreq_init  )

Variable Documentation

struct s3c_cpufreq_info s3c2440_cpufreq_info
Initial value:
= {
.max = {
.fclk = 400000000,
.hclk = 133333333,
.pclk = 66666666,
},
.locktime_m = 300,
.locktime_u = 300,
.locktime_bits = 16,
.name = "s3c244x",
.calc_iotiming = s3c2410_iotiming_calc,
.set_iotiming = s3c2410_iotiming_set,
.get_iotiming = s3c2410_iotiming_get,
.set_fvco = s3c2410_set_fvco,
.set_divs = s3c2440_cpufreq_setdivs,
.calc_freqtable = s3c2440_cpufreq_calctable,
.resume_clocks = s3c244x_setup_clocks,
}

Definition at line 246 of file s3c2440-cpufreq.c.