Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
clk-pllv2.c File Reference
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <asm/div64.h>
#include "clk.h"

Go to the source code of this file.

Data Structures

struct  clk_pllv2
 

Macros

#define to_clk_pllv2(clk)   (container_of(clk, struct clk_pllv2, clk))
 
#define MXC_PLL_DP_CTL   0x00
 
#define MXC_PLL_DP_CONFIG   0x04
 
#define MXC_PLL_DP_OP   0x08
 
#define MXC_PLL_DP_MFD   0x0C
 
#define MXC_PLL_DP_MFN   0x10
 
#define MXC_PLL_DP_MFNMINUS   0x14
 
#define MXC_PLL_DP_MFNPLUS   0x18
 
#define MXC_PLL_DP_HFS_OP   0x1C
 
#define MXC_PLL_DP_HFS_MFD   0x20
 
#define MXC_PLL_DP_HFS_MFN   0x24
 
#define MXC_PLL_DP_MFN_TOGC   0x28
 
#define MXC_PLL_DP_DESTAT   0x2c
 
#define MXC_PLL_DP_CTL_MUL_CTRL   0x2000
 
#define MXC_PLL_DP_CTL_DPDCK0_2_EN   0x1000
 
#define MXC_PLL_DP_CTL_DPDCK0_2_OFFSET   12
 
#define MXC_PLL_DP_CTL_ADE   0x800
 
#define MXC_PLL_DP_CTL_REF_CLK_DIV   0x400
 
#define MXC_PLL_DP_CTL_REF_CLK_SEL_MASK   (3 << 8)
 
#define MXC_PLL_DP_CTL_REF_CLK_SEL_OFFSET   8
 
#define MXC_PLL_DP_CTL_HFSM   0x80
 
#define MXC_PLL_DP_CTL_PRE   0x40
 
#define MXC_PLL_DP_CTL_UPEN   0x20
 
#define MXC_PLL_DP_CTL_RST   0x10
 
#define MXC_PLL_DP_CTL_RCP   0x8
 
#define MXC_PLL_DP_CTL_PLM   0x4
 
#define MXC_PLL_DP_CTL_BRM0   0x2
 
#define MXC_PLL_DP_CTL_LRF   0x1
 
#define MXC_PLL_DP_CONFIG_BIST   0x8
 
#define MXC_PLL_DP_CONFIG_SJC_CE   0x4
 
#define MXC_PLL_DP_CONFIG_AREN   0x2
 
#define MXC_PLL_DP_CONFIG_LDREQ   0x1
 
#define MXC_PLL_DP_OP_MFI_OFFSET   4
 
#define MXC_PLL_DP_OP_MFI_MASK   (0xF << 4)
 
#define MXC_PLL_DP_OP_PDF_OFFSET   0
 
#define MXC_PLL_DP_OP_PDF_MASK   0xF
 
#define MXC_PLL_DP_MFD_OFFSET   0
 
#define MXC_PLL_DP_MFD_MASK   0x07FFFFFF
 
#define MXC_PLL_DP_MFN_OFFSET   0x0
 
#define MXC_PLL_DP_MFN_MASK   0x07FFFFFF
 
#define MXC_PLL_DP_MFN_TOGC_TOG_DIS   (1 << 17)
 
#define MXC_PLL_DP_MFN_TOGC_TOG_EN   (1 << 16)
 
#define MXC_PLL_DP_MFN_TOGC_CNT_OFFSET   0x0
 
#define MXC_PLL_DP_MFN_TOGC_CNT_MASK   0xFFFF
 
#define MXC_PLL_DP_DESTAT_TOG_SEL   (1 << 31)
 
#define MXC_PLL_DP_DESTAT_MFN   0x07FFFFFF
 
#define MAX_DPLL_WAIT_TRIES   1000 /* 1000 * udelay(1) = 1ms */
 

Functions

struct clkimx_clk_pllv2 (const char *name, const char *parent, void __iomem *base)
 

Variables

struct clk_ops clk_pllv2_ops
 

Macro Definition Documentation

#define MAX_DPLL_WAIT_TRIES   1000 /* 1000 * udelay(1) = 1ms */

Definition at line 70 of file clk-pllv2.c.

#define MXC_PLL_DP_CONFIG   0x04

Definition at line 17 of file clk-pllv2.c.

#define MXC_PLL_DP_CONFIG_AREN   0x2

Definition at line 48 of file clk-pllv2.c.

#define MXC_PLL_DP_CONFIG_BIST   0x8

Definition at line 46 of file clk-pllv2.c.

#define MXC_PLL_DP_CONFIG_LDREQ   0x1

Definition at line 49 of file clk-pllv2.c.

#define MXC_PLL_DP_CONFIG_SJC_CE   0x4

Definition at line 47 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL   0x00

Definition at line 16 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_ADE   0x800

Definition at line 33 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_BRM0   0x2

Definition at line 43 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_DPDCK0_2_EN   0x1000

Definition at line 31 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_DPDCK0_2_OFFSET   12

Definition at line 32 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_HFSM   0x80

Definition at line 37 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_LRF   0x1

Definition at line 44 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_MUL_CTRL   0x2000

Definition at line 30 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_PLM   0x4

Definition at line 42 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_PRE   0x40

Definition at line 38 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_RCP   0x8

Definition at line 41 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_REF_CLK_DIV   0x400

Definition at line 34 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_REF_CLK_SEL_MASK   (3 << 8)

Definition at line 35 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_REF_CLK_SEL_OFFSET   8

Definition at line 36 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_RST   0x10

Definition at line 40 of file clk-pllv2.c.

#define MXC_PLL_DP_CTL_UPEN   0x20

Definition at line 39 of file clk-pllv2.c.

#define MXC_PLL_DP_DESTAT   0x2c

Definition at line 27 of file clk-pllv2.c.

#define MXC_PLL_DP_DESTAT_MFN   0x07FFFFFF

Definition at line 68 of file clk-pllv2.c.

#define MXC_PLL_DP_DESTAT_TOG_SEL   (1 << 31)

Definition at line 67 of file clk-pllv2.c.

#define MXC_PLL_DP_HFS_MFD   0x20

Definition at line 24 of file clk-pllv2.c.

#define MXC_PLL_DP_HFS_MFN   0x24

Definition at line 25 of file clk-pllv2.c.

#define MXC_PLL_DP_HFS_OP   0x1C

Definition at line 23 of file clk-pllv2.c.

#define MXC_PLL_DP_MFD   0x0C

Definition at line 19 of file clk-pllv2.c.

#define MXC_PLL_DP_MFD_MASK   0x07FFFFFF

Definition at line 57 of file clk-pllv2.c.

#define MXC_PLL_DP_MFD_OFFSET   0

Definition at line 56 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN   0x10

Definition at line 20 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN_MASK   0x07FFFFFF

Definition at line 60 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN_OFFSET   0x0

Definition at line 59 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN_TOGC   0x28

Definition at line 26 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN_TOGC_CNT_MASK   0xFFFF

Definition at line 65 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN_TOGC_CNT_OFFSET   0x0

Definition at line 64 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN_TOGC_TOG_DIS   (1 << 17)

Definition at line 62 of file clk-pllv2.c.

#define MXC_PLL_DP_MFN_TOGC_TOG_EN   (1 << 16)

Definition at line 63 of file clk-pllv2.c.

#define MXC_PLL_DP_MFNMINUS   0x14

Definition at line 21 of file clk-pllv2.c.

#define MXC_PLL_DP_MFNPLUS   0x18

Definition at line 22 of file clk-pllv2.c.

#define MXC_PLL_DP_OP   0x08

Definition at line 18 of file clk-pllv2.c.

#define MXC_PLL_DP_OP_MFI_MASK   (0xF << 4)

Definition at line 52 of file clk-pllv2.c.

#define MXC_PLL_DP_OP_MFI_OFFSET   4

Definition at line 51 of file clk-pllv2.c.

#define MXC_PLL_DP_OP_PDF_MASK   0xF

Definition at line 54 of file clk-pllv2.c.

#define MXC_PLL_DP_OP_PDF_OFFSET   0

Definition at line 53 of file clk-pllv2.c.

#define to_clk_pllv2 (   clk)    (container_of(clk, struct clk_pllv2, clk))

Definition at line 13 of file clk-pllv2.c.

Function Documentation

struct clk* imx_clk_pllv2 ( const char name,
const char parent,
void __iomem base 
)
read

Definition at line 240 of file clk-pllv2.c.

Variable Documentation

struct clk_ops clk_pllv2_ops
Initial value:
= {
.prepare = clk_pllv2_prepare,
.unprepare = clk_pllv2_unprepare,
.recalc_rate = clk_pllv2_recalc_rate,
.round_rate = clk_pllv2_round_rate,
.set_rate = clk_pllv2_set_rate,
}

Definition at line 232 of file clk-pllv2.c.