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

Go to the source code of this file.

Macros

#define FRQCRA   0xa4150000
 
#define FRQCRB   0xa4150004
 
#define VCLKCR   0xa4150048
 
#define FCLKACR   0xa4150008
 
#define FCLKBCR   0xa415000c
 
#define IRDACLKCR   0xa4150018
 
#define PLLCR   0xa4150024
 
#define MSTPCR0   0xa4150030
 
#define MSTPCR1   0xa4150034
 
#define MSTPCR2   0xa4150038
 
#define SPUCLKCR   0xa415003c
 
#define FLLFRQ   0xa4150050
 
#define LSTATS   0xa4150060
 
#define DIV4(_reg, _bit, _mask, _flags)   SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags)
 

Enumerations

enum  {
  DIV4_I, DIV4_SH, DIV4_B, DIV4_P,
  DIV4_M1, DIV4_NR
}
 
enum  {
  DIV6_V, DIV6_I, DIV6_S, DIV6_FA,
  DIV6_FB, DIV6_NR
}
 

Functions

int __init arch_clk_init (void)
 

Variables

struct clk sh7724_fsimcka_clk
 
struct clk sh7724_fsimckb_clk
 
struct clk sh7724_dv_clki
 
struct clk div4_clks [DIV4_NR]
 

Macro Definition Documentation

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

Definition at line 162 of file clock-sh7724.c.

#define FCLKACR   0xa4150008

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

#define FCLKBCR   0xa415000c

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

#define FLLFRQ   0xa4150050

Definition at line 42 of file clock-sh7724.c.

#define FRQCRA   0xa4150000

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

#define FRQCRB   0xa4150004

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

#define IRDACLKCR   0xa4150018

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

#define LSTATS   0xa4150060

Definition at line 43 of file clock-sh7724.c.

#define MSTPCR0   0xa4150030

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

#define MSTPCR1   0xa4150034

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

#define MSTPCR2   0xa4150038

Definition at line 40 of file clock-sh7724.c.

#define PLLCR   0xa4150024

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

#define SPUCLKCR   0xa415003c

Definition at line 41 of file clock-sh7724.c.

#define VCLKCR   0xa4150048

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

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_SH 
DIV4_B 
DIV4_P 
DIV4_M1 
DIV4_NR 

Definition at line 160 of file clock-sh7724.c.

anonymous enum
Enumerator:
DIV6_V 
DIV6_I 
DIV6_S 
DIV6_FA 
DIV6_FB 
DIV6_NR 

Definition at line 173 of file clock-sh7724.c.

Function Documentation

int __init arch_clk_init ( void  )

Definition at line 356 of file clock-sh7724.c.

Variable Documentation

struct clk div4_clks[DIV4_NR]
Initial value:
= {
[DIV4_I] = DIV4(FRQCRA, 20, 0x2f7d, CLK_ENABLE_ON_INIT),
[DIV4_P] = DIV4(FRQCRA, 0, 0x2f7c, 0),
}

Definition at line 165 of file clock-sh7724.c.

struct clk sh7724_dv_clki
Initial value:
= {
}

Definition at line 124 of file clock-sh7724.c.

struct clk sh7724_fsimcka_clk
Initial value:
= {
}

Definition at line 118 of file clock-sh7724.c.

struct clk sh7724_fsimckb_clk
Initial value:
= {
}

Definition at line 121 of file clock-sh7724.c.