tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / arch / arm / armv7 / bootblock_simple.c
blob0f4965af04b4c6b2bc62732916a2686cfc8815a7
1 /*
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
9 * the License.
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>
21 #include <delay.h>
22 #include <program_loading.h>
23 #include <smp/node.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 */ }
30 void main(void)
32 init_timer();
33 if (IS_ENABLED(CONFIG_HAS_PRECBMEM_TIMESTAMP_REGION))
34 timestamp_init(timestamp_get());
36 bootblock_mainboard_early_init();
38 #if CONFIG_BOOTBLOCK_CONSOLE
39 console_init();
40 exception_init();
41 #endif
43 bootblock_soc_init();
44 bootblock_mainboard_init();
46 run_romstage();