Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cmu.c File Reference
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/smp.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <asm/cpu.h>
#include <asm/io.h>
#include <asm/vr41xx/vr41xx.h>

Go to the source code of this file.

Macros

#define CMU_TYPE1_BASE   0x0b000060UL
 
#define CMU_TYPE1_SIZE   0x4
 
#define CMU_TYPE2_BASE   0x0f000060UL
 
#define CMU_TYPE2_SIZE   0x4
 
#define CMU_TYPE3_BASE   0x0f000060UL
 
#define CMU_TYPE3_SIZE   0x8
 
#define CMUCLKMSK   0x0
 
#define MSKPIU   0x0001
 
#define MSKSIU   0x0002
 
#define MSKAIU   0x0004
 
#define MSKKIU   0x0008
 
#define MSKFIR   0x0010
 
#define MSKDSIU   0x0820
 
#define MSKCSI   0x0040
 
#define MSKPCIU   0x0080
 
#define MSKSSIU   0x0100
 
#define MSKSHSP   0x0200
 
#define MSKFFIR   0x0400
 
#define MSKSCSI   0x1000
 
#define MSKPPCIU   0x2000
 
#define CMUCLKMSK2   0x4
 
#define MSKCEU   0x0001
 
#define MSKMAC0   0x0002
 
#define MSKMAC1   0x0004
 
#define cmu_read(offset)   readw(cmu_base + (offset))
 
#define cmu_write(offset, value)   writew((value), cmu_base + (offset))
 

Functions

void vr41xx_supply_clock (vr41xx_clock_t clock)
 
 EXPORT_SYMBOL_GPL (vr41xx_supply_clock)
 
void vr41xx_mask_clock (vr41xx_clock_t clock)
 
 EXPORT_SYMBOL_GPL (vr41xx_mask_clock)
 
 core_initcall (vr41xx_cmu_init)
 

Macro Definition Documentation

#define cmu_read (   offset)    readw(cmu_base + (offset))

Definition at line 74 of file cmu.c.

#define CMU_TYPE1_BASE   0x0b000060UL

Definition at line 42 of file cmu.c.

#define CMU_TYPE1_SIZE   0x4

Definition at line 43 of file cmu.c.

#define CMU_TYPE2_BASE   0x0f000060UL

Definition at line 45 of file cmu.c.

#define CMU_TYPE2_SIZE   0x4

Definition at line 46 of file cmu.c.

#define CMU_TYPE3_BASE   0x0f000060UL

Definition at line 48 of file cmu.c.

#define CMU_TYPE3_SIZE   0x8

Definition at line 49 of file cmu.c.

#define cmu_write (   offset,
  value 
)    writew((value), cmu_base + (offset))

Definition at line 75 of file cmu.c.

#define CMUCLKMSK   0x0

Definition at line 51 of file cmu.c.

#define CMUCLKMSK2   0x4

Definition at line 65 of file cmu.c.

#define MSKAIU   0x0004

Definition at line 54 of file cmu.c.

#define MSKCEU   0x0001

Definition at line 66 of file cmu.c.

#define MSKCSI   0x0040

Definition at line 58 of file cmu.c.

#define MSKDSIU   0x0820

Definition at line 57 of file cmu.c.

#define MSKFFIR   0x0400

Definition at line 62 of file cmu.c.

#define MSKFIR   0x0010

Definition at line 56 of file cmu.c.

#define MSKKIU   0x0008

Definition at line 55 of file cmu.c.

#define MSKMAC0   0x0002

Definition at line 67 of file cmu.c.

#define MSKMAC1   0x0004

Definition at line 68 of file cmu.c.

#define MSKPCIU   0x0080

Definition at line 59 of file cmu.c.

#define MSKPIU   0x0001

Definition at line 52 of file cmu.c.

#define MSKPPCIU   0x2000

Definition at line 64 of file cmu.c.

#define MSKSCSI   0x1000

Definition at line 63 of file cmu.c.

#define MSKSHSP   0x0200

Definition at line 61 of file cmu.c.

#define MSKSIU   0x0002

Definition at line 53 of file cmu.c.

#define MSKSSIU   0x0100

Definition at line 60 of file cmu.c.

Function Documentation

core_initcall ( vr41xx_cmu_init  )
EXPORT_SYMBOL_GPL ( vr41xx_supply_clock  )
EXPORT_SYMBOL_GPL ( vr41xx_mask_clock  )
void vr41xx_mask_clock ( vr41xx_clock_t  clock)

Definition at line 140 of file cmu.c.

void vr41xx_supply_clock ( vr41xx_clock_t  clock)

Definition at line 77 of file cmu.c.