2 * Copyright (C) 2015, Miao Yan <yanmiaobest@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
14 int cpu_qemu_get_desc(struct udevice *dev, char *buf, int size)
16 if (size < CPU_MAX_NAME_LEN)
24 static int cpu_qemu_get_count(struct udevice *dev)
26 return qemu_fwcfg_online_cpus();
29 static const struct cpu_ops cpu_qemu_ops = {
30 .get_desc = cpu_qemu_get_desc,
31 .get_count = cpu_qemu_get_count,
34 static const struct udevice_id cpu_qemu_ids[] = {
35 { .compatible = "cpu-qemu" },
39 U_BOOT_DRIVER(cpu_qemu_drv) = {
42 .of_match = cpu_qemu_ids,