aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r--arch/arm/mach-mx3/devices.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
index f6da0ffbe719..baa4bd117b33 100644
--- a/arch/arm/mach-mx3/devices.c
+++ b/arch/arm/mach-mx3/devices.c
@@ -167,6 +167,7 @@ struct platform_device mxc_w1_master_device = {
167 .resource = mxc_w1_master_resources, 167 .resource = mxc_w1_master_resources,
168}; 168};
169 169
170#if defined(CONFIG_ARCH_MX35)
170static struct resource mxc_nand_resources[] = { 171static struct resource mxc_nand_resources[] = {
171 { 172 {
172 .start = 0, /* runtime dependent */ 173 .start = 0, /* runtime dependent */
@@ -185,6 +186,7 @@ struct platform_device mxc_nand_device = {
185 .num_resources = ARRAY_SIZE(mxc_nand_resources), 186 .num_resources = ARRAY_SIZE(mxc_nand_resources),
186 .resource = mxc_nand_resources, 187 .resource = mxc_nand_resources,
187}; 188};
189#endif
188 190
189static struct resource mxc_i2c0_resources[] = { 191static struct resource mxc_i2c0_resources[] = {
190 { 192 {
@@ -628,13 +630,14 @@ struct platform_device imx_kpp_device = {
628 630
629static int __init mx3_devices_init(void) 631static int __init mx3_devices_init(void)
630{ 632{
633#if defined(CONFIG_ARCH_MX31)
631 if (cpu_is_mx31()) { 634 if (cpu_is_mx31()) {
632 mxc_nand_resources[0].start = MX31_NFC_BASE_ADDR;
633 mxc_nand_resources[0].end = MX31_NFC_BASE_ADDR + 0xfff;
634 imx_wdt_resources[0].start = MX31_WDOG_BASE_ADDR; 635 imx_wdt_resources[0].start = MX31_WDOG_BASE_ADDR;
635 imx_wdt_resources[0].end = MX31_WDOG_BASE_ADDR + 0x3fff; 636 imx_wdt_resources[0].end = MX31_WDOG_BASE_ADDR + 0x3fff;
636 mxc_register_device(&mxc_rnga_device, NULL); 637 mxc_register_device(&mxc_rnga_device, NULL);
637 } 638 }
639#endif
640#if defined(CONFIG_ARCH_MX35)
638 if (cpu_is_mx35()) { 641 if (cpu_is_mx35()) {
639 mxc_nand_resources[0].start = MX35_NFC_BASE_ADDR; 642 mxc_nand_resources[0].start = MX35_NFC_BASE_ADDR;
640 mxc_nand_resources[0].end = MX35_NFC_BASE_ADDR + 0x1fff; 643 mxc_nand_resources[0].end = MX35_NFC_BASE_ADDR + 0x1fff;
@@ -653,6 +656,7 @@ static int __init mx3_devices_init(void)
653 imx_wdt_resources[0].start = MX35_WDOG_BASE_ADDR; 656 imx_wdt_resources[0].start = MX35_WDOG_BASE_ADDR;
654 imx_wdt_resources[0].end = MX35_WDOG_BASE_ADDR + 0x3fff; 657 imx_wdt_resources[0].end = MX35_WDOG_BASE_ADDR + 0x3fff;
655 } 658 }
659#endif
656 660
657 return 0; 661 return 0;
658} 662}