2 * arch/arm/plat-omap/include/mach/sram.h
4 * Interface for functions that need to be run in internal SRAM
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
11 #ifndef __ARCH_ARM_OMAP_SRAM_H
12 #define __ARCH_ARM_OMAP_SRAM_H
14 extern int __init
omap_sram_init(void);
15 extern void * omap_sram_push(void * start
, unsigned long size
);
16 extern void omap_sram_reprogram_clock(u32 dpllctl
, u32 ckctl
);
18 extern void omap2_sram_ddr_init(u32
*slow_dll_ctrl
, u32 fast_dll_ctrl
,
19 u32 base_cs
, u32 force_unlock
);
20 extern void omap2_sram_reprogram_sdrc(u32 perf_level
, u32 dll_val
,
22 extern u32
omap2_set_prcm(u32 dpll_ctrl_val
, u32 sdrc_rfr_val
, int bypass
);
24 extern u32
omap3_configure_core_dpll(
25 u32 m2
, u32 unlock_dll
, u32 f
, u32 inc
,
26 u32 sdrc_rfr_ctrl_0
, u32 sdrc_actim_ctrl_a_0
,
27 u32 sdrc_actim_ctrl_b_0
, u32 sdrc_mr_0
,
28 u32 sdrc_rfr_ctrl_1
, u32 sdrc_actim_ctrl_a_1
,
29 u32 sdrc_actim_ctrl_b_1
, u32 sdrc_mr_1
);
31 /* Do not use these */
32 extern void omap1_sram_reprogram_clock(u32 ckctl
, u32 dpllctl
);
33 extern unsigned long omap1_sram_reprogram_clock_sz
;
35 extern void omap24xx_sram_reprogram_clock(u32 ckctl
, u32 dpllctl
);
36 extern unsigned long omap24xx_sram_reprogram_clock_sz
;
38 extern void omap242x_sram_ddr_init(u32
*slow_dll_ctrl
, u32 fast_dll_ctrl
,
39 u32 base_cs
, u32 force_unlock
);
40 extern unsigned long omap242x_sram_ddr_init_sz
;
42 extern u32
omap242x_sram_set_prcm(u32 dpll_ctrl_val
, u32 sdrc_rfr_val
,
44 extern unsigned long omap242x_sram_set_prcm_sz
;
46 extern void omap242x_sram_reprogram_sdrc(u32 perf_level
, u32 dll_val
,
48 extern unsigned long omap242x_sram_reprogram_sdrc_sz
;
51 extern void omap243x_sram_ddr_init(u32
*slow_dll_ctrl
, u32 fast_dll_ctrl
,
52 u32 base_cs
, u32 force_unlock
);
53 extern unsigned long omap243x_sram_ddr_init_sz
;
55 extern u32
omap243x_sram_set_prcm(u32 dpll_ctrl_val
, u32 sdrc_rfr_val
,
57 extern unsigned long omap243x_sram_set_prcm_sz
;
59 extern void omap243x_sram_reprogram_sdrc(u32 perf_level
, u32 dll_val
,
61 extern unsigned long omap243x_sram_reprogram_sdrc_sz
;
63 extern u32
omap3_sram_configure_core_dpll(
64 u32 m2
, u32 unlock_dll
, u32 f
, u32 inc
,
65 u32 sdrc_rfr_ctrl_0
, u32 sdrc_actim_ctrl_a_0
,
66 u32 sdrc_actim_ctrl_b_0
, u32 sdrc_mr_0
,
67 u32 sdrc_rfr_ctrl_1
, u32 sdrc_actim_ctrl_a_1
,
68 u32 sdrc_actim_ctrl_b_1
, u32 sdrc_mr_1
);
69 extern unsigned long omap3_sram_configure_core_dpll_sz
;