summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc1
-rw-r--r--src/ec/intel/Makefile.inc7
-rw-r--r--src/ec/intel/board_id.c10
-rw-r--r--src/ec/intel/board_id.h9
4 files changed, 27 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 3eaabaf8d2..3e21bc1df9 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -80,6 +80,7 @@ PHONY+= clean-abuild coreboot check-style build_complete
#######################################################################
# root source directories of coreboot
subdirs-y := src/lib src/commonlib/ src/console src/device src/acpi src/superio/common
+subdirs-$(CONFIG_EC_ACPI) += src/ec/intel
subdirs-y += src/ec/acpi $(wildcard src/ec/*/*) $(wildcard src/southbridge/*/*)
subdirs-y += $(wildcard src/soc/*) $(wildcard src/soc/*/common) $(filter-out $(wildcard src/soc/*/common),$(wildcard src/soc/*/*))
subdirs-y += $(wildcard src/northbridge/*/*)
diff --git a/src/ec/intel/Makefile.inc b/src/ec/intel/Makefile.inc
new file mode 100644
index 0000000000..46c07a74a8
--- /dev/null
+++ b/src/ec/intel/Makefile.inc
@@ -0,0 +1,7 @@
+## SPDX-License-Identifier: GPL-2.0-or-later
+
+bootblock-y += board_id.c
+romstage-y += board_id.c
+ramstage-y += board_id.c
+
+CPPFLAGS_common += -I$(src)/ec/intel
diff --git a/src/ec/intel/board_id.c b/src/ec/intel/board_id.c
new file mode 100644
index 0000000000..2d50b4a614
--- /dev/null
+++ b/src/ec/intel/board_id.c
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <boardid.h>
+#include "board_id.h"
+
+/* Get RVP Board ID */
+int get_rvp_board_id(void)
+{
+ return BOARD_ID_INIT;
+}
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_ */