commit | 9d67142ccbb3421275c6aa8b44b4cbbec78054a7 | [log] [tgz] |
---|---|---|
author | Jan Samek <jan.samek@siemens.com> | Thu Jan 19 14:05:50 2023 +0100 |
committer | Felix Held <felix-coreboot@felixheld.de> | Sun Jan 22 00:29:36 2023 +0000 |
tree | 960ea3fe007a56be5081622083aab90108d8165f | |
parent | 105d3091f928376f190320ce614b891a8c84f673 [diff] |
mb/siemens/mc_apl1: Move POST logic to mainboard level Move logic previously used only in the mc_apl2 variant to the mainboard level so that other variants can also make use of it without code duplication. This functionality on the mc_apl6 variant will be enabled in a follow-up patch. BUG=none TEST=Boot on siemens/mc_apl2 and observe that the POST codes are displayed before DRAM training. Change-Id: I762e328ad06c047d911ce1fc40f12a66cbd14e11 Signed-off-by: Jan Samek <jan.samek@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/72115 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
diff --git a/src/mainboard/siemens/mc_apl1/Makefile.inc b/src/mainboard/siemens/mc_apl1/Makefile.inc index fa7aea9..124e380 100644 --- a/src/mainboard/siemens/mc_apl1/Makefile.inc +++ b/src/mainboard/siemens/mc_apl1/Makefile.inc
@@ -7,6 +7,8 @@ ramstage-y += mainboard.c +all-$(CONFIG_NC_FPGA_POST_CODE) += post.c + subdirs-y += variants/baseboard CPPFLAGS_common += -I$(src)/mainboard/$(MAINBOARDDIR)/variants/baseboard/include
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl2/post.c b/src/mainboard/siemens/mc_apl1/post.c similarity index 100% rename from src/mainboard/siemens/mc_apl1/variants/mc_apl2/post.c rename to src/mainboard/siemens/mc_apl1/post.c
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl2/Makefile.inc b/src/mainboard/siemens/mc_apl1/variants/mc_apl2/Makefile.inc index 9ec2c80..152b46e 100644 --- a/src/mainboard/siemens/mc_apl1/variants/mc_apl2/Makefile.inc +++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl2/Makefile.inc
@@ -2,5 +2,3 @@ ramstage-y += gpio.c ramstage-y += mainboard.c - -all-$(CONFIG_NC_FPGA_POST_CODE) += post.c