Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sram.h File Reference
#include <asm/fncpy.h>

Go to the source code of this file.

Macros

#define omap_sram_push(funcp, size)
 
#define OMAP2_SRAM_PA   0x40200000
 
#define OMAP3_SRAM_PA   0x40200000
 
#define OMAP4_SRAM_PA   0x40300000
 
#define AM33XX_SRAM_PA   0x40300000
 

Functions

voidomap_sram_push_address (unsigned long size)
 
void omap_sram_reprogram_clock (u32 dpllctl, u32 ckctl)
 
void omap2_sram_ddr_init (u32 *slow_dll_ctrl, u32 fast_dll_ctrl, u32 base_cs, u32 force_unlock)
 
void omap2_sram_reprogram_sdrc (u32 perf_level, u32 dll_val, u32 mem_type)
 
u32 omap2_set_prcm (u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass)
 
u32 omap3_configure_core_dpll (u32 m2, u32 unlock_dll, u32 f, u32 inc, u32 sdrc_rfr_ctrl_0, u32 sdrc_actim_ctrl_a_0, u32 sdrc_actim_ctrl_b_0, u32 sdrc_mr_0, u32 sdrc_rfr_ctrl_1, u32 sdrc_actim_ctrl_a_1, u32 sdrc_actim_ctrl_b_1, u32 sdrc_mr_1)
 
void omap3_sram_restore_context (void)
 
void omap1_sram_reprogram_clock (u32 ckctl, u32 dpllctl)
 
void omap24xx_sram_reprogram_clock (u32 ckctl, u32 dpllctl)
 
void omap242x_sram_ddr_init (u32 *slow_dll_ctrl, u32 fast_dll_ctrl, u32 base_cs, u32 force_unlock)
 
u32 omap242x_sram_set_prcm (u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass)
 
void omap242x_sram_reprogram_sdrc (u32 perf_level, u32 dll_val, u32 mem_type)
 
void omap243x_sram_ddr_init (u32 *slow_dll_ctrl, u32 fast_dll_ctrl, u32 base_cs, u32 force_unlock)
 
u32 omap243x_sram_set_prcm (u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass)
 
void omap243x_sram_reprogram_sdrc (u32 perf_level, u32 dll_val, u32 mem_type)
 
u32 omap3_sram_configure_core_dpll (u32 m2, u32 unlock_dll, u32 f, u32 inc, u32 sdrc_rfr_ctrl_0, u32 sdrc_actim_ctrl_a_0, u32 sdrc_actim_ctrl_b_0, u32 sdrc_mr_0, u32 sdrc_rfr_ctrl_1, u32 sdrc_actim_ctrl_a_1, u32 sdrc_actim_ctrl_b_1, u32 sdrc_mr_1)
 

Variables

unsigned long omap1_sram_reprogram_clock_sz
 
unsigned long omap24xx_sram_reprogram_clock_sz
 
unsigned long omap242x_sram_ddr_init_sz
 
unsigned long omap242x_sram_set_prcm_sz
 
unsigned long omap242x_sram_reprogram_sdrc_sz
 
unsigned long omap243x_sram_ddr_init_sz
 
unsigned long omap243x_sram_set_prcm_sz
 
unsigned long omap243x_sram_reprogram_sdrc_sz
 
unsigned long omap3_sram_configure_core_dpll_sz
 

Macro Definition Documentation

#define AM33XX_SRAM_PA   0x40300000

Definition at line 104 of file sram.h.

#define OMAP2_SRAM_PA   0x40200000

Definition at line 96 of file sram.h.

#define OMAP3_SRAM_PA   0x40200000

Definition at line 97 of file sram.h.

#define OMAP4_SRAM_PA   0x40300000

Definition at line 102 of file sram.h.

#define omap_sram_push (   funcp,
  size 
)
Value:
({ \
typeof(&(funcp)) _res = NULL; \
void *_sram_address = omap_sram_push_address(size); \
if (_sram_address) \
_res = fncpy(_sram_address, &(funcp), size); \
_res; \
})

Definition at line 20 of file sram.h.

Function Documentation

void omap1_sram_reprogram_clock ( u32  ckctl,
u32  dpllctl 
)
void omap242x_sram_ddr_init ( u32 slow_dll_ctrl,
u32  fast_dll_ctrl,
u32  base_cs,
u32  force_unlock 
)
void omap242x_sram_reprogram_sdrc ( u32  perf_level,
u32  dll_val,
u32  mem_type 
)
u32 omap242x_sram_set_prcm ( u32  dpll_ctrl_val,
u32  sdrc_rfr_val,
int  bypass 
)
void omap243x_sram_ddr_init ( u32 slow_dll_ctrl,
u32  fast_dll_ctrl,
u32  base_cs,
u32  force_unlock 
)
void omap243x_sram_reprogram_sdrc ( u32  perf_level,
u32  dll_val,
u32  mem_type 
)
u32 omap243x_sram_set_prcm ( u32  dpll_ctrl_val,
u32  sdrc_rfr_val,
int  bypass 
)
void omap24xx_sram_reprogram_clock ( u32  ckctl,
u32  dpllctl 
)
u32 omap2_set_prcm ( u32  dpll_ctrl_val,
u32  sdrc_rfr_val,
int  bypass 
)
void omap2_sram_ddr_init ( u32 slow_dll_ctrl,
u32  fast_dll_ctrl,
u32  base_cs,
u32  force_unlock 
)
void omap2_sram_reprogram_sdrc ( u32  perf_level,
u32  dll_val,
u32  mem_type 
)
u32 omap3_configure_core_dpll ( u32  m2,
u32  unlock_dll,
u32  f,
u32  inc,
u32  sdrc_rfr_ctrl_0,
u32  sdrc_actim_ctrl_a_0,
u32  sdrc_actim_ctrl_b_0,
u32  sdrc_mr_0,
u32  sdrc_rfr_ctrl_1,
u32  sdrc_actim_ctrl_a_1,
u32  sdrc_actim_ctrl_b_1,
u32  sdrc_mr_1 
)
u32 omap3_sram_configure_core_dpll ( u32  m2,
u32  unlock_dll,
u32  f,
u32  inc,
u32  sdrc_rfr_ctrl_0,
u32  sdrc_actim_ctrl_a_0,
u32  sdrc_actim_ctrl_b_0,
u32  sdrc_mr_0,
u32  sdrc_rfr_ctrl_1,
u32  sdrc_actim_ctrl_a_1,
u32  sdrc_actim_ctrl_b_1,
u32  sdrc_mr_1 
)
void omap3_sram_restore_context ( void  )
void* omap_sram_push_address ( unsigned long  size)

Definition at line 221 of file sram.c.

void omap_sram_reprogram_clock ( u32  dpllctl,
u32  ckctl 
)

Variable Documentation

unsigned long omap1_sram_reprogram_clock_sz
unsigned long omap242x_sram_ddr_init_sz
unsigned long omap242x_sram_reprogram_sdrc_sz
unsigned long omap242x_sram_set_prcm_sz
unsigned long omap243x_sram_ddr_init_sz
unsigned long omap243x_sram_reprogram_sdrc_sz
unsigned long omap243x_sram_set_prcm_sz
unsigned long omap24xx_sram_reprogram_clock_sz
unsigned long omap3_sram_configure_core_dpll_sz