]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/dm/device.h
m68k: mcf5227x: move CPU type to Kconfig and refactor config.mk
[karo-tx-uboot.git] / include / dm / device.h
index 81afa8c6281f8f9c55dbd968bfd4b344f8cf872a..7a48eb88b8ccf1ce1b52d8ffb898d8b2610c4e56 100644 (file)
@@ -12,6 +12,7 @@
 #define _DM_DEVICE_H
 
 #include <dm/uclass-id.h>
+#include <fdtdec.h>
 #include <linker_lists.h>
 #include <linux/list.h>
 
@@ -351,4 +352,13 @@ int device_find_first_child(struct udevice *parent, struct udevice **devp);
  */
 int device_find_next_child(struct udevice **devp);
 
+/**
+ * dev_get_addr() - Get the reg property of a device
+ *
+ * @dev: Pointer to a device
+ *
+ * @return addr
+ */
+fdt_addr_t dev_get_addr(struct udevice *dev);
+
 #endif