Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cm2xxx_3xxx.c File Reference
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/io.h>
#include "soc.h"
#include "iomap.h"
#include "common.h"
#include "cm.h"
#include "cm2xxx_3xxx.h"
#include "cm-regbits-24xx.h"
#include "cm-regbits-34xx.h"

Go to the source code of this file.

Macros

#define DPLL_AUTOIDLE_DISABLE   0x0
 
#define OMAP2XXX_DPLL_AUTOIDLE_LOW_POWER_STOP   0x3
 
#define OMAP2XXX_APLL_AUTOIDLE_DISABLE   0x0
 
#define OMAP2XXX_APLL_AUTOIDLE_LOW_POWER_STOP   0x3
 

Functions

u32 omap2_cm_read_mod_reg (s16 module, u16 idx)
 
void omap2_cm_write_mod_reg (u32 val, s16 module, u16 idx)
 
u32 omap2_cm_rmw_mod_reg_bits (u32 mask, u32 bits, s16 module, s16 idx)
 
u32 omap2_cm_set_mod_reg_bits (u32 bits, s16 module, s16 idx)
 
u32 omap2_cm_clear_mod_reg_bits (u32 bits, s16 module, s16 idx)
 
bool omap2_cm_is_clkdm_in_hwsup (s16 module, u32 mask)
 
void omap2xxx_cm_clkdm_enable_hwsup (s16 module, u32 mask)
 
void omap2xxx_cm_clkdm_disable_hwsup (s16 module, u32 mask)
 
void omap3xxx_cm_clkdm_enable_hwsup (s16 module, u32 mask)
 
void omap3xxx_cm_clkdm_disable_hwsup (s16 module, u32 mask)
 
void omap3xxx_cm_clkdm_force_sleep (s16 module, u32 mask)
 
void omap3xxx_cm_clkdm_force_wakeup (s16 module, u32 mask)
 
void omap2xxx_cm_set_dpll_disable_autoidle (void)
 
void omap2xxx_cm_set_dpll_auto_low_power_stop (void)
 
void omap2xxx_cm_set_apll54_disable_autoidle (void)
 
void omap2xxx_cm_set_apll54_auto_low_power_stop (void)
 
void omap2xxx_cm_set_apll96_disable_autoidle (void)
 
void omap2xxx_cm_set_apll96_auto_low_power_stop (void)
 
int omap2_cm_wait_module_ready (s16 prcm_mod, u8 idlest_id, u8 idlest_shift)
 

Macro Definition Documentation

#define DPLL_AUTOIDLE_DISABLE   0x0

Definition at line 30 of file cm2xxx_3xxx.c.

#define OMAP2XXX_APLL_AUTOIDLE_DISABLE   0x0

Definition at line 34 of file cm2xxx_3xxx.c.

#define OMAP2XXX_APLL_AUTOIDLE_LOW_POWER_STOP   0x3

Definition at line 35 of file cm2xxx_3xxx.c.

#define OMAP2XXX_DPLL_AUTOIDLE_LOW_POWER_STOP   0x3

Definition at line 31 of file cm2xxx_3xxx.c.

Function Documentation

u32 omap2_cm_clear_mod_reg_bits ( u32  bits,
s16  module,
s16  idx 
)

Definition at line 69 of file cm2xxx_3xxx.c.

bool omap2_cm_is_clkdm_in_hwsup ( s16  module,
u32  mask 
)

Definition at line 88 of file cm2xxx_3xxx.c.

u32 omap2_cm_read_mod_reg ( s16  module,
u16  idx 
)

Definition at line 41 of file cm2xxx_3xxx.c.

u32 omap2_cm_rmw_mod_reg_bits ( u32  mask,
u32  bits,
s16  module,
s16  idx 
)

Definition at line 52 of file cm2xxx_3xxx.c.

u32 omap2_cm_set_mod_reg_bits ( u32  bits,
s16  module,
s16  idx 
)

Definition at line 64 of file cm2xxx_3xxx.c.

int omap2_cm_wait_module_ready ( s16  prcm_mod,
u8  idlest_id,
u8  idlest_shift 
)

omap2_cm_wait_idlest_ready - wait for a module to leave idle or standby : PRCM module offset : CM_IDLESTx register ID (i.e., x = 1, 2, 3) : shift of the bit in the CM_IDLEST* register to check

XXX document

Definition at line 211 of file cm2xxx_3xxx.c.

void omap2_cm_write_mod_reg ( u32  val,
s16  module,
u16  idx 
)

Definition at line 46 of file cm2xxx_3xxx.c.

void omap2xxx_cm_clkdm_disable_hwsup ( s16  module,
u32  mask 
)

Definition at line 112 of file cm2xxx_3xxx.c.

void omap2xxx_cm_clkdm_enable_hwsup ( s16  module,
u32  mask 
)

Definition at line 107 of file cm2xxx_3xxx.c.

void omap2xxx_cm_set_apll54_auto_low_power_stop ( void  )

Definition at line 181 of file cm2xxx_3xxx.c.

void omap2xxx_cm_set_apll54_disable_autoidle ( void  )

Definition at line 175 of file cm2xxx_3xxx.c.

void omap2xxx_cm_set_apll96_auto_low_power_stop ( void  )

Definition at line 193 of file cm2xxx_3xxx.c.

void omap2xxx_cm_set_apll96_disable_autoidle ( void  )

Definition at line 187 of file cm2xxx_3xxx.c.

void omap2xxx_cm_set_dpll_auto_low_power_stop ( void  )

Definition at line 156 of file cm2xxx_3xxx.c.

void omap2xxx_cm_set_dpll_disable_autoidle ( void  )

Definition at line 151 of file cm2xxx_3xxx.c.

void omap3xxx_cm_clkdm_disable_hwsup ( s16  module,
u32  mask 
)

Definition at line 122 of file cm2xxx_3xxx.c.

void omap3xxx_cm_clkdm_enable_hwsup ( s16  module,
u32  mask 
)

Definition at line 117 of file cm2xxx_3xxx.c.

void omap3xxx_cm_clkdm_force_sleep ( s16  module,
u32  mask 
)

Definition at line 127 of file cm2xxx_3xxx.c.

void omap3xxx_cm_clkdm_force_wakeup ( s16  module,
u32  mask 
)

Definition at line 132 of file cm2xxx_3xxx.c.