]> git.sur5r.net Git - u-boot/blobdiff - drivers/cpu/cpu-uclass.c
cpu: Add get_vendor callback
[u-boot] / drivers / cpu / cpu-uclass.c
index 7660f99ef5956804685b6cd7b3789fa1b99a82fc..c57ac16b3a7ed797f6533c6ab4f73e0a3be7e5db 100644 (file)
@@ -44,6 +44,16 @@ int cpu_get_count(struct udevice *dev)
        return ops->get_count(dev);
 }
 
+int cpu_get_vendor(struct udevice *dev, char *buf, int size)
+{
+       struct cpu_ops *ops = cpu_get_ops(dev);
+
+       if (!ops->get_vendor)
+               return -ENOSYS;
+
+       return ops->get_vendor(dev, buf, size);
+}
+
 U_BOOT_DRIVER(cpu_bus) = {
        .name   = "cpu_bus",
        .id     = UCLASS_SIMPLE_BUS,