]> git.sur5r.net Git - u-boot/commit
fdt: Add device tree memory bindings
authorMichael Pratt <mpratt@chromium.org>
Mon, 11 Jun 2018 19:07:09 +0000 (13:07 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Jul 2018 15:11:00 +0000 (09:11 -0600)
commit90c08fa038451d6d7b7d8711bfd829b61d64c490
tree7cfd0d58221ae95037dea8e435ef8b55ea2898d4
parent8c5d4fd0ec222701598a27b26ab7265d4cee45a3
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>
doc/device-tree-bindings/memory/memory.txt [new file with mode: 0644]
include/asm-generic/global_data.h
include/fdt_support.h
include/fdtdec.h
lib/fdtdec.c