From 9d8dac0dbe03f5deb1c9f6db349aef1c678a5ee3 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sat, 9 Apr 2022 08:34:29 +0200 Subject: nb/intel/sandybridge: Restore `mainboard_early_init()` call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 7a874330919a4df9cc5b66058b4340465b7ea041 (mb/google,samsung: Drop init_bootmode_straps()) got rid of the `mainboard_early_init()` function call and weak definition in Sandy Bridge code. However, this function is still used by several Sandy Bridge mainboards, so bring back the dropped call and weak definition. The aforementioned commit did not cause any build-time errors because it did not remove the `mainboard_early_init()` function declaration. Change-Id: I82768e9a187696d42b61be44d4aa048acc19d551 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/63515 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber Reviewed-by: Paul Menzel Reviewed-by: Kyösti Mälkki --- src/northbridge/intel/sandybridge/romstage.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/northbridge/intel/sandybridge/romstage.c b/src/northbridge/intel/sandybridge/romstage.c index 1b6e744c5a..56dc677d2c 100644 --- a/src/northbridge/intel/sandybridge/romstage.c +++ b/src/northbridge/intel/sandybridge/romstage.c @@ -16,6 +16,10 @@ #include #include +__weak void mainboard_early_init(int s3resume) +{ +} + __weak void mainboard_late_rcba_config(void) { } @@ -67,6 +71,8 @@ void mainboard_romstage_entry(void) post_code(0x38); + mainboard_early_init(s3resume); + post_code(0x39); if (CONFIG(INTEL_TXT)) { -- cgit v1.2.3