]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add dev_read_resource() to read device resources
authorSimon Glass <sjg@chromium.org>
Mon, 12 Jun 2017 12:21:29 +0000 (06:21 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commita44810123f9ef069587beacdce7d6f488cf42973
tree1eb3689993eba842e0663321193653d75dfa01d3
parent8c293d6ac9c9f698a2b5db8def9d1cef725b5011
dm: core: Add dev_read_resource() to read device resources

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@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
drivers/core/Makefile
drivers/core/read_extra.c [new file with mode: 0644]
include/dm/read.h