Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
clock-sh7722.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/clkdev.h>
#include <linux/sh_clk.h>
#include <asm/clock.h>
#include <cpu/sh7722.h>

Go to the source code of this file.

Macros

#define FRQCR   0xa4150000
 
#define VCLKCR   0xa4150004
 
#define SCLKACR   0xa4150008
 
#define SCLKBCR   0xa415000c
 
#define IRDACLKCR   0xa4150018
 
#define PLLCR   0xa4150024
 
#define MSTPCR0   0xa4150030
 
#define MSTPCR1   0xa4150034
 
#define MSTPCR2   0xa4150038
 
#define DLLFRQ   0xa4150050
 
#define DIV4(_reg, _bit, _mask, _flags)   SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags)
 

Enumerations

enum  {
  DIV4_I, DIV4_U, DIV4_SH, DIV4_B,
  DIV4_B3, DIV4_P, DIV4_NR
}
 
enum  { DIV4_IRDA, DIV4_ENABLE_NR }
 
enum  { DIV4_SIUA, DIV4_SIUB, DIV4_REPARENT_NR }
 
enum  { DIV6_V, DIV6_NR }
 

Functions

int __init arch_clk_init (void)
 

Variables

struct clk extal_clk
 
struct clkmain_clks []
 
struct clk div4_clks [DIV4_NR]
 
struct clk div4_enable_clks [DIV4_ENABLE_NR]
 
struct clk div4_reparent_clks [DIV4_REPARENT_NR]
 
struct clk div6_clks [DIV6_NR]
 

Macro Definition Documentation

#define DIV4 (   _reg,
  _bit,
  _mask,
  _flags 
)    SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags)

Definition at line 120 of file clock-sh7722.c.

#define DLLFRQ   0xa4150050

Definition at line 39 of file clock-sh7722.c.

#define FRQCR   0xa4150000

Definition at line 30 of file clock-sh7722.c.

#define IRDACLKCR   0xa4150018

Definition at line 34 of file clock-sh7722.c.

#define MSTPCR0   0xa4150030

Definition at line 36 of file clock-sh7722.c.

#define MSTPCR1   0xa4150034

Definition at line 37 of file clock-sh7722.c.

#define MSTPCR2   0xa4150038

Definition at line 38 of file clock-sh7722.c.

#define PLLCR   0xa4150024

Definition at line 35 of file clock-sh7722.c.

#define SCLKACR   0xa4150008

Definition at line 32 of file clock-sh7722.c.

#define SCLKBCR   0xa415000c

Definition at line 33 of file clock-sh7722.c.

#define VCLKCR   0xa4150004

Definition at line 31 of file clock-sh7722.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_U 
DIV4_SH 
DIV4_B 
DIV4_B3 
DIV4_P 
DIV4_NR 

Definition at line 123 of file clock-sh7722.c.

anonymous enum
Enumerator:
DIV4_IRDA 
DIV4_ENABLE_NR 

Definition at line 134 of file clock-sh7722.c.

anonymous enum
Enumerator:
DIV4_SIUA 
DIV4_SIUB 
DIV4_REPARENT_NR 

Definition at line 140 of file clock-sh7722.c.

anonymous enum
Enumerator:
DIV6_V 
DIV6_NR 

Definition at line 147 of file clock-sh7722.c.

Function Documentation

int __init arch_clk_init ( void  )

Definition at line 234 of file clock-sh7722.c.

Variable Documentation

struct clk div4_clks[DIV4_NR]
Initial value:
= {
[DIV4_I] = DIV4(FRQCR, 20, 0x1fef, CLK_ENABLE_ON_INIT),
[DIV4_U] = DIV4(FRQCR, 16, 0x1fff, CLK_ENABLE_ON_INIT),
[DIV4_SH] = DIV4(FRQCR, 12, 0x1fff, CLK_ENABLE_ON_INIT),
[DIV4_B] = DIV4(FRQCR, 8, 0x1fff, CLK_ENABLE_ON_INIT),
[DIV4_P] = DIV4(FRQCR, 0, 0x1fff, 0),
}

Definition at line 125 of file clock-sh7722.c.

struct clk div4_enable_clks[DIV4_ENABLE_NR]
Initial value:
= {
[DIV4_IRDA] = DIV4(IRDACLKCR, 0, 0x1fff, 0),
}

Definition at line 136 of file clock-sh7722.c.

struct clk div4_reparent_clks[DIV4_REPARENT_NR]
Initial value:
= {
[DIV4_SIUA] = DIV4(SCLKACR, 0, 0x1fff, 0),
[DIV4_SIUB] = DIV4(SCLKBCR, 0, 0x1fff, 0),
}

Definition at line 142 of file clock-sh7722.c.

struct clk div6_clks[DIV6_NR]
Initial value:
= {
[DIV6_V] = SH_CLK_DIV6(&pll_clk, VCLKCR, 0),
}

Definition at line 149 of file clock-sh7722.c.

struct clk extal_clk
Initial value:
= {
.rate = 33333333,
}

Definition at line 50 of file clock-sh7722.c.

struct clk* main_clks[]
Initial value:
= {
&r_clk,
&dll_clk,
&pll_clk,
}

Definition at line 99 of file clock-sh7722.c.