]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/cpu.h
Merge branch 'master' of git://www.denx.de/git/u-boot-imx
[u-boot] / arch / x86 / include / asm / cpu.h
index 08284ee29530c46a3d33ed52956b4f661113de01..ebc74adbc360911e380c639f24dcecffb23040e5 100644 (file)
@@ -196,6 +196,20 @@ const char *cpu_vendor_name(int vendor);
  */
 char *cpu_get_name(char *name);
 
+/**
+ *
+* x86_cpu_get_desc() - Get a description string for an x86 CPU
+*
+* This uses cpu_get_name() and is suitable to use as the get_desc() 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 x86_cpu_get_desc(struct udevice *dev, char *buf, int size);
+
 /**
  * cpu_call64() - Jump to a 64-bit Linux kernel (internal function)
  *