fdt: Introduce fdtdec_get_alias_highest_id()
authorMichal Simek <michal.simek@xilinx.com>
Thu, 31 Jan 2019 15:30:58 +0000 (16:30 +0100)
committerHeiko Schocher <hs@denx.de>
Fri, 8 Feb 2019 05:25:15 +0000 (06:25 +0100)
commit003c9dc89176cacc9996f737d08490805e29582e
tree2aad94199a819a45930c372e5fe1cd28e692be1e
parent5ebc7c7e27780ce9a16289eeb87290eebd248ea9
fdt: Introduce fdtdec_get_alias_highest_id()

Find out the highest alias ID used for certain subsystem.
This call will be used for alocating IDs for i2c buses which are not
described in DT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/fdtdec.h
lib/fdtdec.c