imx27-regs: fix .h usage in assembly file
Subsystems (3)
PATCH 1/1 imx27-regs: fix .h usage in assembly file
7ab0a0a i.MX27: Added helper for setup chipselect control register
added an helper which triggers the following error :arch/arm/mach-imx/include/mach/imx27-regs.h:243: Error: bad instruction `static inline void imx27_setup_weimcs(size_t cs,unsigned upper,unsigned lower,unsigned addional)'
This patch fix this problem.
--- arch/arm/mach-imx/include/mach/imx27-regs.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/mach-imx/include/mach/imx27-regs.h +2 -0
@@ -240,11 +240,13 @@#define IMX_CS4_BASE 0xD4000000#define IMX_CS5_BASE 0xD6000000 +#ifndef __ASSEMBLY__static inline void imx27_setup_weimcs (size_t cs,unsigned upper,unsigned lower,unsigned addional) {CSxU (cs) = upper;CSxL (cs) = lower;CSxA (cs) = addional; } +#endif /* __ASSEMBLY__ */ #endif /* _IMX27_REGS_H */
Signature · 7 lines
1.7.7.6 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 6 lines · Eric Bénard
7ab0a0a i.MX27: Added helper for setup chipselect control register
added an helper which triggers the following error :arch/arm/mach-imx/include/mach/imx27-regs.h:243: Error: bad instruction `static inline voidimx27_setup_weimcs(size_t cs,unsigned upper,unsigned lower,unsigned addional)'This patch fix this problem.
and should also fix :mx27ads_defconfigneso_defconfigpca100_defconfig
Eric
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
maintainerQuoted 7 lines · Eric Bénard
7ab0a0a i.MX27: Added helper for setup chipselect control register
added an helper which triggers the following error :arch/arm/mach-imx/include/mach/imx27-regs.h:243: Error: bad instruction `static inline voidimx27_setup_weimcs(size_t cs,unsigned upper,unsigned lower,unsigned addional)'This patch fix this problem.
Signed-off-by Eric Bénard <[email protected]>
Thanks, Eric. You are my hero of the day. I applied your patches except the ones Jean-Christophe commented on. I assume he will come up with another solution.
Thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox