Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
clock-sh7786.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/clk.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   0xffc40030
 
#define MSTPCR1   0xffc40034
 

Enumerations

enum  {
  DIV4_I, DIV4_SH, DIV4_B, DIV4_DDR,
  DIV4_DU, DIV4_P, DIV4_NR
}
 
enum  {
  MSTP029, MSTP028, MSTP027, MSTP026,
  MSTP025, MSTP024, MSTP023, MSTP022,
  MSTP021, MSTP020, MSTP017, MSTP016,
  MSTP015, MSTP014, MSTP011, MSTP010,
  MSTP009, MSTP008, MSTP005, MSTP004,
  MSTP002, MSTP112, MSTP110, MSTP109,
  MSTP108, MSTP105, MSTP104, MSTP103,
  MSTP102, 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 70 of file clock-sh7786.c.

#define MSTPCR0   0xffc40030

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

#define MSTPCR1   0xffc40034

Definition at line 83 of file clock-sh7786.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_SH 
DIV4_B 
DIV4_DDR 
DIV4_DU 
DIV4_P 
DIV4_NR 

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

anonymous enum
Enumerator:
MSTP029 
MSTP028 
MSTP027 
MSTP026 
MSTP025 
MSTP024 
MSTP023 
MSTP022 
MSTP021 
MSTP020 
MSTP017 
MSTP016 
MSTP015 
MSTP014 
MSTP011 
MSTP010 
MSTP009 
MSTP008 
MSTP005 
MSTP004 
MSTP002 
MSTP112 
MSTP110 
MSTP109 
MSTP108 
MSTP105 
MSTP104 
MSTP103 
MSTP102 
MSTP_NR 

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

Function Documentation

int __init arch_clk_init ( void  )

Definition at line 184 of file clock-sh7786.c.

Variable Documentation

struct clk div4_clks[DIV4_NR]
Initial value:
= {
[DIV4_P] = DIV4(0, 0x0b40, 0),
[DIV4_DU] = DIV4(4, 0x0010, 0),
[DIV4_DDR] = DIV4(12, 0x0002, CLK_ENABLE_ON_INIT),
[DIV4_B] = DIV4(16, 0x0360, CLK_ENABLE_ON_INIT),
[DIV4_SH] = DIV4(20, 0x0002, CLK_ENABLE_ON_INIT),
[DIV4_I] = DIV4(28, 0x0006, CLK_ENABLE_ON_INIT),
}

Definition at line 73 of file clock-sh7786.c.