Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
clock.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/clk.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <plat/cpu-freq.h>
#include <plat/clock.h>
#include <plat/cpu.h>
#include <linux/serial_core.h>
#include <plat/regs-serial.h>

Go to the source code of this file.

Functions

 DEFINE_SPINLOCK (clocks_lock)
 
 arch_initcall (s3c_wdt_reset_init)
 
int clk_enable (struct clk *clk)
 
void clk_disable (struct clk *clk)
 
unsigned long clk_get_rate (struct clk *clk)
 
long clk_round_rate (struct clk *clk, unsigned long rate)
 
int clk_set_rate (struct clk *clk, unsigned long rate)
 
struct clkclk_get_parent (struct clk *clk)
 
int clk_set_parent (struct clk *clk, struct clk *parent)
 
 EXPORT_SYMBOL (clk_enable)
 
 EXPORT_SYMBOL (clk_disable)
 
 EXPORT_SYMBOL (clk_get_rate)
 
 EXPORT_SYMBOL (clk_round_rate)
 
 EXPORT_SYMBOL (clk_set_rate)
 
 EXPORT_SYMBOL (clk_get_parent)
 
 EXPORT_SYMBOL (clk_set_parent)
 
int clk_default_setrate (struct clk *clk, unsigned long rate)
 
int s3c24xx_register_clock (struct clk *clk)
 
int s3c24xx_register_clocks (struct clk **clks, int nr_clks)
 
void __init s3c_register_clocks (struct clk *clkp, int nr_clks)
 
void __init s3c_disable_clocks (struct clk *clkp, int nr_clks)
 
int __init s3c24xx_register_baseclocks (unsigned long xtal)
 

Variables

struct clks3c2410_wdtclk
 
struct clk_ops clk_ops_def_setrate
 
struct clk clk_xtal
 
struct clk clk_ext
 
struct clk clk_epll
 
struct clk clk_mpll
 
struct clk clk_upll
 
struct clk clk_f
 
struct clk clk_h
 
struct clk clk_p
 
struct clk clk_usb_bus
 
struct clk s3c24xx_uclk
 

Function Documentation

arch_initcall ( s3c_wdt_reset_init  )
int clk_default_setrate ( struct clk clk,
unsigned long  rate 
)

Definition at line 203 of file clock.c.

void clk_disable ( struct clk clk)

Definition at line 103 of file clock.c.

int clk_enable ( struct clk clk)

Definition at line 85 of file clock.c.

struct clk* clk_get_parent ( struct clk clk)
read

Definition at line 170 of file clock.c.

unsigned long clk_get_rate ( struct clk clk)

Definition at line 120 of file clock.c.

long clk_round_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 137 of file clock.c.

int clk_set_parent ( struct clk clk,
struct clk parent 
)

Definition at line 175 of file clock.c.

int clk_set_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 145 of file clock.c.

DEFINE_SPINLOCK ( clocks_lock  )
EXPORT_SYMBOL ( clk_enable  )
EXPORT_SYMBOL ( clk_disable  )
EXPORT_SYMBOL ( clk_get_rate  )
EXPORT_SYMBOL ( clk_round_rate  )
EXPORT_SYMBOL ( clk_set_rate  )
EXPORT_SYMBOL ( clk_get_parent  )
EXPORT_SYMBOL ( clk_set_parent  )
int __init s3c24xx_register_baseclocks ( unsigned long  xtal)

Definition at line 358 of file clock.c.

int s3c24xx_register_clock ( struct clk clk)

s3c24xx_register_clock() - register a clock : The clock to register

Add the specified clock to the list of clocks known by the system.

Definition at line 281 of file clock.c.

int s3c24xx_register_clocks ( struct clk **  clks,
int  nr_clks 
)

s3c24xx_register_clocks() - register an array of clock pointers : Pointer to an array of struct clk pointers : The number of clocks in the array.

Call s3c24xx_register_clock() for all the clock pointers contained in the list. Returns the number of failures.

Definition at line 303 of file clock.c.

void __init s3c_disable_clocks ( struct clk clkp,
int  nr_clks 
)

s3c_disable_clocks() - disable an array of clocks : Pointer to the first clock in the array. : Number of clocks to register.

for internal use only at initialisation time. disable the clocks in the array.

Definition at line 350 of file clock.c.

void __init s3c_register_clocks ( struct clk clkp,
int  nr_clks 
)

s3c_register_clocks() - register an array of clocks : Pointer to the first clock in the array. : Number of clocks to register.

Call s3c24xx_register_clock() on the array given, printing an error if it fails to register the clock (unlikely).

Definition at line 327 of file clock.c.

Variable Documentation

struct clk clk_epll
Initial value:
= {
.name = "epll",
}

Definition at line 224 of file clock.c.

struct clk clk_ext
Initial value:
= {
.name = "ext",
}

Definition at line 220 of file clock.c.

struct clk clk_f
Initial value:
= {
.name = "fclk",
.rate = 0,
.parent = &clk_mpll,
.ctrlbit = 0,
}

Definition at line 239 of file clock.c.

struct clk clk_h
Initial value:
= {
.name = "hclk",
.rate = 0,
.parent = NULL,
.ctrlbit = 0,
}

Definition at line 246 of file clock.c.

struct clk clk_mpll
Initial value:
= {
.name = "mpll",
}

Definition at line 228 of file clock.c.

struct clk_ops clk_ops_def_setrate
Initial value:
= {
.set_rate = clk_default_setrate,
}

Definition at line 209 of file clock.c.

struct clk clk_p
Initial value:
= {
.name = "pclk",
.rate = 0,
.parent = NULL,
.ctrlbit = 0,
}

Definition at line 254 of file clock.c.

struct clk clk_upll
Initial value:
= {
.name = "upll",
.parent = NULL,
.ctrlbit = 0,
}

Definition at line 233 of file clock.c.

struct clk clk_usb_bus
Initial value:
= {
.name = "usb-bus",
.rate = 0,
.parent = &clk_upll,
}

Definition at line 262 of file clock.c.

struct clk clk_xtal
Initial value:
= {
.name = "xtal",
.rate = 0,
.parent = NULL,
.ctrlbit = 0,
}

Definition at line 213 of file clock.c.

struct clk* s3c2410_wdtclk

Definition at line 68 of file clock.c.

struct clk s3c24xx_uclk
Initial value:
= {
.name = "uclk",
}

Definition at line 269 of file clock.c.