]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: fdt: Add a function to decode phandles with arguments
authorSimon Glass <sjg@chromium.org>
Tue, 6 Jan 2015 03:05:26 +0000 (20:05 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:50 +0000 (17:09 -0700)
commit57068a7aeb19fee06933986926eaea3cf0128f16
tree68335b90c13258ce3b87c4efeb0eba992d83b281
parent5cfc662c496a0e52301a9379f91755b1f8fbf368
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: Simon Glass <sjg@chromium.org>
include/fdtdec.h
lib/fdtdec.c