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

Go to the source code of this file.

Data Structures

struct  uart_clk
 
struct  arm_idlect1_clk
 

Macros

#define omap1_clk_disable_unused   NULL
 
#define CKCTL_PERDIV_OFFSET   0
 
#define CKCTL_LCDDIV_OFFSET   2
 
#define CKCTL_ARMDIV_OFFSET   4
 
#define CKCTL_DSPDIV_OFFSET   6
 
#define CKCTL_TCDIV_OFFSET   8
 
#define CKCTL_DSPMMUDIV_OFFSET   10
 
#define EN_DSPCK   13
 
#define CKCTL_DSPPERDIV_OFFSET   0
 
#define EN_WDTCK   0
 
#define EN_XORPCK   1
 
#define EN_PERCK   2
 
#define EN_LCDCK   3
 
#define EN_LBCK   4 /* Not on 1610/1710 */
 
#define EN_APICK   6
 
#define EN_TIMCK   7
 
#define DMACK_REQ   8
 
#define EN_GPIOCK   9 /* Not on 1610/1710 */
 
#define EN_CKOUT_ARM   11
 
#define EN_OCPI_CK   0
 
#define EN_TC1_CK   2
 
#define EN_TC2_CK   4
 
#define EN_DSPTIMCK   5
 
#define SDW_MCLK_INV_BIT   2 /* In ULPD_CLKC_CTRL */
 
#define USB_MCLK_EN_BIT   4 /* In ULPD_CLKC_CTRL */
 
#define USB_HOST_HHC_UHOST_EN   9 /* In MOD_CONF_CTRL_0 */
 
#define SWD_ULPD_PLL_CLK_REQ   1 /* In SWD_CLK_DIV_CTRL_SEL */
 
#define COM_ULPD_PLL_CLK_REQ   1 /* In COM_CLK_DIV_CTRL_SEL */
 
#define SWD_CLK_DIV_CTRL_SEL   0xfffe0874
 
#define COM_CLK_DIV_CTRL_SEL   0xfffe0878
 
#define SOFT_REQ_REG   0xfffe0834
 
#define SOFT_REQ_REG2   0xfffe0880
 

Functions

int omap1_clk_init (void)
 
void omap1_clk_late_init (void)
 
int omap1_clk_enable (struct clk *clk)
 
void omap1_clk_disable (struct clk *clk)
 
long omap1_clk_round_rate (struct clk *clk, unsigned long rate)
 
int omap1_clk_set_rate (struct clk *clk, unsigned long rate)
 
unsigned long omap1_ckctl_recalc (struct clk *clk)
 
int omap1_set_sossi_rate (struct clk *clk, unsigned long rate)
 
unsigned long omap1_sossi_recalc (struct clk *clk)
 
unsigned long omap1_ckctl_recalc_dsp_domain (struct clk *clk)
 
int omap1_clk_set_rate_dsp_domain (struct clk *clk, unsigned long rate)
 
int omap1_set_uart_rate (struct clk *clk, unsigned long rate)
 
unsigned long omap1_uart_recalc (struct clk *clk)
 
int omap1_set_ext_clk_rate (struct clk *clk, unsigned long rate)
 
long omap1_round_ext_clk_rate (struct clk *clk, unsigned long rate)
 
void omap1_init_ext_clk (struct clk *clk)
 
int omap1_select_table_rate (struct clk *clk, unsigned long rate)
 
long omap1_round_to_table_rate (struct clk *clk, unsigned long rate)
 
int omap1_clk_set_rate_ckctl_arm (struct clk *clk, unsigned long rate)
 
long omap1_clk_round_rate_ckctl_arm (struct clk *clk, unsigned long rate)
 
unsigned long omap1_watchdog_recalc (struct clk *clk)
 

Variables

__u32 arm_idlect1_mask
 
struct clkapi_ck_p
 
struct clkck_dpll1_p
 
struct clkck_ref_p
 
struct clkops clkops_dspck
 
struct clkops clkops_dummy
 
struct clkops clkops_uart_16xx
 
struct clkops clkops_generic
 
u32 cpu_mask
 

Macro Definition Documentation

#define CKCTL_ARMDIV_OFFSET   4

Definition at line 63 of file clock.h.

#define CKCTL_DSPDIV_OFFSET   6

Definition at line 64 of file clock.h.

#define CKCTL_DSPMMUDIV_OFFSET   10

Definition at line 66 of file clock.h.

#define CKCTL_DSPPERDIV_OFFSET   0

Definition at line 71 of file clock.h.

#define CKCTL_LCDDIV_OFFSET   2

Definition at line 62 of file clock.h.

#define CKCTL_PERDIV_OFFSET   0

Definition at line 61 of file clock.h.

#define CKCTL_TCDIV_OFFSET   8

Definition at line 65 of file clock.h.

#define COM_CLK_DIV_CTRL_SEL   0xfffe0878

Definition at line 102 of file clock.h.

#define COM_ULPD_PLL_CLK_REQ   1 /* In COM_CLK_DIV_CTRL_SEL */

Definition at line 100 of file clock.h.

#define DMACK_REQ   8

Definition at line 82 of file clock.h.

#define EN_APICK   6

Definition at line 80 of file clock.h.

#define EN_CKOUT_ARM   11

Definition at line 85 of file clock.h.

#define EN_DSPCK   13

Definition at line 68 of file clock.h.

#define EN_DSPTIMCK   5

Definition at line 93 of file clock.h.

#define EN_GPIOCK   9 /* Not on 1610/1710 */

Definition at line 83 of file clock.h.

#define EN_LBCK   4 /* Not on 1610/1710 */

Definition at line 78 of file clock.h.

#define EN_LCDCK   3

Definition at line 77 of file clock.h.

#define EN_OCPI_CK   0

Definition at line 88 of file clock.h.

#define EN_PERCK   2

Definition at line 76 of file clock.h.

#define EN_TC1_CK   2

Definition at line 89 of file clock.h.

#define EN_TC2_CK   4

Definition at line 90 of file clock.h.

#define EN_TIMCK   7

Definition at line 81 of file clock.h.

#define EN_WDTCK   0

Definition at line 74 of file clock.h.

#define EN_XORPCK   1

Definition at line 75 of file clock.h.

#define omap1_clk_disable_unused   NULL

Definition at line 45 of file clock.h.

#define SDW_MCLK_INV_BIT   2 /* In ULPD_CLKC_CTRL */

Definition at line 96 of file clock.h.

#define SOFT_REQ_REG   0xfffe0834

Definition at line 103 of file clock.h.

#define SOFT_REQ_REG2   0xfffe0880

Definition at line 104 of file clock.h.

#define SWD_CLK_DIV_CTRL_SEL   0xfffe0874

Definition at line 101 of file clock.h.

#define SWD_ULPD_PLL_CLK_REQ   1 /* In SWD_CLK_DIV_CTRL_SEL */

Definition at line 99 of file clock.h.

#define USB_HOST_HHC_UHOST_EN   9 /* In MOD_CONF_CTRL_0 */

Definition at line 98 of file clock.h.

#define USB_MCLK_EN_BIT   4 /* In ULPD_CLKC_CTRL */

Definition at line 97 of file clock.h.

Function Documentation

unsigned long omap1_ckctl_recalc ( struct clk clk)

Definition at line 166 of file clock.c.

unsigned long omap1_ckctl_recalc_dsp_domain ( struct clk clk)

Definition at line 174 of file clock.c.

void omap1_clk_disable ( struct clk clk)

Definition at line 439 of file clock.c.

int omap1_clk_enable ( struct clk clk)

Definition at line 411 of file clock.c.

int omap1_clk_init ( void  )

Definition at line 786 of file clock_data.c.

void omap1_clk_late_init ( void  )

Definition at line 930 of file clock_data.c.

long omap1_clk_round_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 560 of file clock.c.

long omap1_clk_round_rate_ckctl_arm ( struct clk clk,
unsigned long  rate 
)

Definition at line 248 of file clock.c.

int omap1_clk_set_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 568 of file clock.c.

int omap1_clk_set_rate_ckctl_arm ( struct clk clk,
unsigned long  rate 
)

Definition at line 258 of file clock.c.

int omap1_clk_set_rate_dsp_domain ( struct clk clk,
unsigned long  rate 
)

Definition at line 228 of file clock.c.

void omap1_init_ext_clk ( struct clk clk)

Definition at line 393 of file clock.c.

long omap1_round_ext_clk_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 388 of file clock.c.

long omap1_round_to_table_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 278 of file clock.c.

int omap1_select_table_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 193 of file clock.c.

int omap1_set_ext_clk_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 347 of file clock.c.

int omap1_set_sossi_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 365 of file clock.c.

int omap1_set_uart_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 329 of file clock.c.

unsigned long omap1_sossi_recalc ( struct clk clk)

Definition at line 49 of file clock.c.

unsigned long omap1_uart_recalc ( struct clk clk)

Definition at line 43 of file clock.c.

unsigned long omap1_watchdog_recalc ( struct clk clk)

Variable Documentation

struct clk* api_ck_p

Definition at line 37 of file clock.c.

__u32 arm_idlect1_mask

Definition at line 36 of file clock.c.

struct clk * ck_dpll1_p

Definition at line 37 of file clock.c.

struct clk * ck_ref_p

Definition at line 37 of file clock.c.

struct clkops clkops_dspck

Definition at line 520 of file clock.c.

struct clkops clkops_dummy
struct clkops clkops_generic

Definition at line 494 of file clock.c.

struct clkops clkops_uart_16xx

Definition at line 555 of file clock.c.

u32 cpu_mask

Definition at line 784 of file clock_data.c.