blob: 6c417ce54c039e3363d5128b934e79fb8e6bb544 [file] [log] [blame]
Martin Roth3c963d92022-10-06 16:29:07 -06001# SPDX-License-Identifier: GPL-2.0-only
2
3bootblock-y += bootblock.c
4bootblock-y += early_gpio.c
5bootblock-y += ec.c
6
Felix Held44dddc72024-02-01 17:15:14 +01007romstage-$(CONFIG_BOARD_AMD_BIRMAN_PHOENIX_FSP) += port_descriptors_phoenix.c
Fred Reitberger3881b102023-03-31 12:11:14 -04008romstage-$(CONFIG_BOARD_AMD_BIRMAN_GLINDA) += port_descriptors_glinda.c
Martin Roth3c963d92022-10-06 16:29:07 -06009
10ramstage-y += chromeos.c
11ramstage-y += gpio.c
Felix Held44dddc72024-02-01 17:15:14 +010012ramstage-$(CONFIG_BOARD_AMD_BIRMAN_PHOENIX_FSP) += port_descriptors_phoenix.c
Fred Reitberger3881b102023-03-31 12:11:14 -040013ramstage-$(CONFIG_BOARD_AMD_BIRMAN_GLINDA) += port_descriptors_glinda.c
Martin Roth3c963d92022-10-06 16:29:07 -060014
Zheng Bao1a4440c2023-01-13 21:39:25 +080015ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5.bin),)
16APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5.bin
17APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5_DefaultRecovery.bin
Martin Roth3c963d92022-10-06 16:29:07 -060018else
Martin Roth372503f2023-12-08 00:43:23 -070019show_notices:: warn_no_apcb
Martin Roth3c963d92022-10-06 16:29:07 -060020endif
21
Martin Roth3c963d92022-10-06 16:29:07 -060022ifeq ($(CONFIG_BIRMAN_HAVE_MCHP_FW),y)
23$(call add_intermediate, add_mchp_fw)
Fred Reitberger75e720b2022-12-12 10:13:41 -050024 $(CBFSTOOL) $(obj)/coreboot.pre write -r EC_SIG -f $(CONFIG_BIRMAN_MCHP_SIG_FILE) --fill-upward
25 $(CBFSTOOL) $(obj)/coreboot.pre write -r EC_BODY -f $(CONFIG_BIRMAN_MCHP_FW_FILE) --fill-upward
Martin Roth3c963d92022-10-06 16:29:07 -060026
27else
Martin Roth372503f2023-12-08 00:43:23 -070028show_notices:: warn_no_mchp
Martin Roth3c963d92022-10-06 16:29:07 -060029endif # CONFIG_BIRMAN_HAVE_MCHP_FW
30
31PHONY+=warn_no_mchp
32warn_no_mchp:
33 printf "\n\t** WARNING **\n"
34 printf "coreboot has been built without the EC FW.\n"
35 printf "Do not flash this image. Your Birman's power button\n"
36 printf "will not respond when you press it.\n\n"