Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153753
b: refs/heads/master
c: 7b7bcef
h: refs/heads/master
i:
  153751: a79bd8f
v: v3
  • Loading branch information
Paul Walmsley authored and paul committed Jun 20, 2009
1 parent dea76e2 commit 1daf1a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3afec6332e1e7cf2d74e0bf08160a68f43a59073
refs/heads/master: 7b7bcefa35d62fec64c3615a6bef7866f34c7cc9
12 changes: 12 additions & 0 deletions trunk/arch/arm/mach-omap2/sram34xx.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,18 @@
#define SDRC_UNLOCK_DLL 0x1

/* SDRC_DLLA_CTRL bit settings */
#define FIXEDDELAY_SHIFT 24
#define FIXEDDELAY_MASK (0xff << FIXEDDELAY_SHIFT)
#define DLLIDLE_MASK 0x4

/*
* SDRC_DLLA_CTRL default values: TI hardware team indicates that
* FIXEDDELAY should be initialized to 0xf. This apparently was
* empirically determined during process testing, so no derivation
* was provided.
*/
#define FIXEDDELAY_DEFAULT (0x0f << FIXEDDELAY_SHIFT)

/* SDRC_DLLA_STATUS bit settings */
#define LOCKSTATUS_MASK 0x4

Expand Down Expand Up @@ -103,6 +113,8 @@ return_to_sdram:
unlock_dll:
ldr r11, omap3_sdrc_dlla_ctrl
ldr r12, [r11]
and r12, r12, #FIXEDDELAY_MASK
orr r12, r12, #FIXEDDELAY_DEFAULT
orr r12, r12, #DLLIDLE_MASK
str r12, [r11] @ (no OCP barrier needed)
bx lr
Expand Down

0 comments on commit 1daf1a3

Please sign in to comment.