2 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
13 int cpu_x86_bind(struct udevice *dev)
15 struct cpu_platdata *plat = dev_get_parent_platdata(dev);
17 plat->cpu_id = fdtdec_get_int(gd->fdt_blob, dev->of_offset,
23 int cpu_x86_get_desc(struct udevice *dev, char *buf, int size)
25 if (size < CPU_MAX_NAME_LEN)
33 static const struct cpu_ops cpu_x86_ops = {
34 .get_desc = cpu_x86_get_desc,
37 static const struct udevice_id cpu_x86_ids[] = {
38 { .compatible = "cpu-x86" },
42 U_BOOT_DRIVER(cpu_x86_drv) = {
45 .of_match = cpu_x86_ids,