Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
clock-shx3.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, FRQMR1, _bit, _mask, _flags)
 
#define MSTPCR0   0xffc00030
 
#define MSTPCR1   0xffc00034
 

Enumerations

enum  {
  DIV4_I, DIV4_SH, DIV4_B, DIV4_DDR,
  DIV4_SHA, DIV4_P, DIV4_NR
}
 
enum  {
  MSTP027, MSTP026, MSTP025, MSTP024,
  MSTP009, MSTP008, MSTP003, MSTP002,
  MSTP001, MSTP000, MSTP119, MSTP105,
  MSTP104, 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, FRQMR1, _bit, _mask, _flags)

Definition at line 64 of file clock-shx3.c.

#define MSTPCR0   0xffc00030

Definition at line 76 of file clock-shx3.c.

#define MSTPCR1   0xffc00034

Definition at line 77 of file clock-shx3.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_SH 
DIV4_B 
DIV4_DDR 
DIV4_SHA 
DIV4_P 
DIV4_NR 

Definition at line 62 of file clock-shx3.c.

anonymous enum
Enumerator:
MSTP027 
MSTP026 
MSTP025 
MSTP024 
MSTP009 
MSTP008 
MSTP003 
MSTP002 
MSTP001 
MSTP000 
MSTP119 
MSTP105 
MSTP104 
MSTP_NR 

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

Function Documentation

int __init arch_clk_init ( void  )

Definition at line 139 of file clock-shx3.c.

Variable Documentation

struct clk div4_clks[DIV4_NR]
Initial value:
= {
[DIV4_P] = DIV4(0, 0x0f80, 0),
[DIV4_SHA] = DIV4(4, 0x0ff0, 0),
[DIV4_DDR] = DIV4(12, 0x000c, CLK_ENABLE_ON_INIT),
[DIV4_B] = DIV4(16, 0x0fe0, CLK_ENABLE_ON_INIT),
[DIV4_SH] = DIV4(20, 0x000c, CLK_ENABLE_ON_INIT),
[DIV4_I] = DIV4(28, 0x000e, CLK_ENABLE_ON_INIT),
}

Definition at line 67 of file clock-shx3.c.