diff options
author | Tony Lindgren <tony@atomide.com> | 2006-04-02 12:46:20 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-04-02 12:46:20 -0400 |
commit | b824efae120b656fef562b2e81e1ed6aa88f8d24 (patch) | |
tree | 427d55c6e13fe3b19d2387769145c01933c630d0 /arch/arm/mach-omap2/memory.h | |
parent | 3267c077e589bc146a0b45e220fcefafbf83fb80 (diff) |
[ARM] 3426/1: ARM: OMAP: 1/8 Update clock framework
Patch from Tony Lindgren
Update OMAP clock framework from linux-omap tree.
The highlights of the patch are:
- Add support for omap730 clocks by Andrzej Zaborowski
- Fix compile warnings by Dirk Behme
- Add support for using dev id by Tony Lindgren and Komal Shah
- Move memory timings and PRCM into separate files by Tony Lindgren
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/memory.h')
-rw-r--r-- | arch/arm/mach-omap2/memory.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/memory.h b/arch/arm/mach-omap2/memory.h new file mode 100644 index 000000000000..d212eea83a05 --- /dev/null +++ b/arch/arm/mach-omap2/memory.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-omap2/memory.h | ||
3 | * | ||
4 | * Interface for memory timing related functions for OMAP24XX | ||
5 | * | ||
6 | * Copyright (C) 2005 Texas Instruments Inc. | ||
7 | * Richard Woodruff <r-woodruff2@ti.com> | ||
8 | * | ||
9 | * Copyright (C) 2005 Nokia Corporation | ||
10 | * Tony Lindgren <tony@atomide.com> | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or modify | ||
13 | * it under the terms of the GNU General Public License version 2 as | ||
14 | * published by the Free Software Foundation. | ||
15 | */ | ||
16 | |||
17 | /* Memory timings */ | ||
18 | #define M_DDR 1 | ||
19 | #define M_LOCK_CTRL (1 << 2) | ||
20 | #define M_UNLOCK 0 | ||
21 | #define M_LOCK 1 | ||
22 | |||
23 | struct memory_timings { | ||
24 | u32 m_type; /* ddr = 1, sdr = 0 */ | ||
25 | u32 dll_mode; /* use lock mode = 1, unlock mode = 0 */ | ||
26 | u32 slow_dll_ctrl; /* unlock mode, dll value for slow speed */ | ||
27 | u32 fast_dll_ctrl; /* unlock mode, dll value for fast speed */ | ||
28 | u32 base_cs; /* base chip select to use for calculations */ | ||
29 | }; | ||
30 | |||
31 | extern void omap2_init_memory_params(u32 force_lock_to_unlock_mode); | ||
32 | extern u32 omap2_memory_get_slow_dll_ctrl(void); | ||
33 | extern u32 omap2_memory_get_fast_dll_ctrl(void); | ||
34 | extern u32 omap2_memory_get_type(void); | ||