[U-Boot] [PATCH v3 02/35] dm: core: Add dev_read_resource() to read device resources

sjg at google.com sjg at google.com
Thu Jul 6 17:36:55 UTC 2017


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 <sjg at 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!


More information about the U-Boot mailing list