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

Go to the source code of this file.

Data Structures

struct  clk
 
struct  pll_data
 

Macros

#define PLLCTL   0x100
 
#define PLLM   0x110
 
#define PLLPRE   0x114
 
#define PLLDIV1   0x118
 
#define PLLDIV2   0x11c
 
#define PLLDIV3   0x120
 
#define PLLPOST   0x128
 
#define PLLCMD   0x138
 
#define PLLSTAT   0x13c
 
#define PLLALNCTL   0x140
 
#define PLLDCHANGE   0x144
 
#define PLLCKEN   0x148
 
#define PLLCKSTAT   0x14c
 
#define PLLSYSTAT   0x150
 
#define PLLDIV4   0x160
 
#define PLLDIV5   0x164
 
#define PLLDIV6   0x168
 
#define PLLDIV7   0x16c
 
#define PLLDIV8   0x170
 
#define PLLDIV9   0x174
 
#define PLLDIV10   0x178
 
#define PLLDIV11   0x17c
 
#define PLLDIV12   0x180
 
#define PLLDIV13   0x184
 
#define PLLDIV14   0x188
 
#define PLLDIV15   0x18c
 
#define PLLDIV16   0x190
 
#define PLLM_PLLM_MASK   0xff
 
#define PLLM_VAL(x)   ((x) - 1)
 
#define PLLPREDIV_EN   BIT(15)
 
#define PLLPREDIV_VAL(x)   ((x) - 1)
 
#define PLLCTL_PLLEN   BIT(0)
 
#define PLLCTL_PLLPWRDN   BIT(1)
 
#define PLLCTL_PLLRST   BIT(3)
 
#define PLLCTL_PLLDIS   BIT(4)
 
#define PLLCTL_PLLENSRC   BIT(5)
 
#define PLLCTL_CLKMODE   BIT(8)
 
#define PLLCMD_GOSTAT   BIT(0)
 
#define PLLSTAT_GOSTAT   BIT(0)
 
#define PLLDIV_EN   BIT(15)
 
#define PLLDIV_RATIO_MASK   0x1f
 
#define PLLDIV_RATIO(x)   ((x) - 1)
 
#define ALWAYS_ENABLED   BIT(1)
 
#define CLK_PLL   BIT(2) /* PLL-derived clock */
 
#define PRE_PLL   BIT(3) /* source is before PLL mult/div */
 
#define FIXED_DIV_PLL   BIT(4) /* fixed divisor from PLL */
 
#define FIXED_RATE_PLL   BIT(5) /* fixed ouput rate PLL */
 
#define MAX_PLL_SYSCLKS   16
 
#define PLL_HAS_PRE   BIT(0)
 
#define PLL_HAS_MUL   BIT(1)
 
#define PLL_HAS_POST   BIT(2)
 
#define CLK(dev, con, ck)
 

Functions

void c6x_clks_init (struct clk_lookup *clocks)
 
int clk_register (struct clk *clk)
 
void clk_unregister (struct clk *clk)
 
void c64x_setup_clocks (void)
 

Variables

struct pll_data c6x_soc_pll1
 
struct clk clkin1
 
struct clk c6x_core_clk
 
struct clk c6x_i2c_clk
 
struct clk c6x_watchdog_clk
 
struct clk c6x_mcbsp1_clk
 
struct clk c6x_mcbsp2_clk
 
struct clk c6x_mdio_clk
 

Macro Definition Documentation

#define ALWAYS_ENABLED   BIT(1)

Definition at line 100 of file clock.h.

#define CLK (   dev,
  con,
  ck 
)
Value:
{ \
.dev_id = dev, \
.con_id = con, \
.clk = ck, \
} \

Definition at line 124 of file clock.h.

#define CLK_PLL   BIT(2) /* PLL-derived clock */

Definition at line 101 of file clock.h.

#define FIXED_DIV_PLL   BIT(4) /* fixed divisor from PLL */

Definition at line 103 of file clock.h.

#define FIXED_RATE_PLL   BIT(5) /* fixed ouput rate PLL */

Definition at line 104 of file clock.h.

#define MAX_PLL_SYSCLKS   16

Definition at line 106 of file clock.h.

#define PLL_HAS_MUL   BIT(1)

Definition at line 121 of file clock.h.

#define PLL_HAS_POST   BIT(2)

Definition at line 122 of file clock.h.

#define PLL_HAS_PRE   BIT(0)

Definition at line 120 of file clock.h.

#define PLLALNCTL   0x140

Definition at line 34 of file clock.h.

#define PLLCKEN   0x148

Definition at line 36 of file clock.h.

#define PLLCKSTAT   0x14c

Definition at line 37 of file clock.h.

#define PLLCMD   0x138

Definition at line 32 of file clock.h.

#define PLLCMD_GOSTAT   BIT(0)

Definition at line 70 of file clock.h.

#define PLLCTL   0x100

Definition at line 25 of file clock.h.

#define PLLCTL_CLKMODE   BIT(8)

Definition at line 67 of file clock.h.

#define PLLCTL_PLLDIS   BIT(4)

Definition at line 65 of file clock.h.

#define PLLCTL_PLLEN   BIT(0)

Definition at line 62 of file clock.h.

#define PLLCTL_PLLENSRC   BIT(5)

Definition at line 66 of file clock.h.

#define PLLCTL_PLLPWRDN   BIT(1)

Definition at line 63 of file clock.h.

#define PLLCTL_PLLRST   BIT(3)

Definition at line 64 of file clock.h.

#define PLLDCHANGE   0x144

Definition at line 35 of file clock.h.

#define PLLDIV1   0x118

Definition at line 28 of file clock.h.

#define PLLDIV10   0x178

Definition at line 45 of file clock.h.

#define PLLDIV11   0x17c

Definition at line 46 of file clock.h.

#define PLLDIV12   0x180

Definition at line 47 of file clock.h.

#define PLLDIV13   0x184

Definition at line 48 of file clock.h.

#define PLLDIV14   0x188

Definition at line 49 of file clock.h.

#define PLLDIV15   0x18c

Definition at line 50 of file clock.h.

#define PLLDIV16   0x190

Definition at line 51 of file clock.h.

#define PLLDIV2   0x11c

Definition at line 29 of file clock.h.

#define PLLDIV3   0x120

Definition at line 30 of file clock.h.

#define PLLDIV4   0x160

Definition at line 39 of file clock.h.

#define PLLDIV5   0x164

Definition at line 40 of file clock.h.

#define PLLDIV6   0x168

Definition at line 41 of file clock.h.

#define PLLDIV7   0x16c

Definition at line 42 of file clock.h.

#define PLLDIV8   0x170

Definition at line 43 of file clock.h.

#define PLLDIV9   0x174

Definition at line 44 of file clock.h.

#define PLLDIV_EN   BIT(15)

Definition at line 76 of file clock.h.

#define PLLDIV_RATIO (   x)    ((x) - 1)

Definition at line 78 of file clock.h.

#define PLLDIV_RATIO_MASK   0x1f

Definition at line 77 of file clock.h.

#define PLLM   0x110

Definition at line 26 of file clock.h.

#define PLLM_PLLM_MASK   0xff

Definition at line 54 of file clock.h.

#define PLLM_VAL (   x)    ((x) - 1)

Definition at line 55 of file clock.h.

#define PLLPOST   0x128

Definition at line 31 of file clock.h.

#define PLLPRE   0x114

Definition at line 27 of file clock.h.

#define PLLPREDIV_EN   BIT(15)

Definition at line 58 of file clock.h.

#define PLLPREDIV_VAL (   x)    ((x) - 1)

Definition at line 59 of file clock.h.

#define PLLSTAT   0x13c

Definition at line 33 of file clock.h.

#define PLLSTAT_GOSTAT   BIT(0)

Definition at line 73 of file clock.h.

#define PLLSYSTAT   0x150

Definition at line 38 of file clock.h.

#define PRE_PLL   BIT(3) /* source is before PLL mult/div */

Definition at line 102 of file clock.h.

Function Documentation

void c64x_setup_clocks ( void  )

Definition at line 420 of file plldata.c.

void c6x_clks_init ( struct clk_lookup clocks)

Definition at line 348 of file pll.c.

int clk_register ( struct clk clk)

Definition at line 528 of file clock.c.

void clk_unregister ( struct clk clk)

clk_unregister - unregister a currently registered clock : clock to unregister

Currently unimplemented.

Definition at line 200 of file clock.c.

Variable Documentation

struct clk c6x_core_clk

Definition at line 129 of file plldata.c.

struct clk c6x_i2c_clk

Definition at line 134 of file plldata.c.

struct clk c6x_mcbsp1_clk

Definition at line 142 of file plldata.c.

struct clk c6x_mcbsp2_clk

Definition at line 146 of file plldata.c.

struct clk c6x_mdio_clk

Definition at line 150 of file plldata.c.

struct pll_data c6x_soc_pll1

Definition at line 36 of file plldata.c.

struct clk c6x_watchdog_clk

Definition at line 138 of file plldata.c.

struct clk clkin1

Definition at line 29 of file plldata.c.