Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions | Variables
clock.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/device.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <mach/map.h>
#include <mach/regs-clock.h>
#include <plat/cpu-freq.h>
#include <plat/clock.h>
#include <plat/cpu.h>
#include <plat/pll.h>
#include <plat/s5p-clock.h>
#include <plat/clock-clksrc.h>
#include "common.h"

Go to the source code of this file.

Enumerations

enum  perf_level {
  L0 = 532*1000, L1 = 266*1000, L2 = 133*1000, L0,
  L1, L2, L3, L4
}
 

Functions

int s5p64x0_pclk_ctrl (struct clk *clk, int enable)
 
int s5p64x0_hclk0_ctrl (struct clk *clk, int enable)
 
int s5p64x0_hclk1_ctrl (struct clk *clk, int enable)
 
int s5p64x0_sclk_ctrl (struct clk *clk, int enable)
 
int s5p64x0_sclk1_ctrl (struct clk *clk, int enable)
 
int s5p64x0_mem_ctrl (struct clk *clk, int enable)
 
int s5p64x0_clk48m_ctrl (struct clk *clk, int enable)
 

Variables

struct clksrc_clk clk_mout_apll
 
struct clksrc_clk clk_mout_mpll
 
struct clksrc_clk clk_mout_epll
 
struct clksrc_clk clk_armclk
 
struct clksrc_clk clk_dout_mpll
 
struct clksrc_sources clkset_hclk_low
 

Enumeration Type Documentation

enum perf_level
Enumerator:
L0 
L1 
L2 
L0 
L1 
L2 
L3 
L4 

Definition at line 63 of file clock.c.

Function Documentation

int s5p64x0_clk48m_ctrl ( struct clk clk,
int  enable 
)

Definition at line 217 of file clock.c.

int s5p64x0_hclk0_ctrl ( struct clk clk,
int  enable 
)

Definition at line 192 of file clock.c.

int s5p64x0_hclk1_ctrl ( struct clk clk,
int  enable 
)

Definition at line 197 of file clock.c.

int s5p64x0_mem_ctrl ( struct clk clk,
int  enable 
)

Definition at line 212 of file clock.c.

int s5p64x0_pclk_ctrl ( struct clk clk,
int  enable 
)

Definition at line 187 of file clock.c.

int s5p64x0_sclk1_ctrl ( struct clk clk,
int  enable 
)

Definition at line 207 of file clock.c.

int s5p64x0_sclk_ctrl ( struct clk clk,
int  enable 
)

Definition at line 202 of file clock.c.

Variable Documentation

struct clksrc_clk clk_armclk
Initial value:
= {
.clk = {
.name = "armclk",
.id = 1,
.parent = &clk_mout_apll.clk,
.ops = &s5p64x0_clkarm_ops,
},
.reg_div = { .reg = S5P64X0_CLK_DIV0, .shift = 0, .size = 4 },
}

Definition at line 158 of file clock.c.

struct clksrc_clk clk_dout_mpll
Initial value:
= {
.clk = {
.name = "dout_mpll",
.id = -1,
.parent = &clk_mout_mpll.clk,
},
.reg_div = { .reg = S5P64X0_CLK_DIV0, .shift = 4, .size = 1 },
}

Definition at line 168 of file clock.c.

struct clksrc_clk clk_mout_apll
Initial value:
= {
.clk = {
.name = "mout_apll",
.id = -1,
},
.sources = &clk_src_apll,
.reg_src = { .reg = S5P64X0_CLK_SRC0, .shift = 0, .size = 1 },
}

Definition at line 36 of file clock.c.

struct clksrc_clk clk_mout_epll
Initial value:
= {
.clk = {
.name = "mout_epll",
.id = -1,
},
.sources = &clk_src_epll,
.reg_src = { .reg = S5P64X0_CLK_SRC0, .shift = 2, .size = 1 },
}

Definition at line 54 of file clock.c.

struct clksrc_clk clk_mout_mpll
Initial value:
= {
.clk = {
.name = "mout_mpll",
.id = -1,
},
.sources = &clk_src_mpll,
.reg_src = { .reg = S5P64X0_CLK_SRC0, .shift = 1, .size = 1 },
}

Definition at line 45 of file clock.c.

struct clksrc_sources clkset_hclk_low
Initial value:
= {
.sources = clkset_hclk_low_list,
.nr_sources = ARRAY_SIZE(clkset_hclk_low_list),
}

Definition at line 182 of file clock.c.