1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <soc/romstage.h>
6 static const struct mb_cfg variant_memcfg
= {
10 /* Baseboard uses only 100ohm Rcomp resistors */
17 .dq0
= { 11, 10, 9, 8, 15, 14, 13, 12 },
18 .dq1
= { 7, 5, 4, 6, 1, 2, 0, 3 },
21 .dq0
= { 1, 4, 0, 2, 5, 3, 6, 7 },
22 .dq1
= { 14, 13, 12, 15, 11, 10, 9, 8 },
25 .dq0
= { 11, 10, 9, 8, 13, 15, 12, 14 },
26 .dq1
= { 4, 6, 7, 5, 0, 1, 2, 3 },
29 .dq0
= { 4, 5, 1, 0, 7, 2, 6, 3 },
30 .dq1
= { 15, 11, 10, 14, 9, 8, 13, 12 },
33 .dq0
= { 10, 9, 8, 11, 13, 15, 14, 12 },
34 .dq1
= { 5, 4, 3, 6, 2, 1, 0, 7 },
37 .dq0
= { 0, 5, 1, 4, 6, 3, 7, 2 },
38 .dq1
= { 10, 11, 13, 15, 14, 9, 12, 8 },
41 .dq0
= { 9, 10, 11, 8, 14, 12, 13, 15 },
42 .dq1
= { 5, 7, 6, 4, 1, 2, 3, 0 },
45 .dq0
= { 3, 1, 2, 0, 7, 6, 5, 4 },
46 .dq1
= { 10, 9, 15, 13, 11, 12, 14, 8 },
50 /* DQS CPU<>DRAM map */
52 .ddr0
= { .dqs0
= 1, .dqs1
= 0 },
53 .ddr1
= { .dqs0
= 0, .dqs1
= 1 },
54 .ddr2
= { .dqs0
= 1, .dqs1
= 0 },
55 .ddr3
= { .dqs0
= 0, .dqs1
= 1 },
56 .ddr4
= { .dqs0
= 1, .dqs1
= 0 },
57 .ddr5
= { .dqs0
= 0, .dqs1
= 1 },
58 .ddr6
= { .dqs0
= 1, .dqs1
= 0 },
59 .ddr7
= { .dqs0
= 0, .dqs1
= 1 },
66 .LpDdrDqDqsReTraining
= 1,
68 .ect
= 1, /* Early Command Training */
70 .UserBd
= BOARD_TYPE_ULT_ULX
,
73 const struct mb_cfg
*variant_memory_params(void)
75 return &variant_memcfg
;