summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2016-05-24 11:59:02 -0400
committerTom Rini <[email protected]>2016-05-24 11:59:02 -0400
commit2ee490a0245b65826a8ce8e42e34c9bf805d3656 (patch)
treec53f7d3513bd284b181d3aaa61534a0d62751884 /include/dm
parentec8fb48ce98987065493b27422200897cf0909f8 (diff)
parent0a71cd77290ca317ecf6f15984a91abbee741e09 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-net
Signed-off-by: Tom Rini <[email protected]> Conflicts: drivers/net/zynq_gem.c
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/device.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/dm/device.h b/include/dm/device.h
index e9a8ec72c90..f03bcd3b49e 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -548,6 +548,29 @@ int device_set_name(struct udevice *dev, const char *name);
void device_set_name_alloced(struct udevice *dev);
/**
+ * of_device_is_compatible() - check if the device is compatible with the compat
+ *
+ * This allows to check whether the device is comaptible with the compat.
+ *
+ * @dev: udevice pointer for which compatible needs to be verified.
+ * @compat: Compatible string which needs to verified in the given
+ * device
+ * @return true if OK, false if the compatible is not found
+ */
+bool of_device_is_compatible(struct udevice *dev, const char *compat);
+
+/**
+ * of_machine_is_compatible() - check if the machine is compatible with
+ * the compat
+ *
+ * This allows to check whether the machine is comaptible with the compat.
+ *
+ * @compat: Compatible string which needs to verified
+ * @return true if OK, false if the compatible is not found
+ */
+bool of_machine_is_compatible(const char *compat);
+
+/**
* device_is_on_pci_bus - Test if a device is on a PCI bus
*
* @dev: device to test