summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-04-06 18:28:07 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-04-27 10:56:47 +0000
commit5cf02a4ecdcf4c93a281289fa51dff90bdddd36f (patch)
tree2e540fee843c1c636585b064288528be8606f6a0 /src/lib
parentfd016126e46509e71b8890e21bf0a29e1d1523b0 (diff)
lib/hardwaremain.c: Move creating ACPI structs to bootstate hooks
hardwaremain.c is the common ramstage entry to all platforms so move out ACPI code generation (x86 specific) to boot state hooks. Another reason to do this is the following: On some platforms that start in dram it makes little sense to have separate stages. To reduce the complexity we want to call the ramstage main function instead of loading a full stage. To make this scheme more maintainable it makes sense to move out as much functionality from the 'main' function as possible. Change-Id: I613b927b9a193fc076ffb1b2a40c617965ce2645 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63414 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/hardwaremain.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c
index 4a5b2f790c..e45ac9fe16 100644
--- a/src/lib/hardwaremain.c
+++ b/src/lib/hardwaremain.c
@@ -23,7 +23,6 @@
#include <timer.h>
#include <timestamp.h>
#include <types.h>
-#include <vendorcode/google/chromeos/chromeos.h>
#include <version.h>
static boot_state_t bs_pre_device(void *arg);
@@ -462,13 +461,6 @@ void main(void)
/* Handoff sleep type from romstage. */
acpi_is_wakeup_s3();
- /* Initialise GNVS early. */
- if (CONFIG(ACPI_SOC_NVS))
- acpi_create_gnvs();
-
- if (CONFIG(CHROMEOS_NVS))
- chromeos_init_chromeos_acpi();
-
/* Schedule the static boot state entries. */
boot_state_schedule_static_entries();