Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Interface for functions that need to be run in internal SRAM
0004  */
0005 
0006 #ifndef __ASSEMBLY__
0007 
0008 extern void omap2_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
0009                 u32 base_cs, u32 force_unlock);
0010 extern void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
0011                       u32 mem_type);
0012 extern u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass);
0013 
0014 extern void omap3_sram_restore_context(void);
0015 
0016 extern int __init omap_sram_init(void);
0017 
0018 extern void *omap_sram_push(void *funcp, unsigned long size);
0019 
0020 /* Do not use these */
0021 extern void omap24xx_sram_reprogram_clock(u32 ckctl, u32 dpllctl);
0022 extern unsigned long omap24xx_sram_reprogram_clock_sz;
0023 
0024 extern void omap242x_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
0025                         u32 base_cs, u32 force_unlock);
0026 extern unsigned long omap242x_sram_ddr_init_sz;
0027 
0028 extern u32 omap242x_sram_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val,
0029                         int bypass);
0030 extern unsigned long omap242x_sram_set_prcm_sz;
0031 
0032 extern void omap242x_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
0033                         u32 mem_type);
0034 extern unsigned long omap242x_sram_reprogram_sdrc_sz;
0035 
0036 
0037 extern void omap243x_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
0038                         u32 base_cs, u32 force_unlock);
0039 extern unsigned long omap243x_sram_ddr_init_sz;
0040 
0041 extern u32 omap243x_sram_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val,
0042                         int bypass);
0043 extern unsigned long omap243x_sram_set_prcm_sz;
0044 
0045 extern void omap243x_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
0046                         u32 mem_type);
0047 extern unsigned long omap243x_sram_reprogram_sdrc_sz;
0048 
0049 #ifdef CONFIG_PM
0050 extern void omap_push_sram_idle(void);
0051 #else
0052 static inline void omap_push_sram_idle(void) {}
0053 #endif /* CONFIG_PM */
0054 
0055 #endif /* __ASSEMBLY__ */
0056 
0057 /*
0058  * OMAP2+: define the SRAM PA addresses.
0059  * Used by the SRAM management code and the idle sleep code.
0060  */
0061 #define OMAP2_SRAM_PA       0x40200000
0062 #define OMAP3_SRAM_PA           0x40200000