aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/devices.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-02-05 10:57:59 -0500
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-02-15 11:03:55 -0500
commitf0d3ab49110327516b7f0b6d27fd33d6fa079d6c (patch)
tree7051a360d446e50be6ddb9366f68aa483915ddf4 /arch/arm/mach-mx2/devices.h
parent58152a16901dfce8662f5ec7e16d06dfce6fd31e (diff)
arm/mx2: define seperate imx_nand devices for imx21 and imx27
As the NFC controller has different addresses on imx21 and imx27 there are two different devices needed if not relying on the overloaded cpp macro NFC_BASE_ADDR. So some cpp magic is added to minimize code duplication. As obviously these two defines need different names, the name of the old device is #defined to the new one when building for only one of imx21 or imx27. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2/devices.h')
-rw-r--r--arch/arm/mach-mx2/devices.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-mx2/devices.h b/arch/arm/mach-mx2/devices.h
index 0dee0f5e681c..02e5dd203095 100644
--- a/arch/arm/mach-mx2/devices.h
+++ b/arch/arm/mach-mx2/devices.h
@@ -13,7 +13,16 @@ extern struct platform_device mxc_uart_device3;
13extern struct platform_device mxc_uart_device4; 13extern struct platform_device mxc_uart_device4;
14extern struct platform_device mxc_uart_device5; 14extern struct platform_device mxc_uart_device5;
15extern struct platform_device mxc_w1_master_device; 15extern struct platform_device mxc_w1_master_device;
16extern struct platform_device mxc_nand_device; 16#ifdef CONFIG_MACH_MX21
17extern struct platform_device imx21_nand_device;
18#define mxc_nand_device imx21_nand_device
19#endif
20#ifdef CONFIG_MACH_MX27
21extern struct platform_device imx27_nand_device;
22#ifndef CONFIG_MACH_MX21
23#define mxc_nand_device imx27_nand_device
24#endif
25#endif
17extern struct platform_device mxc_fb_device; 26extern struct platform_device mxc_fb_device;
18extern struct platform_device mxc_fec_device; 27extern struct platform_device mxc_fec_device;
19extern struct platform_device mxc_pwm_device; 28extern struct platform_device mxc_pwm_device;