mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 07:51:38 +00:00
DaVinci: fix ddr2 vtp i/o calibration
Previously, only the low 5 bits (NCH) were being transfered from DDRVTPR to DDRVTPIOCR, the bits 5-9 where zeroed. VTP_RECAL should be bit 15, not 18. The only mainline board affected by this change is davinci_sonata. The other Davinci boards define CONFIG_SKIP_LOWLEVEL_INIT. However, if the program that loads u-boot on these boards copied the code from u-boot, they will need fixed as well. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com> Please get tested by acks before applying, where tested by means an overnight memory test. Thanks Troy
This commit is contained in:
parent
e843d0f7ee
commit
d5b069ecb4
1 changed files with 3 additions and 4 deletions
|
@ -523,9 +523,8 @@ VTPLock:
|
||||||
|
|
||||||
ldr r6, DDRVTPR
|
ldr r6, DDRVTPR
|
||||||
ldr r7, [r6]
|
ldr r7, [r6]
|
||||||
and r7, r7, $0x1f
|
mov r8, r7, LSL #32-10
|
||||||
and r8, r7, $0x3e0
|
mov r8, r8, LSR #32-10 /* grab low 10 bits */
|
||||||
orr r8, r7, r8
|
|
||||||
ldr r7, VTP_RECAL
|
ldr r7, VTP_RECAL
|
||||||
orr r8, r7, r8
|
orr r8, r7, r8
|
||||||
ldr r7, VTP_EN
|
ldr r7, VTP_EN
|
||||||
|
@ -644,7 +643,7 @@ VTP_LOCK_COUNT:
|
||||||
VTP_MASK:
|
VTP_MASK:
|
||||||
.word 0xffffdfff
|
.word 0xffffdfff
|
||||||
VTP_RECAL:
|
VTP_RECAL:
|
||||||
.word 0x40000
|
.word 0x08000
|
||||||
VTP_EN:
|
VTP_EN:
|
||||||
.word 0x02000
|
.word 0x02000
|
||||||
CFGTEST:
|
CFGTEST:
|
||||||
|
|
Loading…
Add table
Reference in a new issue