From ec558682fc11a985eb1b02b400a86ea9de407796 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Wed, 9 Jan 2019 13:33:39 +0200 Subject: aopen/dxplplusu: Move timestamps to common code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First initialisation is already in cpu/intel/car/romstage.c. Change-Id: If3e5068b4a9981354f0fca5fc12b6b81de1c8f4b Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/30779 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/mainboard/aopen/dxplplusu/romstage.c | 8 -------- src/northbridge/intel/e7505/raminit.c | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/mainboard/aopen/dxplplusu/romstage.c b/src/mainboard/aopen/dxplplusu/romstage.c index 75aad28093..f95c7f91e2 100644 --- a/src/mainboard/aopen/dxplplusu/romstage.c +++ b/src/mainboard/aopen/dxplplusu/romstage.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include @@ -47,9 +46,6 @@ void mainboard_romstage_entry(unsigned long bist) }, }; - timestamp_init(timestamp_get()); - timestamp_add_now(TS_START_ROMSTAGE); - /* Get the serial port running and print a welcome banner */ lpc47m10x_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); console_init(); @@ -61,15 +57,11 @@ void mainboard_romstage_entry(unsigned long bist) if (!e7505_mch_is_ready()) { enable_smbus(); - timestamp_add_now(TS_BEFORE_INITRAM); - /* The real MCH initialisation. */ e7505_mch_init(memctrl); /* Hook for post ECC scrub settings and debug. */ e7505_mch_done(memctrl); - - timestamp_add_now(TS_AFTER_INITRAM); } printk(BIOS_DEBUG, "SDRAM is up.\n"); diff --git a/src/northbridge/intel/e7505/raminit.c b/src/northbridge/intel/e7505/raminit.c index 6550bb5cb6..70a0d66950 100644 --- a/src/northbridge/intel/e7505/raminit.c +++ b/src/northbridge/intel/e7505/raminit.c @@ -37,6 +37,7 @@ #include #include #include +#include #include "raminit.h" #include "e7505.h" @@ -1768,6 +1769,8 @@ void e7505_mch_init(const struct mem_controller *memctrl) RAM_DEBUG_MESSAGE("Northbridge prior to SDRAM init:\n"); DUMPNORTH(); + timestamp_add_now(TS_BEFORE_INITRAM); + sdram_set_registers(memctrl); sdram_set_spd_registers(memctrl); sdram_enable(memctrl); @@ -1777,6 +1780,8 @@ void e7505_mch_done(const struct mem_controller *memctrl) { sdram_post_ecc(memctrl); + timestamp_add_now(TS_AFTER_INITRAM); + RAM_DEBUG_MESSAGE("Northbridge following SDRAM init:\n"); DUMPNORTH(); } -- cgit v1.2.3