Martin Roth | 3c963d9 | 2022-10-06 16:29:07 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | bootblock-y += bootblock.c |
| 4 | bootblock-y += early_gpio.c |
| 5 | bootblock-y += ec.c |
| 6 | |
Fred Reitberger | 3881b10 | 2023-03-31 12:11:14 -0400 | [diff] [blame^] | 7 | romstage-$(CONFIG_BOARD_AMD_BIRMAN_PHOENIX) += port_descriptors_phoenix.c |
| 8 | romstage-$(CONFIG_BOARD_AMD_BIRMAN_GLINDA) += port_descriptors_glinda.c |
Martin Roth | 3c963d9 | 2022-10-06 16:29:07 -0600 | [diff] [blame] | 9 | |
| 10 | ramstage-y += chromeos.c |
| 11 | ramstage-y += gpio.c |
Fred Reitberger | 3881b10 | 2023-03-31 12:11:14 -0400 | [diff] [blame^] | 12 | ramstage-$(CONFIG_BOARD_AMD_BIRMAN_PHOENIX) += port_descriptors_phoenix.c |
| 13 | ramstage-$(CONFIG_BOARD_AMD_BIRMAN_GLINDA) += port_descriptors_glinda.c |
Martin Roth | 3c963d9 | 2022-10-06 16:29:07 -0600 | [diff] [blame] | 14 | |
Zheng Bao | 1a4440c | 2023-01-13 21:39:25 +0800 | [diff] [blame] | 15 | ifneq ($(wildcard $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5.bin),) |
| 16 | APCB_SOURCES = $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5.bin |
| 17 | APCB_SOURCES_RECOVERY = $(MAINBOARD_BLOBS_DIR)/APCB_FP8_LPDDR5_DefaultRecovery.bin |
Martin Roth | 3c963d9 | 2022-10-06 16:29:07 -0600 | [diff] [blame] | 18 | else |
Fred Reitberger | 12931fe | 2023-02-08 11:05:24 -0500 | [diff] [blame] | 19 | files_added:: warn_no_apcb |
Martin Roth | 3c963d9 | 2022-10-06 16:29:07 -0600 | [diff] [blame] | 20 | endif |
| 21 | |
Martin Roth | 3c963d9 | 2022-10-06 16:29:07 -0600 | [diff] [blame] | 22 | ifeq ($(CONFIG_BIRMAN_HAVE_MCHP_FW),y) |
| 23 | $(call add_intermediate, add_mchp_fw) |
Fred Reitberger | 75e720b | 2022-12-12 10:13:41 -0500 | [diff] [blame] | 24 | $(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 Roth | 3c963d9 | 2022-10-06 16:29:07 -0600 | [diff] [blame] | 26 | |
| 27 | else |
| 28 | files_added:: warn_no_mchp |
| 29 | endif # CONFIG_BIRMAN_HAVE_MCHP_FW |
| 30 | |
| 31 | PHONY+=warn_no_mchp |
| 32 | warn_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" |