coreboot/util
Julius Werner 3e64e28f68 cbmem: Add support for new 'coreboot' compatible device tree binding
This patch brings the cbmem utility in line with the recent change to
coreboot's device tree binding. Since trying to find the right node to
place this binding has been so hard (and still isn't quite agreed upon),
and because it's really the more correct thing to do, this code searches
through the device tree for the 'coreboot' compatible property instead
of looking up a hardcoded path. It also provides bullet-proof
'#address-cells' handling that should work for any endianness and size.

BUG=chrome-os-partner:29311
TEST=Ran cbmem -c and cbmem -t on Nyan_Big. Also straced the to make
sure everything looks as expected. 'time cbmem -t' = ~35ms shows that
there is no serious performance problem from the more thorough lookup
code.

Change-Id: I806a21270ba6cec6e81232075749016eaf18508b
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/204274
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
2014-06-18 01:36:11 +00:00
..
abuild coreboot: Move ARCH_* from board/Kconfig to cpu or soc Kconfig. 2014-05-08 22:36:06 +00:00
acpi
amdtools
cbfstool util/cbfstool: Fix byte-ordering for payload type field. 2014-05-27 06:20:42 +00:00
cbmem cbmem: Add support for new 'coreboot' compatible device tree binding 2014-06-18 01:36:11 +00:00
crossgcc
dtd_parser
dumpmmcr
ectool
exynos
genprof
getpir
gitconfig
i915tool
ifdtool
inteltool
ipqheader
k8resdump
kconfig
lbtdump
lint
mkelfImage
mptable
msrtool
nrv2b
nvramtool
optionlist
resetcf
romcc
runfw
sconfig
scripts
showdevicetree
superiotool
vgabios
xcompile