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

Go to the source code of this file.

Macros

#define RTFRQCR   IOMEM(0xe6150000)
 
#define SYFRQCR   IOMEM(0xe6150004)
 
#define CMFRQCR   IOMEM(0xe61500E0)
 
#define VCLKCR1   IOMEM(0xe6150008)
 
#define VCLKCR2   IOMEM(0xe615000C)
 
#define VCLKCR3   IOMEM(0xe615001C)
 
#define FMSICKCR   IOMEM(0xe6150010)
 
#define FMSOCKCR   IOMEM(0xe6150014)
 
#define FSICKCR   IOMEM(0xe6150018)
 
#define PLLC1CR   IOMEM(0xe6150028)
 
#define PLLC2CR   IOMEM(0xe615002C)
 
#define SUBUSBCKCR   IOMEM(0xe6150080)
 
#define SPUCKCR   IOMEM(0xe6150084)
 
#define MSUCKCR   IOMEM(0xe6150088)
 
#define MVI3CKCR   IOMEM(0xe6150090)
 
#define HDMICKCR   IOMEM(0xe6150094)
 
#define MFCK1CR   IOMEM(0xe6150098)
 
#define MFCK2CR   IOMEM(0xe615009C)
 
#define DSITCKCR   IOMEM(0xe6150060)
 
#define DSIPCKCR   IOMEM(0xe6150064)
 
#define SMSTPCR0   IOMEM(0xe6150130)
 
#define SMSTPCR1   IOMEM(0xe6150134)
 
#define SMSTPCR2   IOMEM(0xe6150138)
 
#define SMSTPCR3   IOMEM(0xe615013C)
 
#define SMSTPCR4   IOMEM(0xe6150140)
 
#define DIV4(_reg, _bit, _mask, _flags)   SH_CLK_DIV4(&pllc1_clk, _reg, _bit, _mask, _flags)
 
#define MSTP(_parent, _reg, _bit, _flags)   SH_CLK_MSTP32(_parent, _reg, _bit, _flags)
 

Enumerations

enum  {
  DIV4_I, DIV4_ZG, DIV4_B, DIV4_M1,
  DIV4_CSIR, DIV4_ZTR, DIV4_ZT, DIV4_Z,
  DIV4_HP, DIV4_ZS, DIV4_ZB, DIV4_ZB3,
  DIV4_CP, DIV4_NR
}
 
enum  {
  DIV6_VCK1, DIV6_VCK2, DIV6_VCK3, DIV6_FMSI,
  DIV6_FMSO, DIV6_FSI, DIV6_SUB, DIV6_SPU,
  DIV6_MSU, DIV6_MVI3, DIV6_HDMI, DIV6_MF1,
  DIV6_MF2, DIV6_DSIT, DIV6_DSIP, DIV6_NR
}
 
enum  {
  MSTP001, MSTP131, MSTP130, MSTP129,
  MSTP128, MSTP116, MSTP106, MSTP101,
  MSTP223, MSTP207, MSTP206, MSTP204,
  MSTP203, MSTP202, MSTP201, MSTP200,
  MSTP331, MSTP329, MSTP325, MSTP323,
  MSTP322, MSTP315, MSTP314, MSTP313,
  MSTP403, MSTP_NR
}
 

Functions

void __init sh7377_clock_init (void)
 

Variables

struct clk sh7377_extalc1_clk
 
struct clk sh7377_extal2_clk
 

Macro Definition Documentation

#define CMFRQCR   IOMEM(0xe61500E0)

Definition at line 29 of file clock-sh7377.c.

#define DIV4 (   _reg,
  _bit,
  _mask,
  _flags 
)    SH_CLK_DIV4(&pllc1_clk, _reg, _bit, _mask, _flags)

Definition at line 189 of file clock-sh7377.c.

#define DSIPCKCR   IOMEM(0xe6150064)

Definition at line 46 of file clock-sh7377.c.

#define DSITCKCR   IOMEM(0xe6150060)

Definition at line 45 of file clock-sh7377.c.

#define FMSICKCR   IOMEM(0xe6150010)

Definition at line 33 of file clock-sh7377.c.

#define FMSOCKCR   IOMEM(0xe6150014)

Definition at line 34 of file clock-sh7377.c.

#define FSICKCR   IOMEM(0xe6150018)

Definition at line 35 of file clock-sh7377.c.

#define HDMICKCR   IOMEM(0xe6150094)

Definition at line 42 of file clock-sh7377.c.

#define MFCK1CR   IOMEM(0xe6150098)

Definition at line 43 of file clock-sh7377.c.

#define MFCK2CR   IOMEM(0xe615009C)

Definition at line 44 of file clock-sh7377.c.

#define MSTP (   _parent,
  _reg,
  _bit,
  _flags 
)    SH_CLK_MSTP32(_parent, _reg, _bit, _flags)

Definition at line 239 of file clock-sh7377.c.

#define MSUCKCR   IOMEM(0xe6150088)

Definition at line 40 of file clock-sh7377.c.

#define MVI3CKCR   IOMEM(0xe6150090)

Definition at line 41 of file clock-sh7377.c.

#define PLLC1CR   IOMEM(0xe6150028)

Definition at line 36 of file clock-sh7377.c.

#define PLLC2CR   IOMEM(0xe615002C)

Definition at line 37 of file clock-sh7377.c.

#define RTFRQCR   IOMEM(0xe6150000)

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

#define SMSTPCR0   IOMEM(0xe6150130)

Definition at line 47 of file clock-sh7377.c.

#define SMSTPCR1   IOMEM(0xe6150134)

Definition at line 48 of file clock-sh7377.c.

#define SMSTPCR2   IOMEM(0xe6150138)

Definition at line 49 of file clock-sh7377.c.

#define SMSTPCR3   IOMEM(0xe615013C)

Definition at line 50 of file clock-sh7377.c.

#define SMSTPCR4   IOMEM(0xe6150140)

Definition at line 51 of file clock-sh7377.c.

#define SPUCKCR   IOMEM(0xe6150084)

Definition at line 39 of file clock-sh7377.c.

#define SUBUSBCKCR   IOMEM(0xe6150080)

Definition at line 38 of file clock-sh7377.c.

#define SYFRQCR   IOMEM(0xe6150004)

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

#define VCLKCR1   IOMEM(0xe6150008)

Definition at line 30 of file clock-sh7377.c.

#define VCLKCR2   IOMEM(0xe615000C)

Definition at line 31 of file clock-sh7377.c.

#define VCLKCR3   IOMEM(0xe615001C)

Definition at line 32 of file clock-sh7377.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
DIV4_I 
DIV4_ZG 
DIV4_B 
DIV4_M1 
DIV4_CSIR 
DIV4_ZTR 
DIV4_ZT 
DIV4_Z 
DIV4_HP 
DIV4_ZS 
DIV4_ZB 
DIV4_ZB3 
DIV4_CP 
DIV4_NR 

Definition at line 185 of file clock-sh7377.c.

anonymous enum
Enumerator:
DIV6_VCK1 
DIV6_VCK2 
DIV6_VCK3 
DIV6_FMSI 
DIV6_FMSO 
DIV6_FSI 
DIV6_SUB 
DIV6_SPU 
DIV6_MSU 
DIV6_MVI3 
DIV6_HDMI 
DIV6_MF1 
DIV6_MF2 
DIV6_DSIT 
DIV6_DSIP 
DIV6_NR 

Definition at line 208 of file clock-sh7377.c.

anonymous enum
Enumerator:
MSTP001 
MSTP131 
MSTP130 
MSTP129 
MSTP128 
MSTP116 
MSTP106 
MSTP101 
MSTP223 
MSTP207 
MSTP206 
MSTP204 
MSTP203 
MSTP202 
MSTP201 
MSTP200 
MSTP331 
MSTP329 
MSTP325 
MSTP323 
MSTP322 
MSTP315 
MSTP314 
MSTP313 
MSTP403 
MSTP_NR 

Definition at line 231 of file clock-sh7377.c.

Function Documentation

void __init sh7377_clock_init ( void  )

Definition at line 344 of file clock-sh7377.c.

Variable Documentation

struct clk sh7377_extal2_clk
Initial value:
= {
.rate = 48000000,
}

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

struct clk sh7377_extalc1_clk
Initial value:
= {
.rate = 26666666,
}

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