aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/sram.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/include/plat/sram.h')
-rw-r--r--arch/arm/plat-omap/include/plat/sram.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/sram.h b/arch/arm/plat-omap/include/plat/sram.h
new file mode 100644
index 000000000000..8974e3fc2691
--- /dev/null
+++ b/arch/arm/plat-omap/include/plat/sram.h
@@ -0,0 +1,71 @@
1/*
2 * arch/arm/plat-omap/include/mach/sram.h
3 *
4 * Interface for functions that need to be run in internal SRAM
5 *
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.
9 */
10
11#ifndef __ARCH_ARM_OMAP_SRAM_H
12#define __ARCH_ARM_OMAP_SRAM_H
13
14extern int __init omap_sram_init(void);
15extern void * omap_sram_push(void * start, unsigned long size);
16extern void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl);
17
18extern void omap2_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
19 u32 base_cs, u32 force_unlock);
20extern void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
21 u32 mem_type);
22extern u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass);
23
24extern 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);
30
31/* Do not use these */
32extern void omap1_sram_reprogram_clock(u32 ckctl, u32 dpllctl);
33extern unsigned long omap1_sram_reprogram_clock_sz;
34
35extern void omap24xx_sram_reprogram_clock(u32 ckctl, u32 dpllctl);
36extern unsigned long omap24xx_sram_reprogram_clock_sz;
37
38extern void omap242x_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
39 u32 base_cs, u32 force_unlock);
40extern unsigned long omap242x_sram_ddr_init_sz;
41
42extern u32 omap242x_sram_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val,
43 int bypass);
44extern unsigned long omap242x_sram_set_prcm_sz;
45
46extern void omap242x_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
47 u32 mem_type);
48extern unsigned long omap242x_sram_reprogram_sdrc_sz;
49
50
51extern void omap243x_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
52 u32 base_cs, u32 force_unlock);
53extern unsigned long omap243x_sram_ddr_init_sz;
54
55extern u32 omap243x_sram_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val,
56 int bypass);
57extern unsigned long omap243x_sram_set_prcm_sz;
58
59extern void omap243x_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
60 u32 mem_type);
61extern unsigned long omap243x_sram_reprogram_sdrc_sz;
62
63extern 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);
69extern unsigned long omap3_sram_configure_core_dpll_sz;
70
71#endif