1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/variants.h>
4 #include <console/console.h>
5 #include <soc/romstage.h>
7 static const struct mb_cfg mu_lp5_mem_config
= {
13 .dq0
= { 12, 10, 9, 11, 15, 14, 8, 13 },
14 .dq1
= { 0, 3, 1, 2, 7, 4, 6, 5 },
17 .dq0
= { 0, 2, 1, 3, 4, 7, 5, 6 },
18 .dq1
= { 13, 11, 9, 10, 8, 15, 12, 14 },
21 .dq0
= { 0, 1, 2, 3, 7, 4, 5, 6 },
22 .dq1
= { 9, 10, 8, 11, 14, 15, 12, 13 },
25 .dq0
= { 3, 0, 1, 2, 5, 6, 4, 7 },
26 .dq1
= { 14, 10, 8, 11, 12, 15, 9, 13 },
29 .dq0
= { 3, 0, 2, 1, 6, 7, 5, 4 },
30 .dq1
= { 12, 14, 15, 13, 9, 11, 8, 10 },
33 .dq0
= { 0, 1, 2, 3, 6, 4, 5, 7 },
34 .dq1
= { 15, 14, 12, 13, 9, 11, 8, 10 },
37 .dq0
= { 3, 0, 1, 2, 5, 4, 6, 7 },
38 .dq1
= { 12, 13, 15, 14, 9, 11, 10, 8 },
41 .dq0
= { 3, 0, 2, 1, 5, 4, 6, 7 },
42 .dq1
= { 10, 8, 15, 14, 9, 12, 13, 11 },
46 /* DQS CPU<>DRAM map */
48 .ddr0
= { .dqs0
= 1, .dqs1
= 0 },
49 .ddr1
= { .dqs0
= 0, .dqs1
= 1 },
50 .ddr2
= { .dqs0
= 0, .dqs1
= 1 },
51 .ddr3
= { .dqs0
= 0, .dqs1
= 1 },
52 .ddr4
= { .dqs0
= 0, .dqs1
= 1 },
53 .ddr5
= { .dqs0
= 0, .dqs1
= 1 },
54 .ddr6
= { .dqs0
= 0, .dqs1
= 1 },
55 .ddr7
= { .dqs0
= 0, .dqs1
= 1 }
58 .ect
= true, /* Early Command Training */
60 .UserBd
= BOARD_TYPE_ULT_ULX
,
62 .LpDdrDqDqsReTraining
= 1,
69 const struct mb_cfg
*variant_memory_params(void)
71 return &mu_lp5_mem_config
;