summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/mtlrvp/variants
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/intel/mtlrvp/variants')
-rw-r--r--src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/Makefile.inc5
-rw-r--r--src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/dram_id.generated.txt7
-rw-r--r--src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/mem_parts_used.txt11
-rw-r--r--src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/memory.c65
4 files changed, 88 insertions, 0 deletions
diff --git a/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/Makefile.inc b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/Makefile.inc
index 566f5cc767..f4faac3832 100644
--- a/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/Makefile.inc
+++ b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/Makefile.inc
@@ -1,3 +1,8 @@
## SPDX-License-Identifier: GPL-2.0-or-later
romstage-y += memory.c
+
+SPD_SOURCES =
+SPD_SOURCES += spd/lp5/set-0/spd-empty.hex # ID = 0(0b0000)
+SPD_SOURCES += spd/lp5/set-0/spd-empty.hex # ID = 1(0b0001)
+SPD_SOURCES += spd/lp5/set-0/spd-4.hex # ID = 2(0b0010) Parts = MT62F2G32D8DR-031 WT:B
diff --git a/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/dram_id.generated.txt b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/dram_id.generated.txt
new file mode 100644
index 0000000000..9d3992e5f4
--- /dev/null
+++ b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/dram_id.generated.txt
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# This is an auto-generated file. Do not edit!!
+# Generated by:
+# util/spd_tools/bin/part_id_gen MTL lp5 src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/ src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/mem_parts_used.txt
+
+DRAM Part Name ID to assign
+MT62F2G32D8DR-031 WT:B 2 (0010)
diff --git a/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/mem_parts_used.txt b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/mem_parts_used.txt
new file mode 100644
index 0000000000..e2ba4e1719
--- /dev/null
+++ b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/mem_parts_used.txt
@@ -0,0 +1,11 @@
+# This is a CSV file containing a list of memory parts used by this variant.
+# One part per line with an optional fixed ID in column 2.
+# Only include a fixed ID if it is required for legacy reasons!
+# Generated IDs are dependent on the order of parts in this file,
+# so new parts must always be added at the end of the file!
+#
+# Generate an updated Makefile.inc and dram_id.generated.txt by running the
+# part_id_gen tool from util/spd_tools.
+
+# Part Name
+MT62F2G32D8DR-031 WT:B,2
diff --git a/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/memory.c b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/memory.c
index d4a53c8f26..c17e99fb4b 100644
--- a/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/memory.c
+++ b/src/mainboard/intel/mtlrvp/variants/baseboard/mtlrvp_p/memory/memory.c
@@ -5,6 +5,68 @@
#include <ec/intel/board_id.h>
#include <soc/romstage.h>
+static const struct mb_cfg lp5_mem_config = {
+ .type = MEM_TYPE_LP5X,
+
+ /* DQ byte map as per doc #573387 */
+ .lpx_dq_map = {
+ .ddr0 = {
+ .dq0 = { 0, 3, 1, 2, 4, 5, 6, 7, },
+ .dq1 = { 12, 13, 14, 15, 11, 9, 10, 8 },
+ },
+ .ddr1 = {
+ .dq0 = { 3, 0, 1, 2, 5, 7, 6, 4, },
+ .dq1 = { 13, 10, 12, 15, 9, 11, 8, 14 },
+ },
+ .ddr2 = {
+ .dq0 = { 2, 1, 3, 0, 7, 5, 6, 4, },
+ .dq1 = { 12, 8, 13, 15, 11, 10, 9, 14 },
+ },
+ .ddr3 = {
+ .dq0 = { 4, 3, 0, 1, 5, 2, 6, 7, },
+ .dq1 = { 8, 15, 12, 14, 10, 13, 9, 11 },
+ },
+ .ddr4 = {
+ .dq0 = { 1, 3, 2, 6, 7, 5, 4, 0, },
+ .dq1 = { 14, 13, 12, 15, 11, 10, 8, 9 },
+ },
+ .ddr5 = {
+ .dq0 = { 0, 7, 3, 6, 2, 5, 1, 4, },
+ .dq1 = { 9, 10, 11, 8, 13, 14, 15, 12 },
+ },
+ .ddr6 = {
+ .dq0 = { 3, 0, 2, 1, 6, 5, 4, 7, },
+ .dq1 = { 15, 13, 12, 14, 8, 11, 10, 9 },
+ },
+ .ddr7 = {
+ .dq0 = { 2, 1, 3, 0, 6, 4, 7, 5, },
+ .dq1 = { 14, 12, 13, 15, 9, 10, 11, 8 },
+ },
+ },
+
+ /* DQS CPU<>DRAM map as per doc #573387 */
+ .lpx_dqs_map = {
+ .ddr0 = { .dqs0 = 0, .dqs1 = 1 },
+ .ddr1 = { .dqs0 = 0, .dqs1 = 1 },
+ .ddr2 = { .dqs0 = 0, .dqs1 = 1 },
+ .ddr3 = { .dqs0 = 0, .dqs1 = 1 },
+ .ddr4 = { .dqs0 = 0, .dqs1 = 1 },
+ .ddr5 = { .dqs0 = 0, .dqs1 = 1 },
+ .ddr6 = { .dqs0 = 0, .dqs1 = 1 },
+ .ddr7 = { .dqs0 = 0, .dqs1 = 1 }
+ },
+
+ .ect = false, /* Early Command Training */
+
+ .LpDdrDqDqsReTraining = 1,
+
+ .UserBd = BOARD_TYPE_ULT_ULX,
+
+ .lp5x_config = {
+ .ccc_config = 0,
+ },
+};
+
static const struct mb_cfg ddr5_mem_config = {
.type = MEM_TYPE_DDR5,
@@ -31,6 +93,9 @@ const struct mb_cfg *variant_memory_params(void)
switch (board_id) {
case MTLP_DDR5_RVP:
return &ddr5_mem_config;
+ case MTLP_LP5_T3_RVP:
+ case MTLP_LP5_T4_RVP:
+ return &lp5_mem_config;
default:
die("Unknown board id = 0x%x\n", board_id);
break;