From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Wed, 11 Jul 2012 10:19:09 +0200 Subject: [U-Boot] [PATCH] fdt: Include arch specific gpio.h In-Reply-To: References: <1341914208-4159-1-git-send-email-monstr@monstr.eu> Message-ID: <4FFD36FD.3070300@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/10/2012 11:13 PM, Simon Glass wrote: > Hi Michal, > > On Tue, Jul 10, 2012 at 11:56 AM, Michal Simek > wrote: > > Also include arch specific gpio.h which can contain > gpio function implementation. > > Signed-off-by: Michal Simek > > CC: Simon Glass > > --- > 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 > > /* we need the generic GPIO interface here */ > +#include > > > Can you not instead support the generic functions? What are you missing from from there that fdtdec.c needs? OK. The problem is with fdtdec_setup_gpio function where you called gpio_request which is gpio specific function which you haven't included. The most archs have this defined in arch//include/asm/gpio.h. Thanks, Michal -- Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian