From 40a78ee5af91d4e4cd26f836bd05da252cc3256b Mon Sep 17 00:00:00 2001 From: Juan Gutierrez Date: Tue, 31 Jan 2017 15:17:35 -0600 Subject: MXSCM-244 mx6dqscm: adjust drive strength for scm i.mx6dq parts From experimentation a DSE value of 60ohms shows better results for both 2GB and 1GB MXDQSCM parts. The failure rate part using the memtest improves using this value for DSE. This adjusment is performed in the corresponfing imximage_scm_lpddr2.cfg file. Signed-off-by: Juan Gutierrez --- board/freescale/mx6dqscm/imximage_scm_lpddr2.cfg | 208 +++++++++++------------ board/freescale/mx6dqscm/plugin.S | 24 +-- 2 files changed, 114 insertions(+), 118 deletions(-) diff --git a/board/freescale/mx6dqscm/imximage_scm_lpddr2.cfg b/board/freescale/mx6dqscm/imximage_scm_lpddr2.cfg index d95b9bc..69cf97f 100644 --- a/board/freescale/mx6dqscm/imximage_scm_lpddr2.cfg +++ b/board/freescale/mx6dqscm/imximage_scm_lpddr2.cfg @@ -56,48 +56,48 @@ DATA 4 0x020C4018 0x00060324 DATA 4 0x020e0798 0x00080000 DATA 4 0x020e0758 0x00000000 -DATA 4 0x020E0588 0x00000030 -DATA 4 0x020E0594 0x00000030 +DATA 4 0x020E0588 0x00000020 +DATA 4 0x020E0594 0x00000020 -DATA 4 0x020E056c 0x00000030 -DATA 4 0x020E0578 0x00000030 -DATA 4 0x020E074c 0x00000030 +DATA 4 0x020E056c 0x00000020 +DATA 4 0x020E0578 0x00000020 +DATA 4 0x020E074c 0x00000020 -DATA 4 0x020E057c 0x00000030 +DATA 4 0x020E057c 0x00000020 DATA 4 0x020E058c 0x00000000 -DATA 4 0x020E059c 0x00000030 -DATA 4 0x020E05a0 0x00000030 -DATA 4 0x020E078c 0x00000030 +DATA 4 0x020E059c 0x00000020 +DATA 4 0x020E05a0 0x00000020 +DATA 4 0x020E078c 0x00000020 DATA 4 0x020E0750 0x00020000 -DATA 4 0x020E05a8 0x00003030 -DATA 4 0x020E05b0 0x00003030 -DATA 4 0x020E0524 0x00003030 -DATA 4 0x020E051c 0x00003030 -DATA 4 0x020E0518 0x00003030 -DATA 4 0x020E050c 0x00003030 -DATA 4 0x020E05b8 0x00003030 -DATA 4 0x020E05c0 0x00003030 +DATA 4 0x020E05a8 0x00003020 +DATA 4 0x020E05b0 0x00003020 +DATA 4 0x020E0524 0x00003020 +DATA 4 0x020E051c 0x00003020 +DATA 4 0x020E0518 0x00003020 +DATA 4 0x020E050c 0x00003020 +DATA 4 0x020E05b8 0x00003020 +DATA 4 0x020E05c0 0x00003020 DATA 4 0x020E0774 0x00020000 -DATA 4 0x020E0784 0x00000030 -DATA 4 0x020E0788 0x00000030 -DATA 4 0x020E0794 0x00000030 -DATA 4 0x020E079c 0x00000030 -DATA 4 0x020E07a0 0x00000030 -DATA 4 0x020E07a4 0x00000030 -DATA 4 0x020E07a8 0x00000030 -DATA 4 0x020E0748 0x00000030 - -DATA 4 0x020E05ac 0x00000030 -DATA 4 0x020E05b4 0x00000030 -DATA 4 0x020E0528 0x00000030 -DATA 4 0x020E0520 0x00000030 -DATA 4 0x020E0514 0x00000030 -DATA 4 0x020E0510 0x00000030 -DATA 4 0x020E05bc 0x00000030 -DATA 4 0x020E05c4 0x00000030 +DATA 4 0x020E0784 0x00000020 +DATA 4 0x020E0788 0x00000020 +DATA 4 0x020E0794 0x00000020 +DATA 4 0x020E079c 0x00000020 +DATA 4 0x020E07a0 0x00000020 +DATA 4 0x020E07a4 0x00000020 +DATA 4 0x020E07a8 0x00000020 +DATA 4 0x020E0748 0x00000020 + +DATA 4 0x020E05ac 0x00000020 +DATA 4 0x020E05b4 0x00000020 +DATA 4 0x020E0528 0x00000020 +DATA 4 0x020E0520 0x00000020 +DATA 4 0x020E0514 0x00000020 +DATA 4 0x020E0510 0x00000020 +DATA 4 0x020E05bc 0x00000020 +DATA 4 0x020E05c4 0x00000020 DATA 4 0x020E0590 0x00000020 DATA 4 0x020E0598 0x00000020 @@ -194,50 +194,48 @@ DATA 4, 0x020e0758, 0x00000000 -DATA 4, 0x020E0588, 0x00000030 -DATA 4, 0x020E0594, 0x00000030 +DATA 4, 0x020E0588, 0x00000020 +DATA 4, 0x020E0594, 0x00000020 -DATA 4, 0x020E056c, 0x00000030 -DATA 4, 0x020E0578, 0x00000030 -DATA 4, 0x020E074c, 0x00000030 +DATA 4, 0x020E056c, 0x00000020 +DATA 4, 0x020E0578, 0x00000020 +DATA 4, 0x020E074c, 0x00000020 -DATA 4, 0x020E057c, 0x00000030 +DATA 4, 0x020E057c, 0x00000020 DATA 4, 0x020E058c, 0x00000000 -DATA 4, 0x020E059c, 0x00000030 -DATA 4, 0x020E05a0, 0x00000030 -DATA 4, 0x020E078c, 0x00000030 +DATA 4, 0x020E059c, 0x00000020 +DATA 4, 0x020E05a0, 0x00000020 +DATA 4, 0x020E078c, 0x00000020 DATA 4, 0x020E0750, 0x00020000 -DATA 4, 0x020E05a8, 0x00003030 -DATA 4, 0x020E05b0, 0x00003030 -DATA 4, 0x020E0524, 0x00003030 -DATA 4, 0x020E051c, 0x00003030 -DATA 4, 0x020E0518, 0x00003030 -DATA 4, 0x020E050c, 0x00003030 -DATA 4, 0x020E05b8, 0x00003030 -DATA 4, 0x020E05c0, 0x00003030 +DATA 4, 0x020E05a8, 0x00003020 +DATA 4, 0x020E05b0, 0x00003020 +DATA 4, 0x020E0524, 0x00003020 +DATA 4, 0x020E051c, 0x00003020 +DATA 4, 0x020E0518, 0x00003020 +DATA 4, 0x020E050c, 0x00003020 +DATA 4, 0x020E05b8, 0x00003020 +DATA 4, 0x020E05c0, 0x00003020 DATA 4, 0x020E0774, 0x00020000 -DATA 4, 0x020E0784, 0x00000030 -DATA 4, 0x020E0788, 0x00000030 -DATA 4, 0x020E0794, 0x00000030 -DATA 4, 0x020E079c, 0x00000030 -DATA 4, 0x020E07a0, 0x00000030 -DATA 4, 0x020E07a4, 0x00000030 -DATA 4, 0x020E07a8, 0x00000030 -DATA 4, 0x020E0748, 0x00000030 - -DATA 4, 0x020E05ac, 0x00000030 -DATA 4, 0x020E05b4, 0x00000030 -DATA 4, 0x020E0528, 0x00000030 -DATA 4, 0x020E0520, 0x00000030 -DATA 4, 0x020E0514, 0x00000030 -DATA 4, 0x020E0510, 0x00000030 -DATA 4, 0x020E05bc, 0x00000030 -DATA 4, 0x020E05c4, 0x00000030 - - +DATA 4, 0x020E0784, 0x00000020 +DATA 4, 0x020E0788, 0x00000020 +DATA 4, 0x020E0794, 0x00000020 +DATA 4, 0x020E079c, 0x00000020 +DATA 4, 0x020E07a0, 0x00000020 +DATA 4, 0x020E07a4, 0x00000020 +DATA 4, 0x020E07a8, 0x00000020 +DATA 4, 0x020E0748, 0x00000020 + +DATA 4, 0x020E05ac, 0x00000020 +DATA 4, 0x020E05b4, 0x00000020 +DATA 4, 0x020E0528, 0x00000020 +DATA 4, 0x020E0520, 0x00000020 +DATA 4, 0x020E0514, 0x00000020 +DATA 4, 0x020E0510, 0x00000020 +DATA 4, 0x020E05bc, 0x00000020 +DATA 4, 0x020E05c4, 0x00000020 DATA 4, 0x020E0590, 0x00000020 DATA 4, 0x020E0598, 0x00000020 @@ -408,50 +406,48 @@ DATA 4 0x020e0758 0x00000000 -DATA 4, 0x020E0588, 0x00000030 -DATA 4, 0x020E0594, 0x00000030 +DATA 4, 0x020E0588, 0x00000020 +DATA 4, 0x020E0594, 0x00000020 -DATA 4, 0x020E056c, 0x00000030 -DATA 4, 0x020E0578, 0x00000030 -DATA 4, 0x020E074c, 0x00000030 +DATA 4, 0x020E056c, 0x00000020 +DATA 4, 0x020E0578, 0x00000020 +DATA 4, 0x020E074c, 0x00000020 -DATA 4, 0x020E057c, 0x00000030 +DATA 4, 0x020E057c, 0x00000020 DATA 4, 0x020E058c, 0x00000000 -DATA 4, 0x020E059c, 0x00000030 -DATA 4, 0x020E05a0, 0x00000030 -DATA 4, 0x020E078c, 0x00000030 +DATA 4, 0x020E059c, 0x00000020 +DATA 4, 0x020E05a0, 0x00000020 +DATA 4, 0x020E078c, 0x00000020 DATA 4, 0x020E0750, 0x00020000 -DATA 4, 0x020E05a8, 0x00003030 -DATA 4, 0x020E05b0, 0x00003030 -DATA 4, 0x020E0524, 0x00003030 -DATA 4, 0x020E051c, 0x00003030 -DATA 4, 0x020E0518, 0x00003030 -DATA 4, 0x020E050c, 0x00003030 -DATA 4, 0x020E05b8, 0x00003030 -DATA 4, 0x020E05c0, 0x00003030 +DATA 4, 0x020E05a8, 0x00003020 +DATA 4, 0x020E05b0, 0x00003020 +DATA 4, 0x020E0524, 0x00003020 +DATA 4, 0x020E051c, 0x00003020 +DATA 4, 0x020E0518, 0x00003020 +DATA 4, 0x020E050c, 0x00003020 +DATA 4, 0x020E05b8, 0x00003020 +DATA 4, 0x020E05c0, 0x00003020 DATA 4, 0x020E0774, 0x00020000 -DATA 4, 0x020E0784, 0x00000030 -DATA 4, 0x020E0788, 0x00000030 -DATA 4, 0x020E0794, 0x00000030 -DATA 4, 0x020E079c, 0x00000030 -DATA 4, 0x020E07a0, 0x00000030 -DATA 4, 0x020E07a4, 0x00000030 -DATA 4, 0x020E07a8, 0x00000030 -DATA 4, 0x020E0748, 0x00000030 - -DATA 4, 0x020E05ac, 0x00000030 -DATA 4, 0x020E05b4, 0x00000030 -DATA 4, 0x020E0528, 0x00000030 -DATA 4, 0x020E0520, 0x00000030 -DATA 4, 0x020E0514, 0x00000030 -DATA 4, 0x020E0510, 0x00000030 -DATA 4, 0x020E05bc, 0x00000030 -DATA 4, 0x020E05c4, 0x00000030 - - +DATA 4, 0x020E0784, 0x00000020 +DATA 4, 0x020E0788, 0x00000020 +DATA 4, 0x020E0794, 0x00000020 +DATA 4, 0x020E079c, 0x00000020 +DATA 4, 0x020E07a0, 0x00000020 +DATA 4, 0x020E07a4, 0x00000020 +DATA 4, 0x020E07a8, 0x00000020 +DATA 4, 0x020E0748, 0x00000020 + +DATA 4, 0x020E05ac, 0x00000020 +DATA 4, 0x020E05b4, 0x00000020 +DATA 4, 0x020E0528, 0x00000020 +DATA 4, 0x020E0520, 0x00000020 +DATA 4, 0x020E0514, 0x00000020 +DATA 4, 0x020E0510, 0x00000020 +DATA 4, 0x020E05bc, 0x00000020 +DATA 4, 0x020E05c4, 0x00000020 DATA 4, 0x020E0590, 0x00000020 DATA 4, 0x020E0598, 0x00000020 diff --git a/board/freescale/mx6dqscm/plugin.S b/board/freescale/mx6dqscm/plugin.S index bd4f542..085ad6d 100644 --- a/board/freescale/mx6dqscm/plugin.S +++ b/board/freescale/mx6dqscm/plugin.S @@ -37,7 +37,7 @@ str r1, [r0, #0x798] ldr r1, =0x00000000 str r1, [r0, #0x758] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x588] str r1, [r0, #0x594] @@ -49,14 +49,14 @@ str r1, [r0, #0x57c] ldr r1, =0x00000000 str r1, [r0, #0x58c] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x59c] str r1, [r0, #0x5a0] str r1, [r0, #0x78c] ldr r1, =0x00020000 str r1, [r0, #0x750] - ldr r1, =0x00003030 + ldr r1, =0x00003020 str r1, [r0, #0x5a8] str r1, [r0, #0x5b0] str r1, [r0, #0x524] @@ -69,7 +69,7 @@ ldr r1, =0x00020000 str r1, [r0, #0x774] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x784] str r1, [r0, #0x788] str r1, [r0, #0x794] @@ -236,7 +236,7 @@ str r1, [r0, #0x798] ldr r1, =0x00000000 str r1, [r0, #0x758] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x588] str r1, [r0, #0x594] @@ -248,14 +248,14 @@ str r1, [r0, #0x57c] ldr r1, =0x00000000 str r1, [r0, #0x58c] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x59c] str r1, [r0, #0x5a0] str r1, [r0, #0x78c] ldr r1, =0x00020000 str r1, [r0, #0x750] - ldr r1, =0x00003030 + ldr r1, =0x00003020 str r1, [r0, #0x5a8] str r1, [r0, #0x5b0] str r1, [r0, #0x524] @@ -268,7 +268,7 @@ ldr r1, =0x00020000 str r1, [r0, #0x774] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x784] str r1, [r0, #0x788] str r1, [r0, #0x794] @@ -511,7 +511,7 @@ str r1, [r0, #0x798] ldr r1, =0x00000000 str r1, [r0, #0x758] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x588] str r1, [r0, #0x594] @@ -523,14 +523,14 @@ str r1, [r0, #0x57c] ldr r1, =0x00000000 str r1, [r0, #0x58c] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x59c] str r1, [r0, #0x5a0] str r1, [r0, #0x78c] ldr r1, =0x00020000 str r1, [r0, #0x750] - ldr r1, =0x00003030 + ldr r1, =0x00003020 str r1, [r0, #0x5a8] str r1, [r0, #0x5b0] str r1, [r0, #0x524] @@ -543,7 +543,7 @@ ldr r1, =0x00020000 str r1, [r0, #0x774] - ldr r1, =0x00000030 + ldr r1, =0x00000020 str r1, [r0, #0x784] str r1, [r0, #0x788] str r1, [r0, #0x794] -- cgit v1.1