[U-Boot] [PATCH 04/21] dm: fdt: Add a function to decode phandles with arguments

Simon Glass sjg at chromium.org
Thu Jan 15 05:39:38 CET 2015


On 5 January 2015 at 20:05, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
>  include/fdtdec.h |  53 ++++++++++++++++++++++++
>  lib/fdtdec.c     | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 177 insertions(+)

Applied to u-boot-dm.


More information about the U-Boot mailing list