Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
clk.h File Reference
#include <linux/clk-provider.h>
#include <linux/spinlock_types.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  aux_clk_masks
 
struct  aux_rate_tbl
 
struct  clk_aux
 
struct  frac_rate_tbl
 
struct  clk_frac
 
struct  gpt_rate_tbl
 
struct  clk_gpt
 
struct  pll_rate_tbl
 
struct  clk_vco
 
struct  clk_pll
 

Macros

#define AUX_EQ_SEL_SHIFT   30
 
#define AUX_EQ_SEL_MASK   1
 
#define AUX_EQ1_SEL   0
 
#define AUX_EQ2_SEL   1
 
#define AUX_XSCALE_SHIFT   16
 
#define AUX_XSCALE_MASK   0xFFF
 
#define AUX_YSCALE_SHIFT   0
 
#define AUX_YSCALE_MASK   0xFFF
 
#define AUX_SYNT_ENB   31
 

Typedefs

typedef unsigned long(* clk_calc_rate )(struct clk_hw *hw, unsigned long prate, int index)
 

Functions

struct clkclk_register_aux (const char *aux_name, const char *gate_name, const char *parent_name, unsigned long flags, void __iomem *reg, struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock, struct clk **gate_clk)
 
struct clkclk_register_frac (const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, struct frac_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock)
 
struct clkclk_register_gpt (const char *name, const char *parent_name, unsigned long flags, void __iomem *reg, struct gpt_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock)
 
struct clkclk_register_vco_pll (const char *vco_name, const char *pll_name, const char *vco_gate_name, const char *parent_name, unsigned long flags, void __iomem *mode_reg, void __iomem *cfg_reg, struct pll_rate_tbl *rtbl, u8 rtbl_cnt, spinlock_t *lock, struct clk **pll_clk, struct clk **vco_gate_clk)
 
long clk_round_rate_index (struct clk_hw *hw, unsigned long drate, unsigned long parent_rate, clk_calc_rate calc_rate, u8 rtbl_cnt, int *index)
 

Macro Definition Documentation

#define AUX_EQ1_SEL   0

Definition at line 23 of file clk.h.

#define AUX_EQ2_SEL   1

Definition at line 24 of file clk.h.

#define AUX_EQ_SEL_MASK   1

Definition at line 22 of file clk.h.

#define AUX_EQ_SEL_SHIFT   30

Definition at line 21 of file clk.h.

#define AUX_SYNT_ENB   31

Definition at line 29 of file clk.h.

#define AUX_XSCALE_MASK   0xFFF

Definition at line 26 of file clk.h.

#define AUX_XSCALE_SHIFT   16

Definition at line 25 of file clk.h.

#define AUX_YSCALE_MASK   0xFFF

Definition at line 28 of file clk.h.

#define AUX_YSCALE_SHIFT   0

Definition at line 27 of file clk.h.

Typedef Documentation

typedef unsigned long(* clk_calc_rate)(struct clk_hw *hw, unsigned long prate, int index)

Definition at line 109 of file clk.h.

Function Documentation

struct clk* clk_register_aux ( const char aux_name,
const char gate_name,
const char parent_name,
unsigned long  flags,
void __iomem reg,
struct aux_clk_masks masks,
struct aux_rate_tbl rtbl,
u8  rtbl_cnt,
spinlock_t lock,
struct clk **  gate_clk 
)
read

Definition at line 137 of file clk-aux-synth.c.

struct clk* clk_register_frac ( const char name,
const char parent_name,
unsigned long  flags,
void __iomem reg,
struct frac_rate_tbl rtbl,
u8  rtbl_cnt,
spinlock_t lock 
)
read

Definition at line 125 of file clk-frac-synth.c.

struct clk* clk_register_gpt ( const char name,
const char parent_name,
unsigned long  flags,
void __iomem reg,
struct gpt_rate_tbl rtbl,
u8  rtbl_cnt,
spinlock_t lock 
)
read

Definition at line 114 of file clk-gpt-synth.c.

struct clk* clk_register_vco_pll ( const char vco_name,
const char pll_name,
const char vco_gate_name,
const char parent_name,
unsigned long  flags,
void __iomem mode_reg,
void __iomem cfg_reg,
struct pll_rate_tbl rtbl,
u8  rtbl_cnt,
spinlock_t lock,
struct clk **  pll_clk,
struct clk **  vco_gate_clk 
)
read

Definition at line 275 of file clk-vco-pll.c.

long clk_round_rate_index ( struct clk_hw *  hw,
unsigned long  drate,
unsigned long  parent_rate,
clk_calc_rate  calc_rate,
u8  rtbl_cnt,
int index 
)

Definition at line 16 of file clk.c.