diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-06-19 21:08:29 -0400 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-06-19 21:09:32 -0400 |
commit | 7b7bcefa35d62fec64c3615a6bef7866f34c7cc9 (patch) | |
tree | 6cc4b64b104f7587af19f801ec4804e90fad12eb /arch/arm/mach-omap2/sram34xx.S | |
parent | 3afec6332e1e7cf2d74e0bf08160a68f43a59073 (diff) |
OMAP3 SDRC: set FIXEDDELAY when disabling SDRC DLL
Correspondence with the TI OMAP hardware team indicates that
SDRC_DLLA_CTRL.FIXEDDELAY should be initialized to 0x0f. This number
was apparently derived from process validation. This is only used
when the SDRC DLL is unlocked (e.g., SDRC clock frequency less than
83MHz).
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/sram34xx.S')
-rw-r--r-- | arch/arm/mach-omap2/sram34xx.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/sram34xx.S b/arch/arm/mach-omap2/sram34xx.S index 487fa8609cde..f41f8d96ddba 100644 --- a/arch/arm/mach-omap2/sram34xx.S +++ b/arch/arm/mach-omap2/sram34xx.S | |||
@@ -41,8 +41,18 @@ | |||
41 | #define SDRC_UNLOCK_DLL 0x1 | 41 | #define SDRC_UNLOCK_DLL 0x1 |
42 | 42 | ||
43 | /* SDRC_DLLA_CTRL bit settings */ | 43 | /* SDRC_DLLA_CTRL bit settings */ |
44 | #define FIXEDDELAY_SHIFT 24 | ||
45 | #define FIXEDDELAY_MASK (0xff << FIXEDDELAY_SHIFT) | ||
44 | #define DLLIDLE_MASK 0x4 | 46 | #define DLLIDLE_MASK 0x4 |
45 | 47 | ||
48 | /* | ||
49 | * SDRC_DLLA_CTRL default values: TI hardware team indicates that | ||
50 | * FIXEDDELAY should be initialized to 0xf. This apparently was | ||
51 | * empirically determined during process testing, so no derivation | ||
52 | * was provided. | ||
53 | */ | ||
54 | #define FIXEDDELAY_DEFAULT (0x0f << FIXEDDELAY_SHIFT) | ||
55 | |||
46 | /* SDRC_DLLA_STATUS bit settings */ | 56 | /* SDRC_DLLA_STATUS bit settings */ |
47 | #define LOCKSTATUS_MASK 0x4 | 57 | #define LOCKSTATUS_MASK 0x4 |
48 | 58 | ||
@@ -103,6 +113,8 @@ return_to_sdram: | |||
103 | unlock_dll: | 113 | unlock_dll: |
104 | ldr r11, omap3_sdrc_dlla_ctrl | 114 | ldr r11, omap3_sdrc_dlla_ctrl |
105 | ldr r12, [r11] | 115 | ldr r12, [r11] |
116 | and r12, r12, #FIXEDDELAY_MASK | ||
117 | orr r12, r12, #FIXEDDELAY_DEFAULT | ||
106 | orr r12, r12, #DLLIDLE_MASK | 118 | orr r12, r12, #DLLIDLE_MASK |
107 | str r12, [r11] @ (no OCP barrier needed) | 119 | str r12, [r11] @ (no OCP barrier needed) |
108 | bx lr | 120 | bx lr |