Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
clk.c File Reference
#include <linux/io.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/clk.h>
#include <asm/time.h>
#include <asm/irq.h>
#include <asm/div64.h>
#include <lantiq_soc.h>
#include "../clk.h"

Go to the source code of this file.

Macros

#define DDR_HZ   ram_clocks[ltq_cgu_r32(CGU_SYS) & 0x3]
 
#define CGU_SYS   0x10
 
#define CGU_SYS_VR9   0x0c
 
#define CGU_IF_CLK_VR9   0x24
 

Functions

unsigned long ltq_danube_fpi_hz (void)
 
unsigned long ltq_danube_cpu_hz (void)
 
unsigned long ltq_ar9_sys_hz (void)
 
unsigned long ltq_ar9_fpi_hz (void)
 
unsigned long ltq_ar9_cpu_hz (void)
 
unsigned long ltq_vr9_cpu_hz (void)
 
unsigned long ltq_vr9_fpi_hz (void)
 

Macro Definition Documentation

#define CGU_IF_CLK_VR9   0x24

Definition at line 31 of file clk.c.

#define CGU_SYS   0x10

Definition at line 27 of file clk.c.

#define CGU_SYS_VR9   0x0c

Definition at line 30 of file clk.c.

#define DDR_HZ   ram_clocks[ltq_cgu_r32(CGU_SYS) & 0x3]

Definition at line 24 of file clk.c.

Function Documentation

unsigned long ltq_ar9_cpu_hz ( void  )

Definition at line 72 of file clk.c.

unsigned long ltq_ar9_fpi_hz ( void  )

Definition at line 63 of file clk.c.

unsigned long ltq_ar9_sys_hz ( void  )

Definition at line 56 of file clk.c.

unsigned long ltq_danube_cpu_hz ( void  )

Definition at line 42 of file clk.c.

unsigned long ltq_danube_fpi_hz ( void  )

Definition at line 33 of file clk.c.

unsigned long ltq_vr9_cpu_hz ( void  )

Definition at line 80 of file clk.c.

unsigned long ltq_vr9_fpi_hz ( void  )

Definition at line 120 of file clk.c.