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

Go to the source code of this file.

Macros

#define MODEMR   (0xFFCC0020)
 
#define MODEMR_MASK   (0x6)
 
#define MODEMR_533MHZ   (0x2)
 
#define DIV4(_reg, _bit, _mask, _flags)   SH_CLK_DIV4(&pll_clk, _reg, _bit, _mask, _flags)
 
#define MSTPCR0   0xFFC80030
 
#define MSTPCR1   0xFFC80034
 
#define MSTPCR3   0xFFC8003C
 

Enumerations

enum  {
  DIV4_I, DIV4_S, DIV4_B, DIV4_M,
  DIV4_S1, DIV4_P, DIV4_NR
}
 
enum  {
  MSTP030, MSTP029, MSTP026, MSTP025,
  MSTP024, MSTP023, MSTP022, MSTP021,
  MSTP019, MSTP016, MSTP015, MSTP014,
  MSTP012, MSTP011, MSTP010, MSTP009,
  MSTP008, MSTP007, MSTP115, MSTP114,
  MSTP111, MSTP109, MSTP108, MSTP107,
  MSTP106, MSTP103, MSTP100, MSTP331,
  MSTP330, MSTP323, MSTP322, MSTP321,
  MSTP320, MSTP319, MSTP318, MSTP317,
  MSTP316, MSTP315, MSTP314, MSTP313,
  MSTP312, MSTP304, MSTP303, MSTP302,
  MSTP301, MSTP300, MSTP_NR
}
 

Functions

int __init arch_clk_init (void)
 

Variables

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 72 of file clock-sh7734.c.

#define MODEMR   (0xFFCC0020)

Definition at line 26 of file clock-sh7734.c.

#define MODEMR_533MHZ   (0x2)

Definition at line 28 of file clock-sh7734.c.

#define MODEMR_MASK   (0x6)

Definition at line 27 of file clock-sh7734.c.

#define MSTPCR0   0xFFC80030

Definition at line 84 of file clock-sh7734.c.

#define MSTPCR1   0xFFC80034

Definition at line 85 of file clock-sh7734.c.

#define MSTPCR3   0xFFC8003C

Definition at line 86 of file clock-sh7734.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_S 
DIV4_B 
DIV4_M 
DIV4_S1 
DIV4_P 
DIV4_NR 

Definition at line 70 of file clock-sh7734.c.

anonymous enum
Enumerator:
MSTP030 
MSTP029 
MSTP026 
MSTP025 
MSTP024 
MSTP023 
MSTP022 
MSTP021 
MSTP019 
MSTP016 
MSTP015 
MSTP014 
MSTP012 
MSTP011 
MSTP010 
MSTP009 
MSTP008 
MSTP007 
MSTP115 
MSTP114 
MSTP111 
MSTP109 
MSTP108 
MSTP107 
MSTP106 
MSTP103 
MSTP100 
MSTP331 
MSTP330 
MSTP323 
MSTP322 
MSTP321 
MSTP320 
MSTP319 
MSTP318 
MSTP317 
MSTP316 
MSTP315 
MSTP314 
MSTP313 
MSTP312 
MSTP304 
MSTP303 
MSTP302 
MSTP301 
MSTP300 
MSTP_NR 

Definition at line 88 of file clock-sh7734.c.

Function Documentation

int __init arch_clk_init ( void  )

Definition at line 248 of file clock-sh7734.c.

Variable Documentation

struct clk div4_clks[DIV4_NR]
Initial value:
= {
[DIV4_I] = DIV4(FRQMR1, 28, 0x0003, CLK_ENABLE_ON_INIT),
[DIV4_S] = DIV4(FRQMR1, 20, 0x000C, CLK_ENABLE_ON_INIT),
[DIV4_B] = DIV4(FRQMR1, 16, 0x0140, CLK_ENABLE_ON_INIT),
[DIV4_M] = DIV4(FRQMR1, 12, 0x0004, CLK_ENABLE_ON_INIT),
[DIV4_S1] = DIV4(FRQMR1, 4, 0x0030, CLK_ENABLE_ON_INIT),
[DIV4_P] = DIV4(FRQMR1, 0, 0x0140, CLK_ENABLE_ON_INIT),
}

Definition at line 75 of file clock-sh7734.c.