devicetree: Add phandle support

This patch adds some generic phandle support in preparation for upcoming
device tree overlay patches. The FDT unflatten code will keep track of
each node's phandle so they can be looked up later without having to
parse the property lists every time, and it will also track the highest
numbered phandle in use in the tree.

BRANCH=None
BUG=None
TEST=Booted Kevin.

Change-Id: I16e80887f464f81f542d028418d2b474b2c4b3a8
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1536385
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
2 files changed