Felix Held | 4a8cd72 | 2020-04-18 22:26:39 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: BSD-3-Clause |
Felix Held | 4a8cd72 | 2020-04-18 22:26:39 +0200 | [diff] [blame] | 2 | |
Marshall Dawson | d786843 | 2019-11-25 11:47:32 -0700 | [diff] [blame] | 3 | ifeq ($(CONFIG_SOC_AMD_STONEYRIDGE),y) |
Marc Jones | 21cde8b | 2017-05-07 16:47:36 -0600 | [diff] [blame] | 4 | |
| 5 | subdirs-y += ../../../cpu/amd/mtrr/ |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 6 | |
Felix Held | fbfb906 | 2021-12-15 19:35:00 +0100 | [diff] [blame] | 7 | bootblock-y += aoac.c |
Felix Held | 91ef925 | 2021-01-12 23:44:05 +0100 | [diff] [blame] | 8 | bootblock-y += uart.c |
Martin Roth | c450fbe | 2017-10-02 13:46:50 -0600 | [diff] [blame] | 9 | bootblock-y += BiosCallOuts.c |
Felix Held | 0aada3c | 2020-11-24 22:55:53 +0100 | [diff] [blame] | 10 | bootblock-y += bootblock.c |
Felix Held | 2d020e1 | 2021-12-15 20:52:10 +0100 | [diff] [blame] | 11 | bootblock-y += early_fch.c |
Chris Ching | 2269a3c | 2018-02-05 16:46:41 -0700 | [diff] [blame] | 12 | bootblock-y += gpio.c |
Chris Ching | 6fc39d4 | 2017-12-20 16:06:03 -0700 | [diff] [blame] | 13 | bootblock-y += i2c.c |
Arthur Heymans | c63649b | 2019-11-16 12:13:03 +0100 | [diff] [blame] | 14 | bootblock-y += enable_usbdebug.c |
Aaron Durbin | 2407932 | 2018-01-23 10:53:05 -0700 | [diff] [blame] | 15 | bootblock-y += monotonic_timer.c |
Marshall Dawson | 9df969a | 2017-07-25 18:46:46 -0600 | [diff] [blame] | 16 | bootblock-y += tsc_freq.c |
| 17 | |
Martin Roth | c450fbe | 2017-10-02 13:46:50 -0600 | [diff] [blame] | 18 | romstage-y += BiosCallOuts.c |
Chris Ching | 6fc39d4 | 2017-12-20 16:06:03 -0700 | [diff] [blame] | 19 | romstage-y += i2c.c |
Marshall Dawson | 9df969a | 2017-07-25 18:46:46 -0600 | [diff] [blame] | 20 | romstage-y += romstage.c |
Arthur Heymans | c63649b | 2019-11-16 12:13:03 +0100 | [diff] [blame] | 21 | romstage-y += enable_usbdebug.c |
Felix Held | 25aa560 | 2021-12-15 20:52:10 +0100 | [diff] [blame] | 22 | romstage-y += fch_agesa.c |
Marc Jones | a1b0793 | 2017-06-22 21:39:03 -0600 | [diff] [blame] | 23 | romstage-y += gpio.c |
Aaron Durbin | 2407932 | 2018-01-23 10:53:05 -0700 | [diff] [blame] | 24 | romstage-y += monotonic_timer.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 25 | romstage-y += smbus_spd.c |
Kyösti Mälkki | 1dbf310 | 2019-08-03 21:28:40 +0300 | [diff] [blame] | 26 | romstage-y += memmap.c |
Felix Held | 91ef925 | 2021-01-12 23:44:05 +0100 | [diff] [blame] | 27 | romstage-y += uart.c |
Marshall Dawson | 786bd5d | 2017-06-16 10:10:17 -0600 | [diff] [blame] | 28 | romstage-y += tsc_freq.c |
Felix Held | dba3229 | 2020-03-31 23:54:44 +0200 | [diff] [blame] | 29 | romstage-y += psp.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 30 | |
Chris Ching | 2269a3c | 2018-02-05 16:46:41 -0700 | [diff] [blame] | 31 | verstage-y += gpio.c |
Chris Ching | 6fc39d4 | 2017-12-20 16:06:03 -0700 | [diff] [blame] | 32 | verstage-y += i2c.c |
Aaron Durbin | 2407932 | 2018-01-23 10:53:05 -0700 | [diff] [blame] | 33 | verstage-y += monotonic_timer.c |
Felix Held | 91ef925 | 2021-01-12 23:44:05 +0100 | [diff] [blame] | 34 | verstage-y += uart.c |
Marshall Dawson | e7557de | 2017-06-09 16:35:14 -0600 | [diff] [blame] | 35 | verstage-y += tsc_freq.c |
| 36 | |
Aaron Durbin | 2407932 | 2018-01-23 10:53:05 -0700 | [diff] [blame] | 37 | postcar-y += monotonic_timer.c |
Felix Held | 91ef925 | 2021-01-12 23:44:05 +0100 | [diff] [blame] | 38 | postcar-y += uart.c |
Kyösti Mälkki | 1dbf310 | 2019-08-03 21:28:40 +0300 | [diff] [blame] | 39 | postcar-y += memmap.c |
Philipp Deppenwiese | 2af17af | 2018-11-26 15:04:46 +0100 | [diff] [blame] | 40 | postcar-$(CONFIG_VBOOT_MEASURED_BOOT) += i2c.c |
Philipp Deppenwiese | 66f9a09 | 2018-11-08 10:59:40 +0100 | [diff] [blame] | 41 | postcar-y += tsc_freq.c |
Marshall Dawson | 18b477e | 2017-09-21 12:27:12 -0600 | [diff] [blame] | 42 | |
Martin Roth | c450fbe | 2017-10-02 13:46:50 -0600 | [diff] [blame] | 43 | ramstage-y += BiosCallOuts.c |
Chris Ching | 6fc39d4 | 2017-12-20 16:06:03 -0700 | [diff] [blame] | 44 | ramstage-y += i2c.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 45 | ramstage-y += chip.c |
Marshall Dawson | a7bfbbe | 2017-09-13 17:24:53 -0600 | [diff] [blame] | 46 | ramstage-y += cpu.c |
Marshall Dawson | 0b4a1e2 | 2018-09-04 13:11:42 -0600 | [diff] [blame] | 47 | ramstage-y += mca.c |
Arthur Heymans | c63649b | 2019-11-16 12:13:03 +0100 | [diff] [blame] | 48 | ramstage-y += enable_usbdebug.c |
Marc Jones | 257db58 | 2017-06-18 17:33:30 -0600 | [diff] [blame] | 49 | ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c |
Felix Held | 2d020e1 | 2021-12-15 20:52:10 +0100 | [diff] [blame] | 50 | ramstage-y += fch.c |
Felix Held | 25aa560 | 2021-12-15 20:52:10 +0100 | [diff] [blame] | 51 | ramstage-y += fch_agesa.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 52 | ramstage-y += gpio.c |
Aaron Durbin | 2407932 | 2018-01-23 10:53:05 -0700 | [diff] [blame] | 53 | ramstage-y += monotonic_timer.c |
Marc Jones | 1587dc8 | 2017-05-15 18:55:11 -0600 | [diff] [blame] | 54 | ramstage-y += northbridge.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 55 | ramstage-y += sata.c |
Kyösti Mälkki | 1dbf310 | 2019-08-03 21:28:40 +0300 | [diff] [blame] | 56 | ramstage-y += memmap.c |
Felix Held | 91ef925 | 2021-01-12 23:44:05 +0100 | [diff] [blame] | 57 | ramstage-y += uart.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 58 | ramstage-y += usb.c |
Marshall Dawson | 786bd5d | 2017-06-16 10:10:17 -0600 | [diff] [blame] | 59 | ramstage-y += tsc_freq.c |
Felix Held | dba3229 | 2020-03-31 23:54:44 +0200 | [diff] [blame] | 60 | ramstage-y += psp.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 61 | |
Kyösti Mälkki | 9db3987 | 2019-12-13 18:11:05 +0200 | [diff] [blame] | 62 | all-y += reset.c |
| 63 | |
Aaron Durbin | 2407932 | 2018-01-23 10:53:05 -0700 | [diff] [blame] | 64 | smm-y += monotonic_timer.c |
Marshall Dawson | 6746d37 | 2017-09-27 13:32:00 -0600 | [diff] [blame] | 65 | smm-y += smihandler.c |
Marshall Dawson | 6746d37 | 2017-09-27 13:32:00 -0600 | [diff] [blame] | 66 | smm-y += tsc_freq.c |
Marshall Dawson | abac64d | 2017-09-27 13:26:23 -0600 | [diff] [blame] | 67 | smm-$(CONFIG_DEBUG_SMI) += uart.c |
Marc Jones | 85aec31 | 2018-07-14 17:08:27 -0600 | [diff] [blame] | 68 | smm-y += gpio.c |
Felix Held | dba3229 | 2020-03-31 23:54:44 +0200 | [diff] [blame] | 69 | smm-y += psp.c |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 70 | |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 71 | CPPFLAGS_common += -I$(src)/soc/amd/stoneyridge/include |
| 72 | CPPFLAGS_common += -I$(src)/soc/amd/stoneyridge/acpi |
| 73 | |
Martin Roth | 6d8ef24 | 2017-09-08 14:39:35 -0600 | [diff] [blame] | 74 | # ROMSIG Normally At ROMBASE + 0x20000 |
| 75 | # Overridden by CONFIG_AMD_FWM_POSITION_INDEX |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 76 | # +-----------+---------------+----------------+------------+ |
| 77 | # |0x55AA55AA |EC ROM Address |GEC ROM Address |USB3 ROM | |
| 78 | # +-----------+---------------+----------------+------------+ |
| 79 | # |PSPDIR ADDR| |
| 80 | # +-----------+ |
| 81 | # |
| 82 | # EC ROM should be 64K aligned. |
Martin Roth | 6d8ef24 | 2017-09-08 14:39:35 -0600 | [diff] [blame] | 83 | STONEYRIDGE_FWM_POSITION=$(call int-add, \ |
| 84 | $(call int-subtract, 0xffffffff \ |
| 85 | $(call int-shift-left, \ |
| 86 | 0x80000 $(CONFIG_AMD_FWM_POSITION_INDEX))) 0x20000 1) |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 87 | |
| 88 | ### 0 |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 89 | |
Zheng Bao | 3384e4a | 2020-10-06 12:03:11 +0800 | [diff] [blame] | 90 | FIRMWARE_LOCATION=$(shell grep -e FIRMWARE_LOCATION $(CONFIG_AMDFW_CONFIG_FILE) | awk '{print $$2}') |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 91 | |
Zheng Bao | 3384e4a | 2020-10-06 12:03:11 +0800 | [diff] [blame] | 92 | ifneq ($(FIRMWARE_LOCATION),) |
Marshall Dawson | 12294d0 | 2019-11-25 07:21:18 -0700 | [diff] [blame] | 93 | |
| 94 | ifeq ($(CONFIG_AMD_APU_STONEYRIDGE),y) |
| 95 | FIRMWARE_TYPE=ST |
| 96 | else |
Marshall Dawson | 12294d0 | 2019-11-25 07:21:18 -0700 | [diff] [blame] | 97 | ifeq ($(CONFIG_AMD_APU_MERLINFALCON),y) |
Richard Spiegel | 1bc578a | 2019-06-18 18:19:47 -0700 | [diff] [blame] | 98 | FIRMWARE_TYPE=CZ |
| 99 | else |
Marshall Dawson | e1988f5 | 2019-11-25 11:15:35 -0700 | [diff] [blame] | 100 | ifeq ($(CONFIG_AMD_APU_PRAIRIEFALCON),y) |
| 101 | FIRMWARE_TYPE=ST |
| 102 | else |
Marshall Dawson | 91e7fe7 | 2019-11-24 17:19:19 -0700 | [diff] [blame] | 103 | $(error soc/amd/stoneyridge: Unusable FIRMWARE_TYPE) |
Marshall Dawson | 12294d0 | 2019-11-25 07:21:18 -0700 | [diff] [blame] | 104 | |
Marshall Dawson | e1988f5 | 2019-11-25 11:15:35 -0700 | [diff] [blame] | 105 | endif # CONFIG_AMD_APU_PRAIRIEFALCON |
Marshall Dawson | 12294d0 | 2019-11-25 07:21:18 -0700 | [diff] [blame] | 106 | endif # CONFIG_AMD_APU_MERLINFALCON |
| 107 | endif # CONFIG_AMD_APU_STONEYRIDGE |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 108 | |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 109 | add_opt_prefix=$(if $(call strip_quotes, $(1)), $(2) $(call strip_quotes, $(1)), ) |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 110 | |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 111 | OPT_STONEYRIDGE_XHCI_FWM_FILE=$(call add_opt_prefix, $(CONFIG_STONEYRIDGE_XHCI_FWM_FILE), --xhci) |
| 112 | OPT_STONEYRIDGE_GEC_FWM_FILE=$(call add_opt_prefix, $(CONFIG_STONEYRIDGE_GEC_FWM_FILE), --gec) |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 113 | |
Zheng Bao | 3384e4a | 2020-10-06 12:03:11 +0800 | [diff] [blame] | 114 | SMUFWM_FILE=$(top)/$(FIRMWARE_LOCATION)/$(shell awk '($$1=="PSP_SMUFW1_SUB0_FILE") {print $$2}' $(CONFIG_AMDFW_CONFIG_FILE)) |
| 115 | SMUFWM_FN_FILE=$(top)/$(FIRMWARE_LOCATION)/$(shell awk '($$1=="PSP_SMUFW1_SUB1_FILE") {print $$2}' $(CONFIG_AMDFW_CONFIG_FILE)) |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 116 | |
Zheng Bao | 3384e4a | 2020-10-06 12:03:11 +0800 | [diff] [blame] | 117 | SMUFIRMWARE2_FILE=$(top)/$(FIRMWARE_LOCATION)/$(shell awk '($$1=="PSP_SMUFW2_SUB0_FILE") {print $$2}' $(CONFIG_AMDFW_CONFIG_FILE)) |
| 118 | SMUFIRMWARE2_FN_FILE=$(top)/$(FIRMWARE_LOCATION)/$(shell awk '($$1=="PSP_SMUFW2_SUB1_FILE") {print $$2}' $(CONFIG_AMDFW_CONFIG_FILE)) |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 119 | |
Richard Spiegel | 1bc578a | 2019-06-18 18:19:47 -0700 | [diff] [blame] | 120 | ifeq ("$(wildcard $(SMUFWM_FN_FILE))","") |
| 121 | SMUFWM_FN_FILE= |
| 122 | SMUFIRMWARE2_FN_FILE= |
| 123 | endif |
| 124 | |
Richard Spiegel | 1bc578a | 2019-06-18 18:19:47 -0700 | [diff] [blame] | 125 | ifeq ($(FIRMWARE_TYPE),ST) |
| 126 | OPT_COMBOCAPABLE=--combo-capable |
Zheng Bao | 6bc300d | 2021-11-03 10:24:15 +0800 | [diff] [blame] | 127 | OPT_SOCNAME=--soc-name "Stoneyridge" |
Richard Spiegel | 1bc578a | 2019-06-18 18:19:47 -0700 | [diff] [blame] | 128 | endif |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 129 | |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 130 | ifeq ($(CONFIG_USE_PSPSECUREOS),y) |
| 131 | PSP_USE_PSPSECUREOS="--use-pspsecureos" |
| 132 | endif |
| 133 | |
| 134 | OPT_PSP_USE_PSPSECUREOS=$(call strip_quotes, $(PSP_USE_PSPSECUREOS)) |
| 135 | |
Zheng Bao | 570645d | 2021-11-03 10:25:03 +0800 | [diff] [blame] | 136 | OPT_EFS_SPI_READ_MODE=$(call add_opt_prefix, $(CONFIG_EFS_SPI_READ_MODE), --spi-read-mode) |
| 137 | OPT_EFS_SPI_SPEED=$(call add_opt_prefix, $(CONFIG_EFS_SPI_SPEED), --spi-speed) |
| 138 | |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 139 | # Add all the files listed in the config file |
Zheng Bao | af2efbb | 2020-11-05 18:26:10 +0800 | [diff] [blame] | 140 | POUND_SIGN=$(call strip_quotes, "\#") |
| 141 | DEP_FILES= $(patsubst %,$(FIRMWARE_LOCATION)/%, $(shell sed -e /^$(POUND_SIGN)/d -e /^FIRMWARE_LOCATION/d $(CONFIG_AMDFW_CONFIG_FILE) | awk '{print $$2}' )) |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 142 | |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 143 | $(obj)/amdfw.rom: $(call strip_quotes, $(CONFIG_STONEYRIDGE_XHCI_FWM_FILE)) \ |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 144 | $(call strip_quotes, $(CONFIG_STONEYRIDGE_GEC_FWM_FILE)) \ |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 145 | $(DEP_FILES) \ |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 146 | $(AMDFWTOOL) |
| 147 | rm -f $@ |
| 148 | @printf " AMDFWTOOL $(subst $(obj)/,,$(@))\n" |
| 149 | $(AMDFWTOOL) \ |
| 150 | $(OPT_STONEYRIDGE_XHCI_FWM_FILE) \ |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 151 | $(OPT_STONEYRIDGE_GEC_FWM_FILE) \ |
Richard Spiegel | 1bc578a | 2019-06-18 18:19:47 -0700 | [diff] [blame] | 152 | $(OPT_COMBOCAPABLE)\ |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 153 | $(OPT_PSP_USE_PSPSECUREOS) \ |
Zheng Bao | 570645d | 2021-11-03 10:25:03 +0800 | [diff] [blame] | 154 | $(OPT_EFS_SPI_READ_MODE) \ |
| 155 | $(OPT_EFS_SPI_SPEED) \ |
Zheng Bao | c5e28ab | 2020-10-28 11:38:09 +0800 | [diff] [blame] | 156 | --config $(CONFIG_AMDFW_CONFIG_FILE) \ |
Zheng Bao | 6bc300d | 2021-11-03 10:24:15 +0800 | [diff] [blame] | 157 | $(OPT_SOCNAME) \ |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 158 | --flashsize $(CONFIG_ROM_SIZE) \ |
Martin Roth | a75d680 | 2017-10-03 14:24:07 -0600 | [diff] [blame] | 159 | --location $(shell printf "0x%x" $(STONEYRIDGE_FWM_POSITION)) \ |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 160 | --output $@ |
| 161 | |
| 162 | ifeq ($(CONFIG_AMDFW_OUTSIDE_CBFS),y) |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 163 | |
Martin Roth | 30f9b95 | 2017-10-03 15:54:45 -0600 | [diff] [blame] | 164 | # Calculate firmware position inside the ROM |
| 165 | STONEYRIDGE_FWM_ROM_POSITION=$(call int-add, \ |
| 166 | $(call int-subtract, $(CONFIG_ROM_SIZE) \ |
| 167 | $(call int-shift-left, \ |
| 168 | 0x80000 $(CONFIG_AMD_FWM_POSITION_INDEX))) 0x20000) |
| 169 | |
Patrick Georgi | 2cc5bcb | 2021-01-13 09:15:07 +0100 | [diff] [blame] | 170 | $(call add_intermediate, add_amdfw, $(obj)/amdfw.rom) |
Martin Roth | 30f9b95 | 2017-10-03 15:54:45 -0600 | [diff] [blame] | 171 | printf " DD Adding AMD Firmware at ROM offset 0x%x\n" \ |
| 172 | "$(STONEYRIDGE_FWM_ROM_POSITION)" |
Patrick Georgi | 0b7d3a1 | 2021-01-13 09:16:41 +0100 | [diff] [blame] | 173 | dd if=$(obj)/amdfw.rom \ |
Martin Roth | 30f9b95 | 2017-10-03 15:54:45 -0600 | [diff] [blame] | 174 | of=$(obj)/coreboot.pre conv=notrunc bs=1 \ |
| 175 | seek=$(STONEYRIDGE_FWM_ROM_POSITION) >/dev/null 2>&1 |
Marc Jones | 2448484 | 2017-05-04 21:17:45 -0600 | [diff] [blame] | 176 | |
| 177 | else # ifeq ($(CONFIG_AMDFW_OUTSIDE_CBFS),y) |
| 178 | |
| 179 | cbfs-files-y += apu/amdfw |
| 180 | apu/amdfw-file := $(obj)/amdfw.rom |
| 181 | apu/amdfw-position := $(STONEYRIDGE_FWM_POSITION) |
| 182 | apu/amdfw-type := raw |
| 183 | |
| 184 | endif # ifeq ($(CONFIG_AMDFW_OUTSIDE_CBFS),y) |
| 185 | |
Marshall Dawson | 5f0520a | 2017-10-30 16:11:45 -0600 | [diff] [blame] | 186 | ifeq ($(CONFIG_SOC_AMD_PSP_SELECTABLE_SMU_FW),y) |
| 187 | |
| 188 | cbfs-files-y += smu_fw |
| 189 | cbfs-files-y += smu_fw2 |
| 190 | smu_fw-type := raw |
| 191 | smu_fw2-type := raw |
| 192 | |
| 193 | ifeq ($(CONFIG_SOC_AMD_SMU_FANLESS),y) |
| 194 | smu_fw-file := $(SMUFWM_FN_FILE) |
| 195 | smu_fw2-file := $(SMUFIRMWARE2_FN_FILE) |
| 196 | else ifeq ($(CONFIG_SOC_AMD_SMU_FANNED),y) |
| 197 | smu_fw-file := $(SMUFWM_FILE) |
| 198 | smu_fw2-file := $(SMUFIRMWARE2_FILE) |
| 199 | else |
| 200 | $(error "Proper SMU Firmware not selected") |
| 201 | endif |
| 202 | |
| 203 | endif # ifeq ($(CONFIG_SOC_AMD_PSP_SELECTABLE_SMU_FW),y) |
| 204 | |
Zheng Bao | 3384e4a | 2020-10-06 12:03:11 +0800 | [diff] [blame] | 205 | else # ifneq ($(FIRMWARE_LOCATION),) |
Marshall Dawson | 91e7fe7 | 2019-11-24 17:19:19 -0700 | [diff] [blame] | 206 | |
| 207 | warn_no_amdfw: |
| 208 | printf "\n\t** WARNING **\n" |
| 209 | printf "coreboot has been built with no PSP firmware and " |
| 210 | printf "a non-booting image has been generated.\n\n" |
| 211 | |
| 212 | PHONY+=warn_no_amdfw |
| 213 | |
| 214 | files_added:: warn_no_amdfw |
| 215 | |
Zheng Bao | 3384e4a | 2020-10-06 12:03:11 +0800 | [diff] [blame] | 216 | endif # ifneq ($(FIRMWARE_LOCATION),) |
Marshall Dawson | 91e7fe7 | 2019-11-24 17:19:19 -0700 | [diff] [blame] | 217 | |
Marshall Dawson | d786843 | 2019-11-25 11:47:32 -0700 | [diff] [blame] | 218 | endif # ($(CONFIG_SOC_AMD_STONEYRIDGE),y) |