]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/dm/device.h
Merge git://git.denx.de/u-boot-marvell
[people/ms/u-boot.git] / include / dm / device.h
index 18296bb68614b9aeae25c46b5ff3c8306e8a36d1..9fa0048bd0a4448b481071d5aae8b14c7d063898 100644 (file)
@@ -386,9 +386,23 @@ int device_find_child_by_of_offset(struct udevice *parent, int of_offset,
  * @devp: Returns pointer to device if found, otherwise this is set to NULL
  * @return 0 if OK, -ve on error
  */
-int device_get_child_by_of_offset(struct udevice *parent, int seq,
+int device_get_child_by_of_offset(struct udevice *parent, int of_offset,
                                  struct udevice **devp);
 
+/**
+ * device_get_global_by_of_offset() - Get a device based on FDT offset
+ *
+ * Locates a device by its device tree offset, searching globally throughout
+ * the all driver model devices.
+ *
+ * The device is probed to activate it ready for use.
+ *
+ * @of_offset: Device tree offset to find
+ * @devp: Returns pointer to device if found, otherwise this is set to NULL
+ * @return 0 if OK, -ve on error
+ */
+int device_get_global_by_of_offset(int of_offset, struct udevice **devp);
+
 /**
  * device_find_first_child() - Find the first child of a device
  *