projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8d9758
)
powerpc/mpc8xxx: Fix TIMING_CFG_3[EXT_ACTTOPRE]
author
James Yang
<James.Yang@freescale.com>
Mon, 22 Jul 2013 16:35:26 +0000
(09:35 -0700)
committer
York Sun
<yorksun@freescale.com>
Fri, 9 Aug 2013 19:43:32 +0000
(12:43 -0700)
The TIMING_CFG_3[EXT_ACTTOPRE] register field is 2 bits wide, but
the mask omitted the LSB. This patch provides a 2-bit wide mask.
Signed-off-by: James Yang <James.Yang@freescale.com>
Signed-off-by: York Sun <yorksun@freescale.com>
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
b/arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
index bf5a6f21c1bbf44110284c3f879114574176eddb..242eb47ac34dbf0cc6e08efc1c59ea0a658ddfe9 100644
(file)
--- a/
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
+++ b/
arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c
@@
-364,7
+364,7
@@
static void set_timing_cfg_3(fsl_ddr_cfg_regs_t *ddr,
ddr->timing_cfg_3 = (0
| ((ext_pretoact & 0x1) << 28)
- | ((ext_acttopre & 0x
2
) << 24)
+ | ((ext_acttopre & 0x
3
) << 24)
| ((ext_acttorw & 0x1) << 22)
| ((ext_refrec & 0x1F) << 16)
| ((ext_caslat & 0x3) << 12)