Skip to content
Commit 57068a7a authored by Simon Glass's avatar Simon Glass
Browse files

dm: fdt: Add a function to decode phandles with arguments



For GPIOs and other functions we want to look up a phandle and then decode
a list of arguments for that phandle. Each phandle can have a different
number of arguments, specified by a property in the target node. This is
the "#gpio-cells" property for GPIOs.

Add a function to provide this feature, taken modified from Linux 3.18.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 5cfc662c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment