fdt: Add device tree memory bindings
Support a default memory bank, specified in reg, as well as board-specific memory banks in subtree board-id nodes. This allows memory information to be provided in the device tree, rather than hard-coded in, which will make it simpler to handle similar devices with different memory banks, as the board-id values or masks can be used to match devices. Signed-off-by:Michael Pratt <mpratt@chromium.org> Signed-off-by:
Simon Glass <sjg@chromium.org> Reviewed-by:
Vadim Bendebury <vbendeb@chromium.org>
Showing
- doc/device-tree-bindings/memory/memory.txt 67 additions, 0 deletionsdoc/device-tree-bindings/memory/memory.txt
- include/asm-generic/global_data.h 1 addition, 0 deletionsinclude/asm-generic/global_data.h
- include/fdt_support.h 10 additions, 0 deletionsinclude/fdt_support.h
- include/fdtdec.h 37 additions, 1 deletioninclude/fdtdec.h
- lib/fdtdec.c 109 additions, 0 deletionslib/fdtdec.c
Loading
Please register or sign in to comment