提交 c337e1af 编写于 作者: B Bin Meng 提交者: Simon Glass

cpu: Add DM_FLAG_PRE_RELOC flag to various cpu drivers

It turns out commit c0434407 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: c0434407 ("board_f: Use static print_cpuinfo if CONFIG_CPU is active")
Reported-by: NStefan Roese <sr@denx.de>
Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
Reviewed-by: NStefan Roese <sr@denx.de>
Tested-by: NStefan Roese <sr@denx.de>
上级 1a6bd471
...@@ -203,4 +203,5 @@ U_BOOT_DRIVER(cpu_x86_baytrail_drv) = { ...@@ -203,4 +203,5 @@ U_BOOT_DRIVER(cpu_x86_baytrail_drv) = {
.bind = cpu_x86_bind, .bind = cpu_x86_bind,
.probe = cpu_x86_baytrail_probe, .probe = cpu_x86_baytrail_probe,
.ops = &cpu_x86_baytrail_ops, .ops = &cpu_x86_baytrail_ops,
.flags = DM_FLAG_PRE_RELOC,
}; };
...@@ -764,4 +764,5 @@ U_BOOT_DRIVER(cpu_x86_broadwell_drv) = { ...@@ -764,4 +764,5 @@ U_BOOT_DRIVER(cpu_x86_broadwell_drv) = {
.probe = cpu_x86_broadwell_probe, .probe = cpu_x86_broadwell_probe,
.ops = &cpu_x86_broadwell_ops, .ops = &cpu_x86_broadwell_ops,
.priv_auto_alloc_size = sizeof(struct cpu_broadwell_priv), .priv_auto_alloc_size = sizeof(struct cpu_broadwell_priv),
.flags = DM_FLAG_PRE_RELOC,
}; };
...@@ -94,4 +94,5 @@ U_BOOT_DRIVER(cpu_x86_drv) = { ...@@ -94,4 +94,5 @@ U_BOOT_DRIVER(cpu_x86_drv) = {
.of_match = cpu_x86_ids, .of_match = cpu_x86_ids,
.bind = cpu_x86_bind, .bind = cpu_x86_bind,
.ops = &cpu_x86_ops, .ops = &cpu_x86_ops,
.flags = DM_FLAG_PRE_RELOC,
}; };
...@@ -478,4 +478,5 @@ U_BOOT_DRIVER(cpu_x86_model_206ax_drv) = { ...@@ -478,4 +478,5 @@ U_BOOT_DRIVER(cpu_x86_model_206ax_drv) = {
.bind = cpu_x86_bind, .bind = cpu_x86_bind,
.probe = cpu_x86_model_206ax_probe, .probe = cpu_x86_model_206ax_probe,
.ops = &cpu_x86_model_206ax_ops, .ops = &cpu_x86_model_206ax_ops,
.flags = DM_FLAG_PRE_RELOC,
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册