mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / lattepanda / mu / memory.c
blobe6c81793cbb18f62af8d7c4640c0ed966ca41284
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 = {
8 .type = MEM_TYPE_LP5X,
10 /* DQ byte map */
11 .lpx_dq_map = {
12 .ddr0 = {
13 .dq0 = { 12, 10, 9, 11, 15, 14, 8, 13 },
14 .dq1 = { 0, 3, 1, 2, 7, 4, 6, 5 },
16 .ddr1 = {
17 .dq0 = { 0, 2, 1, 3, 4, 7, 5, 6 },
18 .dq1 = { 13, 11, 9, 10, 8, 15, 12, 14 },
20 .ddr2 = {
21 .dq0 = { 0, 1, 2, 3, 7, 4, 5, 6 },
22 .dq1 = { 9, 10, 8, 11, 14, 15, 12, 13 },
24 .ddr3 = {
25 .dq0 = { 3, 0, 1, 2, 5, 6, 4, 7 },
26 .dq1 = { 14, 10, 8, 11, 12, 15, 9, 13 },
28 .ddr4 = {
29 .dq0 = { 3, 0, 2, 1, 6, 7, 5, 4 },
30 .dq1 = { 12, 14, 15, 13, 9, 11, 8, 10 },
32 .ddr5 = {
33 .dq0 = { 0, 1, 2, 3, 6, 4, 5, 7 },
34 .dq1 = { 15, 14, 12, 13, 9, 11, 8, 10 },
36 .ddr6 = {
37 .dq0 = { 3, 0, 1, 2, 5, 4, 6, 7 },
38 .dq1 = { 12, 13, 15, 14, 9, 11, 10, 8 },
40 .ddr7 = {
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 */
47 .lpx_dqs_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,
64 .lp5x_config = {
65 .ccc_config = 0x00,
69 const struct mb_cfg *variant_memory_params(void)
71 return &mu_lp5_mem_config;