[U-Boot] [PATCH] fdt: Include arch specific gpio.h

Simon Glass sjg at chromium.org
Tue Jul 10 23:13:40 CEST 2012


Hi Michal,

On Tue, Jul 10, 2012 at 11:56 AM, Michal Simek <monstr at monstr.eu> wrote:

> Also include arch specific gpio.h which can contain
> gpio function implementation.
>
> Signed-off-by: Michal Simek <monstr at monstr.eu>
> CC: Simon Glass <sjg at chromium.org>
> ---
>  lib/fdtdec.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> index cc09e06..b12eb77 100644
> --- a/lib/fdtdec.c
> +++ b/lib/fdtdec.c
> @@ -25,6 +25,7 @@
>  #include <fdtdec.h>
>
>  /* we need the generic GPIO interface here */
> +#include <asm/gpio.h>
>

Can you not instead support the generic functions? What are you missing
from from there that fdtdec.c needs?


>  #include <asm-generic/gpio.h>
>
>  DECLARE_GLOBAL_DATA_PTR;
> --
> 1.7.0.4
>
> Regards,
Simon


More information about the U-Boot mailing list