diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-01-28 14:27:31 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 12:50:38 -0500 |
commit | f8de9b2c45c4506702da4bd3a5bc7630754077f9 (patch) | |
tree | f375f808bfdc0ef8c83671aca66f3150b08e44e5 /arch/arm/plat-omap/include | |
parent | fed415e48f07799b278cd4353385fee1464d4aca (diff) |
[ARM] OMAP2 SDRC: move mach-omap2/memory.h into mach/sdrc.h
Move the contents of the arch/arm/mach-omap2/memory.h file to the
existing mach/sdrc.h file, and remove memory.h. Modify files which
include memory.h to include asm/arch/sdrc.h instead.
linux-omap source commit is e7ae2d89921372fc4b9712a32cc401d645597807.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-omap/include')
-rw-r--r-- | arch/arm/plat-omap/include/mach/gpmc.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/mach/sdrc.h | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/include/mach/gpmc.h b/arch/arm/plat-omap/include/mach/gpmc.h index 45b678439bb7..921b16532ff5 100644 --- a/arch/arm/plat-omap/include/mach/gpmc.h +++ b/arch/arm/plat-omap/include/mach/gpmc.h | |||
@@ -103,6 +103,6 @@ extern int gpmc_cs_request(int cs, unsigned long size, unsigned long *base); | |||
103 | extern void gpmc_cs_free(int cs); | 103 | extern void gpmc_cs_free(int cs); |
104 | extern int gpmc_cs_set_reserved(int cs, int reserved); | 104 | extern int gpmc_cs_set_reserved(int cs, int reserved); |
105 | extern int gpmc_cs_reserved(int cs); | 105 | extern int gpmc_cs_reserved(int cs); |
106 | extern void gpmc_init(void); | 106 | extern void __init gpmc_init(void); |
107 | 107 | ||
108 | #endif | 108 | #endif |
diff --git a/arch/arm/plat-omap/include/mach/sdrc.h b/arch/arm/plat-omap/include/mach/sdrc.h index a98c6c3beb2c..c905b5268e56 100644 --- a/arch/arm/plat-omap/include/mach/sdrc.h +++ b/arch/arm/plat-omap/include/mach/sdrc.h | |||
@@ -74,4 +74,25 @@ | |||
74 | #define SMS_SYSCONFIG 0x010 | 74 | #define SMS_SYSCONFIG 0x010 |
75 | /* REVISIT: fill in other SMS registers here */ | 75 | /* REVISIT: fill in other SMS registers here */ |
76 | 76 | ||
77 | #ifndef __ASSEMBLER__ | ||
78 | |||
79 | struct memory_timings { | ||
80 | u32 m_type; /* ddr = 1, sdr = 0 */ | ||
81 | u32 dll_mode; /* use lock mode = 1, unlock mode = 0 */ | ||
82 | u32 slow_dll_ctrl; /* unlock mode, dll value for slow speed */ | ||
83 | u32 fast_dll_ctrl; /* unlock mode, dll value for fast speed */ | ||
84 | u32 base_cs; /* base chip select to use for calculations */ | ||
85 | }; | ||
86 | |||
87 | extern void omap2_init_memory_params(u32 force_lock_to_unlock_mode); | ||
88 | extern u32 omap2_memory_get_slow_dll_ctrl(void); | ||
89 | extern u32 omap2_memory_get_fast_dll_ctrl(void); | ||
90 | extern u32 omap2_memory_get_type(void); | ||
91 | u32 omap2_dll_force_needed(void); | ||
92 | u32 omap2_reprogram_sdrc(u32 level, u32 force); | ||
93 | void __init omap2_init_memory(void); | ||
94 | |||
95 | #endif | ||
96 | |||
97 | |||
77 | #endif | 98 | #endif |