summaryrefslogtreecommitdiff
path: root/src/mainboard/clevo/cml-u/variants
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-01-04 05:38:43 +0100
committerMichael Niewöhner <foss@mniewoehner.de>2021-04-19 10:10:20 +0000
commitcbfcb2a6bb14ca642db857d39c22a8550b917a25 (patch)
tree6dee19181fa92d9b7bd93958b644483734f17224 /src/mainboard/clevo/cml-u/variants
parent24f4623384d372345e63051ec3a3c3724faa226f (diff)
mb/clevo/l140cu: Move FSP-M config hook to mainboard level
Hook up FSP-M configuration on mainboard level instead of variant level being able to do common configuration there. Also, hook up variant romstage.c on mainboard level for variant specific configurations. Change-Id: Ic161f83cb629b1e70ca670e10975a25bc0949656 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49077 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/mainboard/clevo/cml-u/variants')
-rw-r--r--src/mainboard/clevo/cml-u/variants/l140cu/Makefile.inc1
-rw-r--r--src/mainboard/clevo/cml-u/variants/l140cu/romstage.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/mainboard/clevo/cml-u/variants/l140cu/Makefile.inc b/src/mainboard/clevo/cml-u/variants/l140cu/Makefile.inc
index 0e47d8680f..09089b43ad 100644
--- a/src/mainboard/clevo/cml-u/variants/l140cu/Makefile.inc
+++ b/src/mainboard/clevo/cml-u/variants/l140cu/Makefile.inc
@@ -1,2 +1 @@
-romstage-y += romstage.c
SPD_SOURCES = samsung-K4AAG165WA-BCTD
diff --git a/src/mainboard/clevo/cml-u/variants/l140cu/romstage.c b/src/mainboard/clevo/cml-u/variants/l140cu/romstage.c
index 4cad131765..89cccc4097 100644
--- a/src/mainboard/clevo/cml-u/variants/l140cu/romstage.c
+++ b/src/mainboard/clevo/cml-u/variants/l140cu/romstage.c
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <soc/cnl_memcfg_init.h>
-#include <soc/romstage.h>
+#include <variant/romstage.h>
static const struct cnl_mb_cfg memcfg = {
.spd[0] = {
@@ -29,7 +29,7 @@ static const struct cnl_mb_cfg memcfg = {
.vref_ca_config = 2,
};
-void mainboard_memory_init_params(FSPM_UPD *memupd)
+void variant_configure_fspm(FSPM_UPD *memupd)
{
cannonlake_memcfg_init(&memupd->FspmConfig, &memcfg);
}