Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
clock.h File Reference
#include <linux/spinlock.h>
#include <linux/clkdev.h>

Go to the source code of this file.

Data Structures

struct  clk_ops
 
struct  clk
 

Macros

#define __ASM_PLAT_CLOCK_H   __FILE__
 

Typedefs

typedef unsigned int(* pll_fn )(unsigned int reg, unsigned int base)
 

Functions

int clk_default_setrate (struct clk *clk, unsigned long rate)
 
int s3c2410_clkcon_enable (struct clk *clk, int enable)
 
int s3c24xx_register_clock (struct clk *clk)
 
int s3c24xx_register_clocks (struct clk **clk, int nr_clks)
 
void s3c_register_clocks (struct clk *clk, int nr_clks)
 
void s3c_disable_clocks (struct clk *clkp, int nr_clks)
 
int s3c24xx_register_baseclocks (unsigned long xtal)
 
void s5p_register_clocks (unsigned long xtal_freq)
 
void s3c24xx_setup_clocks (unsigned long fclk, unsigned long hclk, unsigned long pclk)
 
void s3c2410_setup_clocks (void)
 
void s3c2412_setup_clocks (void)
 
void s3c244x_setup_clocks (void)
 
int s3c2410_baseclk_add (void)
 
void s3c2443_common_setup_clocks (pll_fn get_mpll)
 
void s3c2443_common_init_clocks (int xtal, pll_fn get_mpll, unsigned int *divs, int nr_divs, int divmask)
 
int s3c2443_clkcon_enable_h (struct clk *clk, int enable)
 
int s3c2443_clkcon_enable_p (struct clk *clk, int enable)
 
int s3c2443_clkcon_enable_s (struct clk *clk, int enable)
 
int s3c64xx_sclk_ctrl (struct clk *clk, int enable)
 
void s3c_pwmclk_init (void)
 

Variables

struct clk s3c24xx_dclk0
 
struct clk s3c24xx_dclk1
 
struct clk s3c24xx_clkout0
 
struct clk s3c24xx_clkout1
 
struct clk s3c24xx_uclk
 
struct clk clk_usb_bus
 
struct clk clk_f
 
struct clk clk_h
 
struct clk clk_p
 
struct clk clk_mpll
 
struct clk clk_upll
 
struct clk clk_epll
 
struct clk clk_xtal
 
struct clk clk_ext
 
struct clksrc_clk clk_epllref
 
struct clksrc_clk clk_esysclk
 
struct clk clk_h2
 
struct clk clk_27m
 
struct clk clk_48m
 
struct clk clk_xusbxti
 
struct clk_ops clk_ops_def_setrate
 
spinlock_t clocks_lock
 
struct clks3c2410_wdtclk
 

Macro Definition Documentation

#define __ASM_PLAT_CLOCK_H   __FILE__

Definition at line 13 of file clock.h.

Typedef Documentation

typedef unsigned int(* pll_fn)(unsigned int reg, unsigned int base)

Definition at line 128 of file clock.h.

Function Documentation

int clk_default_setrate ( struct clk clk,
unsigned long  rate 
)

Definition at line 203 of file clock.c.

int s3c2410_baseclk_add ( void  )

Definition at line 196 of file s3c2410-clock.c.

int s3c2410_clkcon_enable ( struct clk clk,
int  enable 
)

Definition at line 48 of file s3c2410-clock.c.

void s3c2410_setup_clocks ( void  )

Definition at line 83 of file s3c2410.c.

void s3c2412_setup_clocks ( void  )

Definition at line 172 of file s3c2412.c.

int s3c2443_clkcon_enable_h ( struct clk clk,
int  enable 
)

Definition at line 45 of file common-s3c2443.c.

int s3c2443_clkcon_enable_p ( struct clk clk,
int  enable 
)

Definition at line 50 of file common-s3c2443.c.

int s3c2443_clkcon_enable_s ( struct clk clk,
int  enable 
)

Definition at line 55 of file common-s3c2443.c.

void s3c2443_common_init_clocks ( int  xtal,
pll_fn  get_mpll,
unsigned int divs,
int  nr_divs,
int  divmask 
)

Definition at line 639 of file common-s3c2443.c.

void s3c2443_common_setup_clocks ( pll_fn  get_mpll)

Definition at line 570 of file common-s3c2443.c.

void s3c244x_setup_clocks ( void  )

Definition at line 79 of file s3c244x.c.

int s3c24xx_register_baseclocks ( unsigned long  xtal)

Definition at line 358 of file clock.c.

int s3c24xx_register_clock ( struct clk clk)

s3c24xx_register_clock() - register a clock : The clock to register

Add the specified clock to the list of clocks known by the system.

Definition at line 281 of file clock.c.

int s3c24xx_register_clocks ( struct clk **  clks,
int  nr_clks 
)

s3c24xx_register_clocks() - register an array of clock pointers : Pointer to an array of struct clk pointers : The number of clocks in the array.

Call s3c24xx_register_clock() for all the clock pointers contained in the list. Returns the number of failures.

Definition at line 303 of file clock.c.

void s3c24xx_setup_clocks ( unsigned long  fclk,
unsigned long  hclk,
unsigned long  pclk 
)

Definition at line 291 of file common.c.

int s3c64xx_sclk_ctrl ( struct clk clk,
int  enable 
)

Definition at line 120 of file clock.c.

void s3c_disable_clocks ( struct clk clkp,
int  nr_clks 
)

s3c_disable_clocks() - disable an array of clocks : Pointer to the first clock in the array. : Number of clocks to register.

for internal use only at initialisation time. disable the clocks in the array.

Definition at line 350 of file clock.c.

void s3c_pwmclk_init ( void  )

s3c_pwmclk_init() - initialise pwm clocks

Initialise and register the clocks which provide the inputs for the pwm timer blocks.

Note, this call is required by the time core, so must be called after the base clocks are added and before any of the initcalls are run.

Definition at line 440 of file pwm-clock.c.

void s3c_register_clocks ( struct clk clkp,
int  nr_clks 
)

s3c_register_clocks() - register an array of clocks : Pointer to the first clock in the array. : Number of clocks to register.

Call s3c24xx_register_clock() on the array given, printing an error if it fails to register the clock (unlikely).

Definition at line 327 of file clock.c.

void s5p_register_clocks ( unsigned long  xtal_freq)

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

Variable Documentation

struct clk clk_27m

Definition at line 56 of file clock.c.

struct clk clk_48m

Definition at line 81 of file clock.c.

struct clk clk_epll

Definition at line 224 of file clock.c.

struct clksrc_clk clk_epllref

Definition at line 76 of file common-s3c2443.c.

struct clksrc_clk clk_esysclk

Definition at line 97 of file common-s3c2443.c.

struct clk clk_ext

Definition at line 220 of file clock.c.

struct clk clk_f

Definition at line 239 of file clock.c.

struct clk clk_h

Definition at line 246 of file clock.c.

struct clk clk_h2

Definition at line 51 of file clock.c.

struct clk clk_mpll

Definition at line 228 of file clock.c.

struct clk_ops clk_ops_def_setrate

Definition at line 209 of file clock.c.

struct clk clk_p

Definition at line 254 of file clock.c.

struct clk clk_upll

Definition at line 233 of file clock.c.

struct clk clk_usb_bus

Definition at line 262 of file clock.c.

struct clk clk_xtal

Definition at line 213 of file clock.c.

struct clk clk_xusbxti

Definition at line 87 of file clock.c.

spinlock_t clocks_lock
struct clk* s3c2410_wdtclk

Definition at line 68 of file clock.c.

struct clk s3c24xx_clkout0

Definition at line 188 of file clock-dclk.c.

struct clk s3c24xx_clkout1

Definition at line 193 of file clock-dclk.c.

struct clk s3c24xx_dclk0

Definition at line 170 of file clock-dclk.c.

struct clk s3c24xx_dclk1

Definition at line 177 of file clock-dclk.c.

struct clk s3c24xx_uclk

Definition at line 269 of file clock.c.