Skip to content
Snippets Groups Projects
Commit 8f385e95 authored by Timo Ketola's avatar Timo Ketola Committed by Albert ARIBAUD
Browse files

i.MX2: Include asm/types.h in arch-mx25/imx-regs.h


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: default avatarTimo Ketola <timo@exertus.fi>
Acked-by: default avatarStefano Babic <sbabic@denx.de>
parent 5614553d
Branches
Tags
No related merge requests found
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
#define _IMX_REGS_H #define _IMX_REGS_H
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <asm/types.h>
#ifdef CONFIG_FEC_MXC #ifdef CONFIG_FEC_MXC
extern void mx25_fec_init_pins(void); extern void mx25_fec_init_pins(void);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment