commit | b491e9cf2e28f6b555f361e922eb442aeb230058 | [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 | 38d9e397194b902e84a54e51f17d5b79bff4f85d [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>