mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 23:45:31 +08:00
1306c08a7c
In order to handle errata I688, a page of sram was reserved by doing a static iotable map. Now that we use gen_pool to manage sram, we can completely remove all of these static mappings and use gen_pool_alloc() to get the one page of sram space needed to implement errata I688. omap_bus_sync will be NOP until SRAM initialization happens. Suggested-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Dave Gerlach <d-gerlach@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
77 lines
2.5 KiB
C
77 lines
2.5 KiB
C
/*
|
|
* Interface for functions that need to be run in internal SRAM
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __ASSEMBLY__
|
|
#include <plat/sram.h>
|
|
|
|
extern void omap2_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
|
|
u32 base_cs, u32 force_unlock);
|
|
extern void omap2_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
|
|
u32 mem_type);
|
|
extern u32 omap2_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val, int bypass);
|
|
|
|
extern 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);
|
|
extern void omap3_sram_restore_context(void);
|
|
|
|
/* Do not use these */
|
|
extern void omap24xx_sram_reprogram_clock(u32 ckctl, u32 dpllctl);
|
|
extern unsigned long omap24xx_sram_reprogram_clock_sz;
|
|
|
|
extern void omap242x_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
|
|
u32 base_cs, u32 force_unlock);
|
|
extern unsigned long omap242x_sram_ddr_init_sz;
|
|
|
|
extern u32 omap242x_sram_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val,
|
|
int bypass);
|
|
extern unsigned long omap242x_sram_set_prcm_sz;
|
|
|
|
extern void omap242x_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
|
|
u32 mem_type);
|
|
extern unsigned long omap242x_sram_reprogram_sdrc_sz;
|
|
|
|
|
|
extern void omap243x_sram_ddr_init(u32 *slow_dll_ctrl, u32 fast_dll_ctrl,
|
|
u32 base_cs, u32 force_unlock);
|
|
extern unsigned long omap243x_sram_ddr_init_sz;
|
|
|
|
extern u32 omap243x_sram_set_prcm(u32 dpll_ctrl_val, u32 sdrc_rfr_val,
|
|
int bypass);
|
|
extern unsigned long omap243x_sram_set_prcm_sz;
|
|
|
|
extern void omap243x_sram_reprogram_sdrc(u32 perf_level, u32 dll_val,
|
|
u32 mem_type);
|
|
extern unsigned long omap243x_sram_reprogram_sdrc_sz;
|
|
|
|
extern 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);
|
|
extern unsigned long omap3_sram_configure_core_dpll_sz;
|
|
|
|
#ifdef CONFIG_PM
|
|
extern void omap_push_sram_idle(void);
|
|
#else
|
|
static inline void omap_push_sram_idle(void) {}
|
|
#endif /* CONFIG_PM */
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
/*
|
|
* OMAP2+: define the SRAM PA addresses.
|
|
* Used by the SRAM management code and the idle sleep code.
|
|
*/
|
|
#define OMAP2_SRAM_PA 0x40200000
|
|
#define OMAP3_SRAM_PA 0x40200000
|