2 * This file is part of the coreboot project.
4 * Copyright 2010 Google Inc.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #include <arch/exception.h>
18 #include <arch/stages.h>
19 #include <bootblock_common.h>
20 #include <console/console.h>
22 #include <program_loading.h>
24 #include <timestamp.h>
26 __attribute__((weak
)) void bootblock_mainboard_early_init(void) { /* no-op */ }
27 __attribute__((weak
)) void bootblock_soc_init(void) { /* do nothing */ }
28 __attribute__((weak
)) void bootblock_mainboard_init(void) { /* do nothing */ }
33 if (IS_ENABLED(CONFIG_HAS_PRECBMEM_TIMESTAMP_REGION
))
34 timestamp_init(timestamp_get());
36 bootblock_mainboard_early_init();
38 #if CONFIG_BOOTBLOCK_CONSOLE
44 bootblock_mainboard_init();