[coreboot-gerrit] Change in coreboot[master]: pcengines/apu2: Add timestamps to romstage
Micha? ?ygowski (Code Review)
gerrit at coreboot.org
Tue Oct 17 09:09:45 CEST 2017
Micha? ?ygowski has uploaded this change for review. ( https://review.coreboot.org/22071
Change subject: pcengines/apu2: Add timestamps to romstage
......................................................................
pcengines/apu2: Add timestamps to romstage
This change adds timestamps to romstage in order to keep
PC Engines apu2 platform in active codebase.
Change-Id: Ie0286d4982623da9d035c47df6077edaf51e5110
Signed-off-by: Michał Żygowski <michal.zygowski at 3mdeb.com>
---
M src/mainboard/pcengines/apu2/romstage.c
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/22071/1
diff --git a/src/mainboard/pcengines/apu2/romstage.c b/src/mainboard/pcengines/apu2/romstage.c
index 1ccf7c4..fccbd09 100644
--- a/src/mainboard/pcengines/apu2/romstage.c
+++ b/src/mainboard/pcengines/apu2/romstage.c
@@ -24,6 +24,7 @@
#include <cpu/x86/lapic.h>
#include <console/console.h>
#include <commonlib/loglevel.h>
+#include <timestamp.h>
#include <cpu/amd/car.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/pi/agesawrapper.h>
@@ -56,6 +57,9 @@
hudson_lpc_port80();
if (!cpu_init_detectedx && boot_cpu()) {
+ timestamp_init(timestamp_get());
+ timestamp_add_now(TS_START_ROMSTAGE);
+
post_code(0x30);
early_lpc_init();
@@ -82,8 +86,12 @@
post_code(0x39);
AGESAWRAPPER(amdinitearly);
+ timestamp_add_now(TS_BEFORE_INITRAM);
+
post_code(0x40);
AGESAWRAPPER(amdinitpost);
+
+ timestamp_add_now(TS_AFTER_INITRAM);
}
void agesa_postcar(struct sysinfo *cb)
--
To view, visit https://review.coreboot.org/22071
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie0286d4982623da9d035c47df6077edaf51e5110
Gerrit-Change-Number: 22071
Gerrit-PatchSet: 1
Gerrit-Owner: Micha? ?ygowski <michal.zygowski at 3mdeb.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171017/7c49e21a/attachment.html>
More information about the coreboot-gerrit
mailing list