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

Go to the source code of this file.

Macros

#define DIV4(_bit, _mask, _flags)   SH_CLK_DIV4(&pll_clk, FRQCR, _bit, _mask, _flags)
 
#define MSTPCR0   0xffc80030
 
#define MSTPCR1   0xffc80034
 
#define MSTPCR2   0xffc10028
 

Enumerations

enum  { DIV4_I, DIV4_SH, DIV4_P, DIV4_NR }
 
enum  {
  MSTP004, MSTP000, MSTP127, MSTP114,
  MSTP113, MSTP112, MSTP111, MSTP110,
  MSTP103, MSTP102, MSTP220, MSTP_NR
}
 

Functions

int __init arch_clk_init (void)
 

Variables

struct clk div4_clks [DIV4_NR]
 

Macro Definition Documentation

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

Definition at line 65 of file clock-sh7757.c.

#define MSTPCR0   0xffc80030

Definition at line 78 of file clock-sh7757.c.

#define MSTPCR1   0xffc80034

Definition at line 79 of file clock-sh7757.c.

#define MSTPCR2   0xffc10028

Definition at line 80 of file clock-sh7757.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_SH 
DIV4_P 
DIV4_NR 

Definition at line 63 of file clock-sh7757.c.

anonymous enum
Enumerator:
MSTP004 
MSTP000 
MSTP127 
MSTP114 
MSTP113 
MSTP112 
MSTP111 
MSTP110 
MSTP103 
MSTP102 
MSTP220 
MSTP_NR 

Definition at line 82 of file clock-sh7757.c.

Function Documentation

int __init arch_clk_init ( void  )

Definition at line 138 of file clock-sh7757.c.

Variable Documentation

struct clk div4_clks[DIV4_NR]
Initial value:
= {
[DIV4_P] = DIV4(0, 0x2800, CLK_ENABLE_ON_INIT),
[DIV4_SH] = DIV4(12, 0x00a0, CLK_ENABLE_ON_INIT),
[DIV4_I] = DIV4(20, 0x0004, CLK_ENABLE_ON_INIT),
}

Definition at line 68 of file clock-sh7757.c.