Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
clock.h File Reference
#include <linux/clk-provider.h>
#include <linux/clkdev.h>
#include <linux/list.h>
#include <mach/clk.h>

Go to the source code of this file.

Data Structures

struct  clk_mux_sel
 
struct  clk_pll_freq_table
 
struct  clk_tegra
 
struct  clk_duplicate
 
struct  tegra_clk_init_table
 

Macros

#define DIV_BUS   (1 << 0)
 
#define DIV_U71   (1 << 1)
 
#define DIV_U71_FIXED   (1 << 2)
 
#define DIV_2   (1 << 3)
 
#define DIV_U16   (1 << 4)
 
#define PLL_FIXED   (1 << 5)
 
#define PLL_HAS_CPCON   (1 << 6)
 
#define MUX   (1 << 7)
 
#define PLLD   (1 << 8)
 
#define PERIPH_NO_RESET   (1 << 9)
 
#define PERIPH_NO_ENB   (1 << 10)
 
#define PERIPH_EMC_ENB   (1 << 11)
 
#define PERIPH_MANUAL_RESET   (1 << 12)
 
#define PLL_ALT_MISC_REG   (1 << 13)
 
#define PLLU   (1 << 14)
 
#define PLLX   (1 << 15)
 
#define MUX_PWM   (1 << 16)
 
#define MUX8   (1 << 17)
 
#define DIV_U71_UART   (1 << 18)
 
#define MUX_CLK_OUT   (1 << 19)
 
#define PLLM   (1 << 20)
 
#define DIV_U71_INT   (1 << 21)
 
#define DIV_U71_IDLE   (1 << 22)
 
#define ENABLE_ON_INIT   (1 << 28)
 
#define PERIPH_ON_APB   (1 << 29)
 
#define to_clk_tegra(_hw)   container_of(_hw, struct clk_tegra, hw)
 

Enumerations

enum  clk_state { UNINITIALIZED = 0, ON, OFF }
 

Functions

void tegra_clk_add (struct clk *c)
 
void tegra2_init_clocks (void)
 
void tegra30_init_clocks (void)
 
struct clktegra_get_clock_by_name (const char *name)
 
void tegra_clk_init_from_table (struct tegra_clk_init_table *table)
 

Macro Definition Documentation

#define DIV_2   (1 << 3)

Definition at line 33 of file clock.h.

#define DIV_BUS   (1 << 0)

Definition at line 30 of file clock.h.

#define DIV_U16   (1 << 4)

Definition at line 34 of file clock.h.

#define DIV_U71   (1 << 1)

Definition at line 31 of file clock.h.

#define DIV_U71_FIXED   (1 << 2)

Definition at line 32 of file clock.h.

#define DIV_U71_IDLE   (1 << 22)

Definition at line 52 of file clock.h.

#define DIV_U71_INT   (1 << 21)

Definition at line 51 of file clock.h.

#define DIV_U71_UART   (1 << 18)

Definition at line 48 of file clock.h.

#define ENABLE_ON_INIT   (1 << 28)

Definition at line 53 of file clock.h.

#define MUX   (1 << 7)

Definition at line 37 of file clock.h.

#define MUX8   (1 << 17)

Definition at line 47 of file clock.h.

#define MUX_CLK_OUT   (1 << 19)

Definition at line 49 of file clock.h.

#define MUX_PWM   (1 << 16)

Definition at line 46 of file clock.h.

#define PERIPH_EMC_ENB   (1 << 11)

Definition at line 41 of file clock.h.

#define PERIPH_MANUAL_RESET   (1 << 12)

Definition at line 42 of file clock.h.

#define PERIPH_NO_ENB   (1 << 10)

Definition at line 40 of file clock.h.

#define PERIPH_NO_RESET   (1 << 9)

Definition at line 39 of file clock.h.

#define PERIPH_ON_APB   (1 << 29)

Definition at line 54 of file clock.h.

#define PLL_ALT_MISC_REG   (1 << 13)

Definition at line 43 of file clock.h.

#define PLL_FIXED   (1 << 5)

Definition at line 35 of file clock.h.

#define PLL_HAS_CPCON   (1 << 6)

Definition at line 36 of file clock.h.

#define PLLD   (1 << 8)

Definition at line 38 of file clock.h.

#define PLLM   (1 << 20)

Definition at line 50 of file clock.h.

#define PLLU   (1 << 14)

Definition at line 44 of file clock.h.

#define PLLX   (1 << 15)

Definition at line 45 of file clock.h.

#define to_clk_tegra (   _hw)    container_of(_hw, struct clk_tegra, hw)

Definition at line 57 of file clock.h.

Enumeration Type Documentation

enum clk_state
Enumerator:
UNINITIALIZED 
ON 
OFF 

Definition at line 73 of file clock.h.

Function Documentation

void tegra2_init_clocks ( void  )

Definition at line 1115 of file tegra20_clocks_data.c.

void tegra30_init_clocks ( void  )

Definition at line 1344 of file tegra30_clocks_data.c.

void tegra_clk_add ( struct clk c)

Definition at line 49 of file clock.c.

void tegra_clk_init_from_table ( struct tegra_clk_init_table table)

Definition at line 130 of file clock.c.

struct clk* tegra_get_clock_by_name ( const char name)
read

Definition at line 58 of file clock.c.