summaryrefslogtreecommitdiff
path: root/src/ec/intel/board_id.h
diff options
context:
space:
mode:
authorHarsha B R <harsha.b.r@intel.com>2022-12-01 21:23:53 +0530
committerEric Lai <eric_lai@quanta.corp-partner.google.com>2022-12-06 08:55:57 +0000
commita5e04af48469148af7277dfc353585ea9068de1c (patch)
tree391bc4c91b3535d0751ee5078bac838f74991f05 /src/ec/intel/board_id.h
parenta6f6e6a5928cbb71267931f1e1699ecbff38a151 (diff)
src/ec/intel: Create common code for board_id implementation
This patch creates initial common code structure for board_id implementation for intel rvp platforms. Board_id helps in identifying the platform with respect to CHROME_EC and INTEL_EC (Windows_EC). Changes include 1. Create initial board_id.c and board_id.h 2. Modify the Makefile to include src/ec/intel directory BUG=b:260654043 TEST=Able to build with the patch and boot the mtlrvp platform with the subsequent patches in the train Signed-off-by: Harsha B R <harsha.b.r@intel.com> Change-Id: If133f6a72b8c3e1d8811a11f91e4556beb8c16e0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70227 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Usha P <usha.p@intel.com> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/ec/intel/board_id.h')
-rw-r--r--src/ec/intel/board_id.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ec/intel/board_id.h b/src/ec/intel/board_id.h
new file mode 100644
index 0000000000..e4f24d172a
--- /dev/null
+++ b/src/ec/intel/board_id.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#ifndef _MAINBOARD_COMMON_BOARD_ID_H_
+#define _MAINBOARD_COMMON_BOARD_ID_H_
+
+/* Returns RVP board_id */
+int get_rvp_board_id(void);
+
+#endif /* _MAINBOARD_COMMON_BOARD_ID_H_ */