Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
clock-sh7785.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/cpufreq.h>
#include <linux/clkdev.h>
#include <asm/clock.h>
#include <asm/freq.h>
#include <cpu/sh7785.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   0xffc80030
 
#define MSTPCR1   0xffc80034
 

Enumerations

enum  {
  DIV4_I, DIV4_U, DIV4_SH, DIV4_B,
  DIV4_DDR, DIV4_GA, DIV4_DU, DIV4_P,
  DIV4_NR
}
 
enum  {
  MSTP029, MSTP028, MSTP027, MSTP026,
  MSTP025, MSTP024, MSTP021, MSTP020,
  MSTP017, MSTP016, MSTP013, MSTP012,
  MSTP009, MSTP008, MSTP003, MSTP002,
  MSTP119, MSTP117, MSTP105, MSTP104,
  MSTP100, 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 69 of file clock-sh7785.c.

#define MSTPCR0   0xffc80030

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

#define MSTPCR1   0xffc80034

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

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_U 
DIV4_SH 
DIV4_B 
DIV4_DDR 
DIV4_GA 
DIV4_DU 
DIV4_P 
DIV4_NR 

Definition at line 66 of file clock-sh7785.c.

anonymous enum
Enumerator:
MSTP029 
MSTP028 
MSTP027 
MSTP026 
MSTP025 
MSTP024 
MSTP021 
MSTP020 
MSTP017 
MSTP016 
MSTP013 
MSTP012 
MSTP009 
MSTP008 
MSTP003 
MSTP002 
MSTP119 
MSTP117 
MSTP105 
MSTP104 
MSTP100 
MSTP_NR 

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

Function Documentation

int __init arch_clk_init ( void  )

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

Variable Documentation

struct clk div4_clks[DIV4_NR]
Initial value:
= {
[DIV4_P] = DIV4(0, 0x0f80, 0),
[DIV4_DU] = DIV4(4, 0x0ff0, 0),
[DIV4_GA] = DIV4(8, 0x0030, 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_U] = DIV4(24, 0x000c, CLK_ENABLE_ON_INIT),
[DIV4_I] = DIV4(28, 0x000e, CLK_ENABLE_ON_INIT),
}

Definition at line 72 of file clock-sh7785.c.