diff options
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/armv4/bootblock_simple.c | 6 | ||||
-rw-r--r-- | src/arch/arm/armv7/bootblock_simple.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/arch/arm/armv4/bootblock_simple.c b/src/arch/arm/armv4/bootblock_simple.c index 26646eebf5..eea2dd6847 100644 --- a/src/arch/arm/armv4/bootblock_simple.c +++ b/src/arch/arm/armv4/bootblock_simple.c @@ -24,7 +24,9 @@ #include <bootblock_common.h> #include <cbfs.h> #include <console/console.h> +#include <delay.h> #include <program_loading.h> +#include <timestamp.h> __attribute__((weak)) void bootblock_mainboard_early_init(void) { /* no-op */ } __attribute__((weak)) void bootblock_soc_init(void) { /* do nothing */ } @@ -32,6 +34,10 @@ __attribute__((weak)) void bootblock_mainboard_init(void) { /* do nothing */ } void main(void) { + init_timer(); + if (IS_ENABLED(CONFIG_HAS_PRECBMEM_TIMESTAMP_REGION)) + timestamp_init(timestamp_get()); + bootblock_mainboard_early_init(); if (CONFIG_BOOTBLOCK_CONSOLE) { diff --git a/src/arch/arm/armv7/bootblock_simple.c b/src/arch/arm/armv7/bootblock_simple.c index 564db5b80a..b8b60c8701 100644 --- a/src/arch/arm/armv7/bootblock_simple.c +++ b/src/arch/arm/armv7/bootblock_simple.c @@ -24,8 +24,10 @@ #include <bootblock_common.h> #include <cbfs.h> #include <console/console.h> +#include <delay.h> #include <program_loading.h> #include <smp/node.h> +#include <timestamp.h> __attribute__((weak)) void bootblock_mainboard_early_init(void) { /* no-op */ } __attribute__((weak)) void bootblock_soc_init(void) { /* do nothing */ } @@ -33,6 +35,10 @@ __attribute__((weak)) void bootblock_mainboard_init(void) { /* do nothing */ } void main(void) { + init_timer(); + if (IS_ENABLED(CONFIG_HAS_PRECBMEM_TIMESTAMP_REGION)) + timestamp_init(timestamp_get()); + bootblock_mainboard_early_init(); #if CONFIG_BOOTBLOCK_CONSOLE |