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/kernel.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/clk.h>
#include <linux/mutex.h>
#include <linux/cpufreq.h>
#include <linux/io.h>
#include <plat/clock.h>

Go to the source code of this file.

Functions

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)
 
long clk_round_rate (struct clk *clk, unsigned long rate)
 
 EXPORT_SYMBOL (clk_round_rate)
 
int clk_set_rate (struct clk *clk, unsigned long rate)
 
 EXPORT_SYMBOL (clk_set_rate)
 
int clk_set_parent (struct clk *clk, struct clk *parent)
 
 EXPORT_SYMBOL (clk_set_parent)
 
struct clkclk_get_parent (struct clk *clk)
 
 EXPORT_SYMBOL (clk_get_parent)
 
 __setup ("mpurate=", omap_clk_setup)
 
unsigned long followparent_recalc (struct clk *clk)
 
unsigned long omap_fixed_divisor_recalc (struct clk *clk)
 
void clk_reparent (struct clk *child, struct clk *parent)
 
void propagate_rate (struct clk *tclk)
 
void recalculate_root_clocks (void)
 
void clk_preinit (struct clk *clk)
 
int clk_register (struct clk *clk)
 
 EXPORT_SYMBOL (clk_register)
 
void clk_unregister (struct clk *clk)
 
 EXPORT_SYMBOL (clk_unregister)
 
void clk_enable_init_clocks (void)
 
int omap_clk_enable_autoidle_all (void)
 
int omap_clk_disable_autoidle_all (void)
 
int __init clk_init (struct clk_functions *custom_clocks)
 

Variables

int __initdata mpurate
 
struct clkops clkops_null
 
struct clk dummy_ck
 

Function Documentation

__setup ( )
void clk_disable ( struct clk clk)

Definition at line 56 of file clock.c.

int clk_enable ( struct clk clk)

Definition at line 37 of file clock.c.

void clk_enable_init_clocks ( void  )

Definition at line 305 of file clock.c.

struct clk* clk_get_parent ( struct clk clk)
read

Definition at line 165 of file clock.c.

unsigned long clk_get_rate ( struct clk clk)

Definition at line 81 of file clock.c.

int __init clk_init ( struct clk_functions custom_clocks)

Definition at line 410 of file clock.c.

void clk_preinit ( struct clk clk)

clk_preinit - initialize any fields in the struct clk before clk init : struct clk * to initialize

Initialize any struct clk fields needed before normal clk initialization can run. No return value.

Definition at line 262 of file clock.c.

int clk_register ( struct clk clk)

Definition at line 267 of file clock.c.

void clk_reparent ( struct clk child,
struct clk parent 
)

Definition at line 212 of file clock.c.

long clk_round_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 101 of file clock.c.

int clk_set_parent ( struct clk clk,
struct clk parent 
)

Definition at line 141 of file clock.c.

int clk_set_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 120 of file clock.c.

void clk_unregister ( struct clk clk)

Definition at line 293 of file clock.c.

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_set_parent  )
EXPORT_SYMBOL ( clk_get_parent  )
EXPORT_SYMBOL ( clk_register  )
EXPORT_SYMBOL ( clk_unregister  )
unsigned long followparent_recalc ( struct clk clk)

Definition at line 196 of file clock.c.

int omap_clk_disable_autoidle_all ( void  )

Definition at line 331 of file clock.c.

int omap_clk_enable_autoidle_all ( void  )

Definition at line 315 of file clock.c.

unsigned long omap_fixed_divisor_recalc ( struct clk clk)

Definition at line 205 of file clock.c.

void propagate_rate ( struct clk tclk)

Definition at line 224 of file clock.c.

void recalculate_root_clocks ( void  )

recalculate_root_clocks - recalculate and propagate all root clocks

Recalculates all root clocks (clocks with no parent), which if the clock's .recalc is set correctly, should also propagate their rates. Called at init.

Definition at line 244 of file clock.c.

Variable Documentation

struct clkops clkops_null
Initial value:
= {
.enable = clkll_enable_null,
.disable = clkll_disable_null,
}

Definition at line 359 of file clock.c.

struct clk dummy_ck
Initial value:
= {
.name = "dummy",
.ops = &clkops_null,
}

Definition at line 369 of file clock.c.

int __initdata mpurate

Definition at line 175 of file clock.c.