Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
clock.c File Reference
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/amba/bus.h>
#include <linux/amba/clcd.h>
#include <linux/clkdev.h>
#include <mach/hardware.h>
#include <mach/platform.h>
#include "clock.h"
#include "common.h"

Go to the source code of this file.

Macros

#define OTG_ALWAYS_MASK
 

Functions

u32 clk_get_pllrate_from_reg (u32 inputclk, u32 regval)
 
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)
 
long clk_round_rate (struct clk *clk, unsigned long rate)
 
 EXPORT_SYMBOL (clk_round_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)
 
 core_initcall (clk_init)
 

Macro Definition Documentation

#define OTG_ALWAYS_MASK
Value:
LPC32XX_USB_OTG_I2C_CLOCK_ON)

Definition at line 777 of file clock.c.

Function Documentation

void clk_disable ( struct clk clk)

Definition at line 1117 of file clock.c.

int clk_enable ( struct clk clk)

Definition at line 1101 of file clock.c.

struct clk* clk_get_parent ( struct clk clk)
read

Definition at line 1182 of file clock.c.

u32 clk_get_pllrate_from_reg ( u32  inputclk,
u32  regval 
)

Definition at line 208 of file clock.c.

unsigned long clk_get_rate ( struct clk clk)

Definition at line 1130 of file clock.c.

long clk_round_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 1158 of file clock.c.

int clk_set_parent ( struct clk clk,
struct clk parent 
)

Definition at line 1172 of file clock.c.

int clk_set_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 1139 of file clock.c.

core_initcall ( clk_init  )
EXPORT_SYMBOL ( clk_enable  )
EXPORT_SYMBOL ( clk_disable  )
EXPORT_SYMBOL ( clk_get_rate  )
EXPORT_SYMBOL ( clk_set_rate  )
EXPORT_SYMBOL ( clk_round_rate  )
EXPORT_SYMBOL ( clk_set_parent  )
EXPORT_SYMBOL ( clk_get_parent  )