X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fdm%2Fdevice.h;h=7a48eb88b8ccf1ce1b52d8ffb898d8b2610c4e56;hb=fc1a79d95e9038e9cf53f99c1825005b4dfaf7f4;hp=81afa8c6281f8f9c55dbd968bfd4b344f8cf872a;hpb=e72d344386bf80738fab7a6bd37cb321f443093a;p=u-boot diff --git a/include/dm/device.h b/include/dm/device.h index 81afa8c628..7a48eb88b8 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -12,6 +12,7 @@ #define _DM_DEVICE_H #include +#include #include #include @@ -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