Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
clk-vco-pll.c File Reference
#include <linux/clk-provider.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/err.h>
#include "clk.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "clk-vco-pll: " fmt
 
#define PLL_MODE_NORMAL   0
 
#define PLL_MODE_FRACTION   1
 
#define PLL_MODE_DITH_DSM   2
 
#define PLL_MODE_DITH_SSM   3
 
#define PLL_MODE_MASK   3
 
#define PLL_MODE_SHIFT   3
 
#define PLL_ENABLE   2
 
#define PLL_LOCK_SHIFT   0
 
#define PLL_LOCK_MASK   1
 
#define PLL_NORM_FDBK_M_MASK   0xFF
 
#define PLL_NORM_FDBK_M_SHIFT   24
 
#define PLL_DITH_FDBK_M_MASK   0xFFFF
 
#define PLL_DITH_FDBK_M_SHIFT   16
 
#define PLL_DIV_P_MASK   0x7
 
#define PLL_DIV_P_SHIFT   8
 
#define PLL_DIV_N_MASK   0xFF
 
#define PLL_DIV_N_SHIFT   0
 
#define to_clk_vco(_hw)   container_of(_hw, struct clk_vco, hw)
 
#define to_clk_pll(_hw)   container_of(_hw, struct clk_pll, hw)
 

Functions

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)
 

Macro Definition Documentation

#define PLL_DITH_FDBK_M_MASK   0xFFFF

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

#define PLL_DITH_FDBK_M_SHIFT   16

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

#define PLL_DIV_N_MASK   0xFF

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

#define PLL_DIV_N_SHIFT   0

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

#define PLL_DIV_P_MASK   0x7

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

#define PLL_DIV_P_SHIFT   8

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

#define PLL_ENABLE   2

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

#define PLL_LOCK_MASK   1

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

#define PLL_LOCK_SHIFT   0

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

#define PLL_MODE_DITH_DSM   2

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

#define PLL_MODE_DITH_SSM   3

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

#define PLL_MODE_FRACTION   1

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

#define PLL_MODE_MASK   3

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

#define PLL_MODE_NORMAL   0

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

#define PLL_MODE_SHIFT   3

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

#define PLL_NORM_FDBK_M_MASK   0xFF

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

#define PLL_NORM_FDBK_M_SHIFT   24

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

#define pr_fmt (   fmt)    "clk-vco-pll: " fmt

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

#define to_clk_pll (   _hw)    container_of(_hw, struct clk_pll, hw)

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

#define to_clk_vco (   _hw)    container_of(_hw, struct clk_vco, hw)

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

Function Documentation

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.