]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/cpu_x86.h
board_f: Drop setup_dram_config() wrapper
[u-boot] / arch / x86 / include / asm / cpu_x86.h
index 19404805c51328f6aaeb2933d59e87e788b3fa76..74b82edceb2c05cf09132aae3975cb2e9d6a56de 100644 (file)
@@ -31,4 +31,17 @@ int cpu_x86_bind(struct udevice *dev);
  */
 int cpu_x86_get_desc(struct udevice *dev, char *buf, int size);
 
+/**
+ * cpu_x86_get_vendor() - Get a vendor string for an x86 CPU
+ *
+ * This uses cpu_vendor_name() and is suitable to use as the get_vendor()
+ * method for the CPU uclass.
+ *
+ * @dev:       Device to check (UCLASS_CPU)
+ * @buf:       Buffer to place string
+ * @size:      Size of string space
+ * @return:    0 if OK, -ENOSPC if buffer is too small, other -ve on error
+ */
+int cpu_x86_get_vendor(struct udevice *dev, char *buf, int size);
+
 #endif /* _ASM_CPU_X86_H */