]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: mp_init: Switch to livetree
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:07 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:42 +0000 (09:46 +0800)
Update this code to use livetree calls instead of flat-tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/mp_init.c

index 7fde4ff7e16283e181af42197c6ba01b832edb45..c25d17c647406a3cbdd2237efd7d36feb050d838 100644 (file)
@@ -507,8 +507,7 @@ int mp_init_cpu(struct udevice *cpu, void *unused)
         * seq num in the uclass_resolve_seq() during device_probe(). To avoid
         * this, set req_seq to the reg number in the device tree in advance.
         */
-       cpu->req_seq = fdtdec_get_int(gd->fdt_blob, dev_of_offset(cpu), "reg",
-                                     -1);
+       cpu->req_seq = dev_read_u32_default(cpu, "reg", -1);
        plat->ucode_version = microcode_read_rev();
        plat->device_id = gd->arch.x86_device;