mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-26 00:01:48 +02:00
x86: broadwell: Show the memory delay
Samus only takes 7 seconds but it is long enough to think it has hung. Add a message about what it is doing, similar to the approach on coral. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
15a23b6f16
commit
8e34ddc113
@ -9,6 +9,7 @@
|
|||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <init.h>
|
#include <init.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
#include <spl.h>
|
||||||
#include <syscon.h>
|
#include <syscon.h>
|
||||||
#include <asm/cpu.h>
|
#include <asm/cpu.h>
|
||||||
#include <asm/global_data.h>
|
#include <asm/global_data.h>
|
||||||
@ -251,13 +252,28 @@ static int sdram_initialise(struct udevice *dev, struct udevice *me_dev,
|
|||||||
int mrc_common_init(struct udevice *dev, void *pei_data, bool use_asm_linkage)
|
int mrc_common_init(struct udevice *dev, void *pei_data, bool use_asm_linkage)
|
||||||
{
|
{
|
||||||
struct udevice *me_dev;
|
struct udevice *me_dev;
|
||||||
int ret;
|
int ret, delay;
|
||||||
|
|
||||||
ret = syscon_get_by_driver_data(X86_SYSCON_ME, &me_dev);
|
ret = syscon_get_by_driver_data(X86_SYSCON_ME, &me_dev);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
delay = dev_read_u32_default(dev, "fspm,training-delay", 0);
|
||||||
|
if (spl_phase() == PHASE_SPL) {
|
||||||
|
if (delay)
|
||||||
|
printf("SDRAM training (%d seconds)...", delay);
|
||||||
|
else
|
||||||
|
log_debug("SDRAM init...");
|
||||||
|
} else {
|
||||||
|
if (delay)
|
||||||
|
printf("(%d seconds)...", delay);
|
||||||
|
}
|
||||||
|
|
||||||
ret = sdram_initialise(dev, me_dev, pei_data, use_asm_linkage);
|
ret = sdram_initialise(dev, me_dev, pei_data, use_asm_linkage);
|
||||||
|
if (delay)
|
||||||
|
printf("done\n");
|
||||||
|
else
|
||||||
|
log_debug("done\n");
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
quick_ram_check();
|
quick_ram_check();
|
||||||
|
@ -266,6 +266,7 @@
|
|||||||
board-id-gpios = <&gpio_c 5 0>, <&gpio_c 4 0>,
|
board-id-gpios = <&gpio_c 5 0>, <&gpio_c 4 0>,
|
||||||
<&gpio_c 3 0>, <&gpio_c 1 0>;
|
<&gpio_c 3 0>, <&gpio_c 1 0>;
|
||||||
bootph-all;
|
bootph-all;
|
||||||
|
fspm,training-delay = <7>;
|
||||||
spd {
|
spd {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user