Add a function which reads resources from a device, such as the device hardware address. This uses the "reg" property in the device.
Unlike other functions there is little sense in inlining this when livetree is not being used because it has some logic in it and this would just bloat the code size. Signed-off-by: Simon Glass <s...@chromium.org> --- Changes in v3: - Add new patch to add dev_read_resource() Changes in v2: None drivers/core/Makefile | 2 +- drivers/core/read_extra.c | 37 +++++++++++++++++++++++++++++++++++++ include/dm/read.h | 12 ++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 drivers/core/read_extra.c Applied to u-boot-dm, thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot