aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/intel/adlrvp/board_id.h
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2020-10-06 20:13:06 +0530
committerSubrata Banik <subrata.banik@intel.com>2020-10-11 14:15:49 +0000
commit16e410669a369c4f09560cff99787e5439cd5e50 (patch)
treec097527a5ee726d561347a9050b595d1f338936b /src/mainboard/intel/adlrvp/board_id.h
parentfb623a02c5a4d2258afef9b7c9fa7f2166ee0428 (diff)
mb/intel/adlrvp: Add ADL-P romstage mainboard code
List of changes: 1. Add DDR4 and LPDDR4 memory related code - SPD for LPDDR4 - DQ byte map - DQS CPU-DRAM map - Rcomp resistor - Rcomp target 2. Fill FSP-M related UPD parameters 3. Add devicetree.cb config parameters related to FSP-M UPD TEST=Able to build and boot ADL-P RVP till ramstage early Change-Id: Iffc5c17ed0725f61c8c274a80a1d27161ca6cebf Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46091 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/intel/adlrvp/board_id.h')
-rw-r--r--src/mainboard/intel/adlrvp/board_id.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mainboard/intel/adlrvp/board_id.h b/src/mainboard/intel/adlrvp/board_id.h
new file mode 100644
index 0000000000..2988127e9b
--- /dev/null
+++ b/src/mainboard/intel/adlrvp/board_id.h
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _MAINBOARD_COMMON_BOARD_ID_H_
+#define _MAINBOARD_COMMON_BOARD_ID_H_
+
+/* Board/FAB ID Command */
+#define EC_FAB_ID_CMD 0x0d
+/* Bit 5:0 for Board ID */
+#define BOARD_ID_MASK 0x3f
+
+/*
+ * Returns board information (board id[15:8] and
+ * Fab info[7:0]) on success and < 0 on error
+ */
+int get_board_id(void);
+
+#endif /* _MAINBOARD_COMMON_BOARD_ID_H_ */