summaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/include
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2021-03-26 00:44:35 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-03-29 19:52:12 +0000
commitdd737142490828c3aa2244216a2fda6df26a4c47 (patch)
treee680860a83aee4fb245236deb5d2a02fe26e8b27 /src/soc/amd/picasso/include
parent793f3717b4fd430f03455bdbbd071d5f7d104b57 (diff)
downloadcoreboot-dd737142490828c3aa2244216a2fda6df26a4c47.tar.xz
soc/amd/picasso: factor out UPD-M configuration from romstage
Move the parts of romstage.c that populate the UPD-M data structure to the newly created fsp_m_params.c file. Since platform_fsp_memory_init_params_cb gets called from the FSP driver and not directly from car_stage_entry the two code parts in romstage.c weren't directly interacting. Since soc/romstage.h only contains the mainboard_updm_update function prototype, rename it to soc/fsp.h. This patch also removes a few unused includes. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I52c21f13520dbdfab37587d17b3a8a3b1a780f36 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51834 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/soc/amd/picasso/include')
-rw-r--r--src/soc/amd/picasso/include/soc/fsp.h (renamed from src/soc/amd/picasso/include/soc/romstage.h)6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/amd/picasso/include/soc/romstage.h b/src/soc/amd/picasso/include/soc/fsp.h
index 0af374f437..4d79b94232 100644
--- a/src/soc/amd/picasso/include/soc/romstage.h
+++ b/src/soc/amd/picasso/include/soc/fsp.h
@@ -1,10 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#ifndef _SOC_ROMSTAGE_H_
-#define _SOC_ROMSTAGE_H_
+#ifndef AMD_PICASSO_SOC_FSP_H
+#define AMD_PICASSO_SOC_FSP_H
#include <fsp/api.h>
void mainboard_updm_update(FSP_M_CONFIG *mcfg);
-#endif /* _SOC_ROMSTAGE_H_ */
+#endif /* AMD_PICASSO_SOC_FSP_H */