Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
s5p-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 <asm/div64.h>
#include <mach/regs-clock.h>
#include <plat/clock.h>
#include <plat/clock-clksrc.h>
#include <plat/s5p-clock.h>

Go to the source code of this file.

Functions

int s5p_gatectrl (void __iomem *reg, struct clk *clk, int enable)
 
int s5p_epll_enable (struct clk *clk, int enable)
 
unsigned long s5p_epll_get_rate (struct clk *clk)
 
int s5p_spdif_set_rate (struct clk *clk, unsigned long rate)
 
unsigned long s5p_spdif_get_rate (struct clk *clk)
 
void __init s5p_register_clocks (unsigned long xtal_freq)
 

Variables

struct clk clk_ext_xtal_mux
 
struct clk clk_xusbxti
 
struct clk s5p_clk_27m
 
struct clk clk_48m
 
struct clk clk_fout_apll
 
struct clk clk_fout_bpll
 
struct clk clk_fout_bpll_div2
 
struct clk clk_fout_cpll
 
struct clk clk_fout_mpll
 
struct clk clk_fout_mpll_div2
 
struct clk clk_fout_epll
 
struct clk clk_fout_dpll
 
struct clk clk_fout_vpll
 
struct clksrc_sources clk_src_apll
 
struct clksrc_sources clk_src_bpll
 
struct clksrc_sources clk_src_bpll_fout
 
struct clksrc_sources clk_src_cpll
 
struct clksrc_sources clk_src_mpll
 
struct clksrc_sources clk_src_mpll_fout
 
struct clksrc_sources clk_src_epll
 
struct clksrc_sources clk_src_dpll
 
struct clk clk_vpll
 
struct clk_ops s5p_sclk_spdif_ops
 

Function Documentation

int s5p_epll_enable ( struct clk clk,
int  enable 
)

Definition at line 219 of file s5p-clock.c.

unsigned long s5p_epll_get_rate ( struct clk clk)

Definition at line 232 of file s5p-clock.c.

int s5p_gatectrl ( void __iomem reg,
struct clk clk,
int  enable 
)

Definition at line 208 of file s5p-clock.c.

void __init s5p_register_clocks ( unsigned long  xtal_freq)

Definition at line 285 of file s5p-clock.c.

unsigned long s5p_spdif_get_rate ( struct clk clk)

Definition at line 252 of file s5p-clock.c.

int s5p_spdif_set_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 237 of file s5p-clock.c.

Variable Documentation

struct clk clk_48m
Initial value:
= {
.name = "clk_48m",
.id = -1,
.rate = 48000000,
}

Definition at line 50 of file s5p-clock.c.

struct clk clk_ext_xtal_mux
Initial value:
= {
.name = "ext_xtal",
.id = -1,
}

Definition at line 32 of file s5p-clock.c.

struct clk clk_fout_apll
Initial value:
= {
.name = "fout_apll",
.id = -1,
}

Definition at line 59 of file s5p-clock.c.

struct clk clk_fout_bpll
Initial value:
= {
.name = "fout_bpll",
.id = -1,
}

Definition at line 66 of file s5p-clock.c.

struct clk clk_fout_bpll_div2
Initial value:
= {
.name = "fout_bpll_div2",
.id = -1,
}

Definition at line 71 of file s5p-clock.c.

struct clk clk_fout_cpll
Initial value:
= {
.name = "fout_cpll",
.id = -1,
}

Definition at line 78 of file s5p-clock.c.

struct clk clk_fout_dpll
Initial value:
= {
.name = "fout_dpll",
.id = -1,
.ctrlbit = (1 << 31),
}

Definition at line 104 of file s5p-clock.c.

struct clk clk_fout_epll
Initial value:
= {
.name = "fout_epll",
.id = -1,
.ctrlbit = (1 << 31),
}

Definition at line 97 of file s5p-clock.c.

struct clk clk_fout_mpll
Initial value:
= {
.name = "fout_mpll",
.id = -1,
}

Definition at line 86 of file s5p-clock.c.

struct clk clk_fout_mpll_div2
Initial value:
= {
.name = "fout_mpll_div2",
.id = -1,
}

Definition at line 91 of file s5p-clock.c.

struct clk clk_fout_vpll
Initial value:
= {
.name = "fout_vpll",
.id = -1,
.ctrlbit = (1 << 31),
}

Definition at line 111 of file s5p-clock.c.

struct clksrc_sources clk_src_apll
Initial value:
= {
.sources = clk_src_apll_list,
.nr_sources = ARRAY_SIZE(clk_src_apll_list),
}

Definition at line 123 of file s5p-clock.c.

struct clksrc_sources clk_src_bpll
Initial value:
= {
.sources = clk_src_bpll_list,
.nr_sources = ARRAY_SIZE(clk_src_bpll_list),
}

Definition at line 134 of file s5p-clock.c.

struct clksrc_sources clk_src_bpll_fout
Initial value:
= {
.sources = clk_src_bpll_fout_list,
.nr_sources = ARRAY_SIZE(clk_src_bpll_fout_list),
}

Definition at line 144 of file s5p-clock.c.

struct clksrc_sources clk_src_cpll
Initial value:
= {
.sources = clk_src_cpll_list,
.nr_sources = ARRAY_SIZE(clk_src_cpll_list),
}

Definition at line 155 of file s5p-clock.c.

struct clksrc_sources clk_src_dpll
Initial value:
= {
.sources = clk_src_dpll_list,
.nr_sources = ARRAY_SIZE(clk_src_dpll_list),
}

Definition at line 198 of file s5p-clock.c.

struct clksrc_sources clk_src_epll
Initial value:
= {
.sources = clk_src_epll_list,
.nr_sources = ARRAY_SIZE(clk_src_epll_list),
}

Definition at line 187 of file s5p-clock.c.

struct clksrc_sources clk_src_mpll
Initial value:
= {
.sources = clk_src_mpll_list,
.nr_sources = ARRAY_SIZE(clk_src_mpll_list),
}

Definition at line 166 of file s5p-clock.c.

struct clksrc_sources clk_src_mpll_fout
Initial value:
= {
.sources = clk_src_mpll_fout_list,
.nr_sources = ARRAY_SIZE(clk_src_mpll_fout_list),
}

Definition at line 176 of file s5p-clock.c.

struct clk clk_vpll
Initial value:
= {
.name = "vpll",
.id = -1,
}

Definition at line 203 of file s5p-clock.c.

struct clk clk_xusbxti
Initial value:
= {
.name = "xusbxti",
.id = -1,
.rate = 24000000,
}

Definition at line 37 of file s5p-clock.c.

struct clk s5p_clk_27m
Initial value:
= {
.name = "clk_27m",
.id = -1,
.rate = 27000000,
}

Definition at line 43 of file s5p-clock.c.

struct clk_ops s5p_sclk_spdif_ops
Initial value:
= {
.set_rate = s5p_spdif_set_rate,
.get_rate = s5p_spdif_get_rate,
}

Definition at line 267 of file s5p-clock.c.