Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
clock-emev2.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 EMEV2_SMU_BASE   0xe0110000
 
#define USIAU0_RSTCTRL   0x094
 
#define USIBU1_RSTCTRL   0x0ac
 
#define USIBU2_RSTCTRL   0x0b0
 
#define USIBU3_RSTCTRL   0x0b4
 
#define STI_RSTCTRL   0x124
 
#define USIAU0GCLKCTRL   0x4a0
 
#define USIBU1GCLKCTRL   0x4b8
 
#define USIBU2GCLKCTRL   0x4bc
 
#define USIBU3GCLKCTRL   0x04c0
 
#define STIGCLKCTRL   0x528
 
#define USIAU0SCLKDIV   0x61c
 
#define USIB2SCLKDIV   0x65c
 
#define USIB3SCLKDIV   0x660
 
#define STI_CLKSEL   0x688
 
#define SMU_GENERAL_REG0   0x7c0
 
#define SCLKDIV(_reg, _shift)
 
#define GCLK_SCLK(_parent, _reg)
 

Enumerations

enum  {
  SCLKDIV_USIAU0, SCLKDIV_USIBU2, SCLKDIV_USIBU1, SCLKDIV_USIBU3,
  SCLKDIV_NR
}
 
enum  {
  GCLK_USIAU0_SCLK, GCLK_USIBU1_SCLK, GCLK_USIBU2_SCLK, GCLK_USIBU3_SCLK,
  GCLK_STI_SCLK, GCLK_NR
}
 

Functions

void emev2_set_boot_vector (unsigned long value)
 
void __init emev2_clock_init (void)
 

Macro Definition Documentation

#define EMEV2_SMU_BASE   0xe0110000

Definition at line 26 of file clock-emev2.c.

#define GCLK_SCLK (   _parent,
  _reg 
)
Value:
{ \
.parent = _parent, \
.enable_reg = IOMEM(EMEV2_SMU_BASE + (_reg)), \
.enable_bit = 1, /* SCLK_GCC */ \
}

Definition at line 111 of file clock-emev2.c.

#define SCLKDIV (   _reg,
  _shift 
)
Value:
{ \
.parent = &pll3_clk, \
.enable_reg = IOMEM(EMEV2_SMU_BASE + (_reg)), \
.enable_bit = _shift, \
}

Definition at line 93 of file clock-emev2.c.

#define SMU_GENERAL_REG0   0x7c0

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

#define STI_CLKSEL   0x688

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

#define STI_RSTCTRL   0x124

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

#define STIGCLKCTRL   0x528

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

#define USIAU0_RSTCTRL   0x094

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

#define USIAU0GCLKCTRL   0x4a0

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

#define USIAU0SCLKDIV   0x61c

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

#define USIB2SCLKDIV   0x65c

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

#define USIB3SCLKDIV   0x660

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

#define USIBU1_RSTCTRL   0x0ac

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

#define USIBU1GCLKCTRL   0x4b8

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

#define USIBU2_RSTCTRL   0x0b0

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

#define USIBU2GCLKCTRL   0x4bc

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

#define USIBU3_RSTCTRL   0x0b4

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

#define USIBU3GCLKCTRL   0x04c0

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

Enumeration Type Documentation

anonymous enum
Enumerator:
SCLKDIV_USIAU0 
SCLKDIV_USIBU2 
SCLKDIV_USIBU1 
SCLKDIV_USIBU3 
SCLKDIV_NR 

Definition at line 90 of file clock-emev2.c.

anonymous enum
Enumerator:
GCLK_USIAU0_SCLK 
GCLK_USIBU1_SCLK 
GCLK_USIBU2_SCLK 
GCLK_USIBU3_SCLK 
GCLK_STI_SCLK 
GCLK_NR 

Definition at line 107 of file clock-emev2.c.

Function Documentation

void __init emev2_clock_init ( void  )

Definition at line 205 of file clock-emev2.c.

void emev2_set_boot_vector ( unsigned long  value)

Definition at line 54 of file clock-emev2.c.