From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 19 Apr 2012 18:17:23 +0200 Subject: [U-Boot] [PATCH V4 7/8] i.MX2: Include asm/types.h in arch-mx25/imx-regs.h In-Reply-To: <1334825735-27992-8-git-send-email-timo@exertus.fi> References: <1334223234-23383-1-git-send-email-timo@exertus.fi> <1334825735-27992-1-git-send-email-timo@exertus.fi> <1334825735-27992-8-git-send-email-timo@exertus.fi> Message-ID: <4F903A93.4000209@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 19/04/2012 10:55, Timo Ketola wrote: > types.h must be included in imx-regs.h if one wants to include > imx-regs.h in a board configuration file. That for one's part is > necessary, if one wants to use addresses defined in imx-regs.h. > > For example, fsl_esdhc.c needs CONFIG_SYS_FSL_ESDHC_ADDR defined and > a proper thing is to define it with IMX_MMC_SDHCx_BASE in board > configuration file. This patch fixes the build in that case. > > Signed-off-by: Timo Ketola > --- > > Changes in v4: > - Proper fix was found so this patch changes altogether - subject, > message and touched file > > Changes in v2: > - New patch in this series > > arch/arm/include/asm/arch-mx25/imx-regs.h | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/include/asm/arch-mx25/imx-regs.h b/arch/arm/include/asm/arch-mx25/imx-regs.h > index 7f9449b..cf925d7 100644 > --- a/arch/arm/include/asm/arch-mx25/imx-regs.h > +++ b/arch/arm/include/asm/arch-mx25/imx-regs.h > @@ -34,6 +34,9 @@ > #define _IMX_REGS_H > > #ifndef __ASSEMBLY__ > + > +#include > + > #ifdef CONFIG_FEC_MXC > extern void mx25_fec_init_pins(void); > #endif Acked-by: Stefano Babic Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================