summaryrefslogtreecommitdiffstats
path: root/include/cpu.h
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2015-07-17 11:22:56 +0200
committerStefano Babic <sbabic@denx.de>2015-07-17 11:22:56 +0200
commitf448c5d3200372fa73f340144d013fdecf4e2f1f (patch)
treeb17b66f67a22b553f66bcb22e69d62cb2a5bbe7e /include/cpu.h
parent425640256a7c5e9259f7583ee4eca1f3b70f8032 (diff)
parent605e15db2b54302364a2528d3c6604fbc57be846 (diff)
downloadu-boot-f448c5d3200372fa73f340144d013fdecf4e2f1f.tar.gz
u-boot-f448c5d3200372fa73f340144d013fdecf4e2f1f.tar.xz
u-boot-f448c5d3200372fa73f340144d013fdecf4e2f1f.zip
Merge branch 'master' of git://git.denx.de/u-boot
Diffstat (limited to 'include/cpu.h')
-rw-r--r--include/cpu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/cpu.h b/include/cpu.h
index 34c60bcbaa..bfb0db2e2c 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -58,6 +58,14 @@ struct cpu_ops {
* @return 0 if OK, -ve on error
*/
int (*get_info)(struct udevice *dev, struct cpu_info *info);
+
+ /**
+ * get_count() - Get number of CPUs
+ *
+ * @dev: Device to check (UCLASS_CPU)
+ * @return CPU count if OK, -ve on error
+ */
+ int (*get_count)(struct udevice *dev);
};
#define cpu_get_ops(dev) ((struct cpu_ops *)(dev)->driver->ops)
@@ -81,4 +89,12 @@ int cpu_get_desc(struct udevice *dev, char *buf, int size);
*/
int cpu_get_info(struct udevice *dev, struct cpu_info *info);
+/**
+ * cpu_get_count() - Get number of CPUs
+ *
+ * @dev: Device to check (UCLASS_CPU)
+ * @return CPU count if OK, -ve on error
+ */
+int cpu_get_count(struct udevice *dev);
+
#endif