Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
clock.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/clk.h>
#include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <mach/hardware.h>

Go to the source code of this file.

Data Structures

struct  clk
 

Functions

struct clkclk_get (struct device *dev, const char *id)
 
 EXPORT_SYMBOL (clk_get)
 
void clk_put (struct clk *clk)
 
 EXPORT_SYMBOL (clk_put)
 
int clk_enable (struct clk *clk)
 
 EXPORT_SYMBOL (clk_enable)
 
void clk_disable (struct clk *clk)
 
 EXPORT_SYMBOL (clk_disable)
 
unsigned long clk_get_rate (struct clk *clk)
 
 EXPORT_SYMBOL (clk_get_rate)
 
int clk_set_rate (struct clk *clk, unsigned long rate)
 
 EXPORT_SYMBOL (clk_set_rate)
 
int clk_register (struct clk *clk)
 
 EXPORT_SYMBOL (clk_register)
 
void clk_unregister (struct clk *clk)
 
 EXPORT_SYMBOL (clk_unregister)
 
 core_initcall (clk_init)
 

Variables

struct {
   unsigned long   rate
 
   unsigned long   cfg
 
   unsigned long   div
 
vga_clk_table []
 
struct {
   unsigned long   mrate
 
   unsigned long   prate
 
mclk_clk_table []
 
struct {
   unsigned long   prate
 
   unsigned long   rate
 
pllrate_table []
 
struct {
   unsigned long   prate
 
   unsigned long   drate
 
pddr_table []
 

Function Documentation

void clk_disable ( struct clk clk)

Definition at line 88 of file clock.c.

int clk_enable ( struct clk clk)

Definition at line 82 of file clock.c.

struct clk* clk_get ( struct device dev,
const char id 
)
read

Definition at line 60 of file clock.c.

unsigned long clk_get_rate ( struct clk clk)

Definition at line 93 of file clock.c.

void clk_put ( struct clk clk)

Definition at line 77 of file clock.c.

int clk_register ( struct clk clk)

Definition at line 217 of file clock.c.

int clk_set_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 136 of file clock.c.

void clk_unregister ( struct clk clk)

Definition at line 228 of file clock.c.

core_initcall ( clk_init  )
EXPORT_SYMBOL ( clk_get  )
EXPORT_SYMBOL ( clk_put  )
EXPORT_SYMBOL ( clk_enable  )
EXPORT_SYMBOL ( clk_disable  )
EXPORT_SYMBOL ( clk_get_rate  )
EXPORT_SYMBOL ( clk_set_rate  )
EXPORT_SYMBOL ( clk_register  )
EXPORT_SYMBOL ( clk_unregister  )

Variable Documentation

unsigned long cfg

Definition at line 101 of file clock.c.

unsigned long div

Definition at line 102 of file clock.c.

unsigned long drate

Definition at line 306 of file clock.c.

struct { ... } mclk_clk_table[]
Initial value:
= {
{.mrate = 500000000, .prate = 0x00109801},
{.mrate = 525000000, .prate = 0x00104C00},
{.mrate = 550000000, .prate = 0x00105000},
{.mrate = 575000000, .prate = 0x00105400},
{.mrate = 600000000, .prate = 0x00105800},
{.mrate = 625000000, .prate = 0x00105C00},
{.mrate = 650000000, .prate = 0x00106000},
{.mrate = 675000000, .prate = 0x00106400},
{.mrate = 700000000, .prate = 0x00106800},
{.mrate = 725000000, .prate = 0x00106C00},
{.mrate = 750000000, .prate = 0x00107000},
{.mrate = 775000000, .prate = 0x00107400},
{.mrate = 800000000, .prate = 0x00107800},
}
unsigned long mrate

Definition at line 118 of file clock.c.

struct { ... } pddr_table[]
Initial value:
= {
{.prate = 0x00100800, .drate = 44236800},
{.prate = 0x00100C00, .drate = 66355200},
{.prate = 0x00101000, .drate = 88473600},
{.prate = 0x00101400, .drate = 110592000},
{.prate = 0x00101800, .drate = 132710400},
{.prate = 0x00101C01, .drate = 154828800},
{.prate = 0x00102001, .drate = 176947200},
{.prate = 0x00102401, .drate = 199065600},
{.prate = 0x00102801, .drate = 221184000},
{.prate = 0x00102C01, .drate = 243302400},
{.prate = 0x00103001, .drate = 265420800},
{.prate = 0x00103401, .drate = 287539200},
{.prate = 0x00103801, .drate = 309657600},
{.prate = 0x00103C01, .drate = 331776000},
{.prate = 0x00104001, .drate = 353894400},
}
struct { ... } pllrate_table[]
unsigned long prate

Definition at line 119 of file clock.c.

unsigned long rate

Definition at line 100 of file clock.c.

struct { ... } vga_clk_table[]
Initial value:
= {
{.rate = 25175000, .cfg = 0x00002001, .div = 0x9},
{.rate = 31500000, .cfg = 0x00002001, .div = 0x7},
{.rate = 40000000, .cfg = 0x00003801, .div = 0x9},
{.rate = 49500000, .cfg = 0x00003801, .div = 0x7},
{.rate = 65000000, .cfg = 0x00002c01, .div = 0x4},
{.rate = 78750000, .cfg = 0x00002400, .div = 0x7},
{.rate = 108000000, .cfg = 0x00002c01, .div = 0x2},
{.rate = 106500000, .cfg = 0x00003c01, .div = 0x3},
{.rate = 50650000, .cfg = 0x00106400, .div = 0x9},
{.rate = 61500000, .cfg = 0x00106400, .div = 0xa},
{.rate = 85500000, .cfg = 0x00002800, .div = 0x6},
}