Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
clock.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <asm/div64.h>
#include <asm/mach-ath79/ath79.h>
#include <asm/mach-ath79/ar71xx_regs.h>
#include "common.h"

Go to the source code of this file.

Data Structures

struct  clk
 

Macros

#define AR71XX_BASE_FREQ   40000000
 
#define AR724X_BASE_FREQ   5000000
 
#define AR913X_BASE_FREQ   5000000
 

Functions

void __init ath79_clocks_init (void)
 
struct clkclk_get (struct device *dev, const char *id)
 
 EXPORT_SYMBOL (clk_get)
 
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)
 
void clk_put (struct clk *clk)
 
 EXPORT_SYMBOL (clk_put)
 

Macro Definition Documentation

#define AR71XX_BASE_FREQ   40000000

Definition at line 26 of file clock.c.

#define AR724X_BASE_FREQ   5000000

Definition at line 27 of file clock.c.

#define AR913X_BASE_FREQ   5000000

Definition at line 28 of file clock.c.

Function Documentation

void __init ath79_clocks_init ( void  )

Definition at line 298 of file clock.c.

void clk_disable ( struct clk clk)

Definition at line 358 of file clock.c.

int clk_enable ( struct clk clk)

Definition at line 352 of file clock.c.

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

Definition at line 328 of file clock.c.

unsigned long clk_get_rate ( struct clk clk)

Definition at line 363 of file clock.c.

void clk_put ( struct clk clk)

Definition at line 369 of file clock.c.

EXPORT_SYMBOL ( clk_get  )
EXPORT_SYMBOL ( clk_enable  )
EXPORT_SYMBOL ( clk_disable  )
EXPORT_SYMBOL ( clk_get_rate  )
EXPORT_SYMBOL ( clk_put  )