Harsha B R has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/70227 )
Change subject: src/ec/intel: Create common code for board_id implementation ......................................................................
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 --- M Makefile.inc A src/ec/intel/Makefile.inc A src/ec/intel/board_id.c A src/ec/intel/board_id.h 4 files changed, 50 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/70227/1
diff --git a/Makefile.inc b/Makefile.inc index ef565c2..8064a4a 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -80,6 +80,7 @@ ####################################################################### # root source directories of coreboot subdirs-y := src/lib src/commonlib/ src/console src/device src/acpi src/superio/common +subdirs-y += 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 0000000..46c07a7 --- /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 0000000..2be29aa --- /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 Board ID */ +int get_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 0000000..2b62daa --- /dev/null +++ b/src/ec/intel/board_id.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#ifndef _MAINBOARD_COMMON_BOARD_ID_H_ +#define _MAINBOARD_COMMON_BOARD_ID_H_ + +/* + * Returns board_id + */ +int get_board_id(void); + +#endif /* _MAINBOARD_COMMON_BOARD_ID_H_ */