-
- Downloads
dm: core: Add functions to obtain node's address/size cells
The of_n_addr_cells() and of_n_size_cells() functions are useful for getting the size of addresses in a node, but in a few places U-Boot needs to obtain the actual property value for a node without walking up the stack. Add functions for this and just the existing code to use it. Add a comment to the existing ofnode functions which do not do the right thing with a flat tree. This fixes a problem reading PCI addresses. Signed-off-by:Simon Glass <sjg@chromium.org> Tested-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com> Tested-on: Beaver, Jetson-TK1
Showing
- drivers/core/of_access.c 24 additions, 0 deletionsdrivers/core/of_access.c
- drivers/core/ofnode.c 17 additions, 1 deletiondrivers/core/ofnode.c
- drivers/core/read.c 10 additions, 0 deletionsdrivers/core/read.c
- drivers/core/regmap.c 2 additions, 2 deletionsdrivers/core/regmap.c
- drivers/pci/pci-uclass.c 3 additions, 3 deletionsdrivers/pci/pci-uclass.c
- include/dm/of_access.h 20 additions, 0 deletionsinclude/dm/of_access.h
- include/dm/ofnode.h 20 additions, 0 deletionsinclude/dm/ofnode.h
- include/dm/read.h 32 additions, 0 deletionsinclude/dm/read.h
Loading
Please register or sign in to comment