mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
cc26b3b01b
Add minimal omap3430 support based on earlier patches from Syed Mohammed Khasim. Also merge in omap34xx SRAM support from Karthik Dasu and use consistent naming for sram init functions. Also do following changes that make 34xx support usable: - Remove unused sram.c functions for 34xx - Rename IRQ_SIR_IRQ to INTCPS_SIR_IRQ and define it locally in entry-macro.S - Update mach-omap2/io.c to support 2420, 2430, and 34xx - Also merge in 34xx GPMC changes to add fields wr_access and wr_data_mux_bus from Adrian Hunter - Remove memory initialization call omap2_init_memory() until until more generic memory initialization patches are posted. It's OK to rely on bootloader initialization until then. Signed-off-by: Syed Mohammed, Khasim <khasim@ti.com> Signed-off-by: Karthik Dasu<karthik-dp@ti.com> Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
67 lines
2.2 KiB
C
67 lines
2.2 KiB
C
/*
|
|
* arch/arm/plat-omap/include/mach/sram.h
|
|
*
|
|
* 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 __ARCH_ARM_OMAP_SRAM_H
|
|
#define __ARCH_ARM_OMAP_SRAM_H
|
|
|
|
extern int __init omap_sram_init(void);
|
|
extern void * omap_sram_push(void * start, unsigned long size);
|
|
extern void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl);
|
|
|
|
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 sdrc_rfr_ctrl,
|
|
u32 sdrc_actim_ctrla,
|
|
u32 sdrc_actim_ctrlb, u32 m2);
|
|
|
|
/* Do not use these */
|
|
extern void omap1_sram_reprogram_clock(u32 ckctl, u32 dpllctl);
|
|
extern unsigned long omap1_sram_reprogram_clock_sz;
|
|
|
|
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 sdrc_rfr_ctrl,
|
|
u32 sdrc_actim_ctrla,
|
|
u32 sdrc_actim_ctrlb, u32 m2);
|
|
extern unsigned long omap3_sram_configure_core_dpll_sz;
|
|
|
|
#endif
|