]> git.baikalelectronics.ru Git - uboot.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)
commit83dc7c5cfe669ee8f6c3fe908be4ac5bfe4b5b20
tree1eb3689993eba842e0663321193653d75dfa01d3
parentf66eb990dc99b1748ccc6616ed95875dce9c9185
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