commit | 57068a7aeb19fee06933986926eaea3cf0128f16 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Jan 05 20:05:26 2015 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Jan 29 17:09:50 2015 -0700 |
tree | 68335b90c13258ce3b87c4efeb0eba992d83b281 | |
parent | 5cfc662c496a0e52301a9379f91755b1f8fbf368 [diff] |
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>