]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cpu: Add DM_FLAG_PRE_RELOC flag to various cpu drivers
authorBin Meng <bmeng.cn@gmail.com>
Sun, 14 Oct 2018 08:07:19 +0000 (01:07 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:28 +0000 (09:16 -0800)
It turns out commit c0434407b595 broke some boards which have DM CPU
driver with CONFIG_DISPLAY_CPUINFO option on. These boards just fail
to boot when print_cpuinfo() is called during boot.

Fixes: c0434407b595 ("board_f: Use static print_cpuinfo if CONFIG_CPU is active")
Reported-by: Stefan Roese <sr@denx.de>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
arch/x86/cpu/baytrail/cpu.c
arch/x86/cpu/broadwell/cpu.c
arch/x86/cpu/cpu_x86.c
arch/x86/cpu/ivybridge/model_206ax.c

index 56e98131d7574d887af17ca888f3bbe15e38a51d..2eb917283bc00b932de1850541170a9c2d86bc7b 100644 (file)
@@ -203,4 +203,5 @@ U_BOOT_DRIVER(cpu_x86_baytrail_drv) = {
        .bind           = cpu_x86_bind,
        .probe          = cpu_x86_baytrail_probe,
        .ops            = &cpu_x86_baytrail_ops,
+       .flags          = DM_FLAG_PRE_RELOC,
 };
index 02b3169cf5d3b8b20f64152339ed542a8aabf68b..232fa40eb53e54d0548cc3ff60c00d5fd2cd59a4 100644 (file)
@@ -764,4 +764,5 @@ U_BOOT_DRIVER(cpu_x86_broadwell_drv) = {
        .probe          = cpu_x86_broadwell_probe,
        .ops            = &cpu_x86_broadwell_ops,
        .priv_auto_alloc_size   = sizeof(struct cpu_broadwell_priv),
+       .flags          = DM_FLAG_PRE_RELOC,
 };
index 2b6cc9f22d5c82e13869d7ee6fe0b9da38bb0ceb..1aaf851bb45a22c5c8c00f31b33d5d2473ebd078 100644 (file)
@@ -94,4 +94,5 @@ U_BOOT_DRIVER(cpu_x86_drv) = {
        .of_match       = cpu_x86_ids,
        .bind           = cpu_x86_bind,
        .ops            = &cpu_x86_ops,
+       .flags          = DM_FLAG_PRE_RELOC,
 };
index 33e5c6263d475e8a6a12019d90e07698aa6a499a..6edc3e233c29f4cceaadfa7a6f80c7ee8a575f31 100644 (file)
@@ -478,4 +478,5 @@ U_BOOT_DRIVER(cpu_x86_model_206ax_drv) = {
        .bind           = cpu_x86_bind,
        .probe          = cpu_x86_model_206ax_probe,
        .ops            = &cpu_x86_model_206ax_ops,
+       .flags          = DM_FLAG_PRE_RELOC,
 };