nb/intel/gm45: Add romstage timestamps
Change-Id: I558e6c63caf95ec5279ec5a866b54fb199116469 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/19678 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
9ed74b54b5
commit
049347fee0
|
@ -31,6 +31,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <southbridge/intel/i82801ix/i82801ix.h>
|
#include <southbridge/intel/i82801ix/i82801ix.h>
|
||||||
#include <northbridge/intel/gm45/gm45.h>
|
#include <northbridge/intel/gm45/gm45.h>
|
||||||
|
#include <timestamp.h>
|
||||||
#include "dock.h"
|
#include "dock.h"
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
|
|
||||||
|
@ -60,6 +61,9 @@ void mainboard_romstage_entry(unsigned long bist)
|
||||||
int cbmem_initted;
|
int cbmem_initted;
|
||||||
u16 reg16;
|
u16 reg16;
|
||||||
|
|
||||||
|
timestamp_init(timestamp_get());
|
||||||
|
timestamp_add_now(TS_START_ROMSTAGE);
|
||||||
|
|
||||||
/* basic northbridge setup, including MMCONF BAR */
|
/* basic northbridge setup, including MMCONF BAR */
|
||||||
gm45_early_init();
|
gm45_early_init();
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include <southbridge/intel/i82801ix/i82801ix.h>
|
#include <southbridge/intel/i82801ix/i82801ix.h>
|
||||||
#include <northbridge/intel/gm45/gm45.h>
|
#include <northbridge/intel/gm45/gm45.h>
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
|
#include <timestamp.h>
|
||||||
|
|
||||||
#define LPC_DEV PCI_DEV(0, 0x1f, 0)
|
#define LPC_DEV PCI_DEV(0, 0x1f, 0)
|
||||||
#define MCH_DEV PCI_DEV(0, 0, 0)
|
#define MCH_DEV PCI_DEV(0, 0, 0)
|
||||||
|
@ -58,6 +59,9 @@ void mainboard_romstage_entry(unsigned long bist)
|
||||||
int cbmem_initted;
|
int cbmem_initted;
|
||||||
u16 reg16;
|
u16 reg16;
|
||||||
|
|
||||||
|
timestamp_init(timestamp_get());
|
||||||
|
timestamp_add_now(TS_START_ROMSTAGE);
|
||||||
|
|
||||||
/* basic northbridge setup, including MMCONF BAR */
|
/* basic northbridge setup, including MMCONF BAR */
|
||||||
gm45_early_init();
|
gm45_early_init();
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include <southbridge/intel/i82801ix/i82801ix.h>
|
#include <southbridge/intel/i82801ix/i82801ix.h>
|
||||||
#include <northbridge/intel/gm45/gm45.h>
|
#include <northbridge/intel/gm45/gm45.h>
|
||||||
#include <superio/smsc/lpc47n227/lpc47n227.h>
|
#include <superio/smsc/lpc47n227/lpc47n227.h>
|
||||||
|
#include <timestamp.h>
|
||||||
|
|
||||||
#define LPC_DEV PCI_DEV(0, 0x1f, 0)
|
#define LPC_DEV PCI_DEV(0, 0x1f, 0)
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, LPC47N227_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, LPC47N227_SP1)
|
||||||
|
@ -124,6 +125,9 @@ void mainboard_romstage_entry(unsigned long bist)
|
||||||
int cbmem_initted;
|
int cbmem_initted;
|
||||||
u16 reg16;
|
u16 reg16;
|
||||||
|
|
||||||
|
timestamp_init(timestamp_get());
|
||||||
|
timestamp_add_now(TS_START_ROMSTAGE);
|
||||||
|
|
||||||
/* basic northbridge setup, including MMCONF BAR */
|
/* basic northbridge setup, including MMCONF BAR */
|
||||||
gm45_early_init();
|
gm45_early_init();
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <lib.h>
|
#include <lib.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
|
#include <timestamp.h>
|
||||||
#include "gm45.h"
|
#include "gm45.h"
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
|
@ -1713,6 +1714,7 @@ void raminit(sysinfo_t *const sysinfo, const int s3resume)
|
||||||
int ch;
|
int ch;
|
||||||
u8 reg8;
|
u8 reg8;
|
||||||
|
|
||||||
|
timestamp_add_now(TS_BEFORE_INITRAM);
|
||||||
|
|
||||||
/* Wait for some bit, maybe TXT clear. */
|
/* Wait for some bit, maybe TXT clear. */
|
||||||
if (sysinfo->txt_enabled) {
|
if (sysinfo->txt_enabled) {
|
||||||
|
@ -1825,4 +1827,6 @@ void raminit(sysinfo_t *const sysinfo, const int s3resume)
|
||||||
|
|
||||||
raminit_thermal(sysinfo);
|
raminit_thermal(sysinfo);
|
||||||
init_igd(sysinfo);
|
init_igd(sysinfo);
|
||||||
|
|
||||||
|
timestamp_add_now(TS_AFTER_INITRAM);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue