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

Go to the source code of this file.

Macros

#define CLKSPEEDREG_TYPE1   (void __iomem *)KSEG1ADDR(0x0b000014)
 
#define CLKSPEEDREG_TYPE2   (void __iomem *)KSEG1ADDR(0x0f000014)
 
#define CLKSP(x)   ((x) & 0x001f)
 
#define CLKSP_VR4133(x)   ((x) & 0x0007)
 
#define DIV2B   0x8000
 
#define DIV3B   0x4000
 
#define DIV4B   0x2000
 
#define DIVT(x)   (((x) & 0xf000) >> 12)
 
#define DIVVT(x)   (((x) & 0x0f00) >> 8)
 
#define TDIVMODE(x)   (2 << (((x) & 0x1000) >> 12))
 
#define VTDIVMODE(x)   (((x) & 0x0700) >> 8)
 

Functions

unsigned long vr41xx_get_vtclock_frequency (void)
 
 EXPORT_SYMBOL_GPL (vr41xx_get_vtclock_frequency)
 
unsigned long vr41xx_get_tclock_frequency (void)
 
 EXPORT_SYMBOL_GPL (vr41xx_get_tclock_frequency)
 
void vr41xx_calculate_clock_frequency (void)
 
 EXPORT_SYMBOL_GPL (vr41xx_calculate_clock_frequency)
 

Macro Definition Documentation

#define CLKSP (   x)    ((x) & 0x001f)

Definition at line 41 of file bcu.c.

#define CLKSP_VR4133 (   x)    ((x) & 0x0007)

Definition at line 42 of file bcu.c.

#define CLKSPEEDREG_TYPE1   (void __iomem *)KSEG1ADDR(0x0b000014)

Definition at line 39 of file bcu.c.

#define CLKSPEEDREG_TYPE2   (void __iomem *)KSEG1ADDR(0x0f000014)

Definition at line 40 of file bcu.c.

#define DIV2B   0x8000

Definition at line 44 of file bcu.c.

#define DIV3B   0x4000

Definition at line 45 of file bcu.c.

#define DIV4B   0x2000

Definition at line 46 of file bcu.c.

#define DIVT (   x)    (((x) & 0xf000) >> 12)

Definition at line 48 of file bcu.c.

#define DIVVT (   x)    (((x) & 0x0f00) >> 8)

Definition at line 49 of file bcu.c.

#define TDIVMODE (   x)    (2 << (((x) & 0x1000) >> 12))

Definition at line 51 of file bcu.c.

#define VTDIVMODE (   x)    (((x) & 0x0700) >> 8)

Definition at line 52 of file bcu.c.

Function Documentation

EXPORT_SYMBOL_GPL ( vr41xx_get_vtclock_frequency  )
EXPORT_SYMBOL_GPL ( vr41xx_get_tclock_frequency  )
EXPORT_SYMBOL_GPL ( vr41xx_calculate_clock_frequency  )
void vr41xx_calculate_clock_frequency ( void  )

Definition at line 210 of file bcu.c.

unsigned long vr41xx_get_tclock_frequency ( void  )

Definition at line 64 of file bcu.c.

unsigned long vr41xx_get_vtclock_frequency ( void  )

Definition at line 57 of file bcu.c.