aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx25
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx25')
-rw-r--r--arch/arm/mach-mx25/Kconfig2
-rw-r--r--arch/arm/mach-mx25/devices-imx25.h4
-rw-r--r--arch/arm/mach-mx25/devices.c19
-rw-r--r--arch/arm/mach-mx25/devices.h1
-rw-r--r--arch/arm/mach-mx25/mach-cpuimx25.c2
-rw-r--r--arch/arm/mach-mx25/mach-mx25_3ds.c2
6 files changed, 8 insertions, 22 deletions
diff --git a/arch/arm/mach-mx25/Kconfig b/arch/arm/mach-mx25/Kconfig
index e9d445649d4d..baa75fecf2ff 100644
--- a/arch/arm/mach-mx25/Kconfig
+++ b/arch/arm/mach-mx25/Kconfig
@@ -5,6 +5,7 @@ comment "MX25 platforms:"
5config MACH_MX25_3DS 5config MACH_MX25_3DS
6 bool "Support MX25PDK (3DS) Platform" 6 bool "Support MX25PDK (3DS) Platform"
7 select IMX_HAVE_PLATFORM_ESDHC 7 select IMX_HAVE_PLATFORM_ESDHC
8 select IMX_HAVE_PLATFORM_IMXDI_RTC
8 select IMX_HAVE_PLATFORM_IMX_KEYPAD 9 select IMX_HAVE_PLATFORM_IMX_KEYPAD
9 select IMX_HAVE_PLATFORM_IMX_UART 10 select IMX_HAVE_PLATFORM_IMX_UART
10 select IMX_HAVE_PLATFORM_MXC_EHCI 11 select IMX_HAVE_PLATFORM_MXC_EHCI
@@ -15,6 +16,7 @@ config MACH_EUKREA_CPUIMX25
15 select IMX_HAVE_PLATFORM_ESDHC 16 select IMX_HAVE_PLATFORM_ESDHC
16 select IMX_HAVE_PLATFORM_FLEXCAN 17 select IMX_HAVE_PLATFORM_FLEXCAN
17 select IMX_HAVE_PLATFORM_FSL_USB2_UDC 18 select IMX_HAVE_PLATFORM_FSL_USB2_UDC
19 select IMX_HAVE_PLATFORM_IMXDI_RTC
18 select IMX_HAVE_PLATFORM_IMX_I2C 20 select IMX_HAVE_PLATFORM_IMX_I2C
19 select IMX_HAVE_PLATFORM_IMX_UART 21 select IMX_HAVE_PLATFORM_IMX_UART
20 select IMX_HAVE_PLATFORM_MXC_EHCI 22 select IMX_HAVE_PLATFORM_MXC_EHCI
diff --git a/arch/arm/mach-mx25/devices-imx25.h b/arch/arm/mach-mx25/devices-imx25.h
index a35123fef39f..a4980ecd3941 100644
--- a/arch/arm/mach-mx25/devices-imx25.h
+++ b/arch/arm/mach-mx25/devices-imx25.h
@@ -23,6 +23,10 @@ extern const struct imx_fsl_usb2_udc_data imx25_fsl_usb2_udc_data __initconst;
23#define imx25_add_fsl_usb2_udc(pdata) \ 23#define imx25_add_fsl_usb2_udc(pdata) \
24 imx_add_fsl_usb2_udc(&imx25_fsl_usb2_udc_data, pdata) 24 imx_add_fsl_usb2_udc(&imx25_fsl_usb2_udc_data, pdata)
25 25
26extern struct imx_imxdi_rtc_data imx25_imxdi_rtc_data __initconst;
27#define imx25_add_imxdi_rtc(pdata) \
28 imx_add_imxdi_rtc(&imx25_imxdi_rtc_data)
29
26extern const struct imx_imx_i2c_data imx25_imx_i2c_data[] __initconst; 30extern const struct imx_imx_i2c_data imx25_imx_i2c_data[] __initconst;
27#define imx25_add_imx_i2c(id, pdata) \ 31#define imx25_add_imx_i2c(id, pdata) \
28 imx_add_imx_i2c(&imx25_imx_i2c_data[id], pdata) 32 imx_add_imx_i2c(&imx25_imx_i2c_data[id], pdata)
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c
index 052adbbb3de6..12743969222d 100644
--- a/arch/arm/mach-mx25/devices.c
+++ b/arch/arm/mach-mx25/devices.c
@@ -22,25 +22,6 @@
22#include <mach/mx25.h> 22#include <mach/mx25.h>
23#include <mach/irqs.h> 23#include <mach/irqs.h>
24 24
25static struct resource mx25_rtc_resources[] = {
26 {
27 .start = MX25_DRYICE_BASE_ADDR,
28 .end = MX25_DRYICE_BASE_ADDR + 0x40,
29 .flags = IORESOURCE_MEM,
30 },
31 {
32 .start = MX25_INT_DRYICE,
33 .flags = IORESOURCE_IRQ
34 },
35};
36
37struct platform_device mx25_rtc_device = {
38 .name = "imxdi_rtc",
39 .id = 0,
40 .num_resources = ARRAY_SIZE(mx25_rtc_resources),
41 .resource = mx25_rtc_resources,
42};
43
44static struct resource mx25_fb_resources[] = { 25static struct resource mx25_fb_resources[] = {
45 { 26 {
46 .start = MX25_LCDC_BASE_ADDR, 27 .start = MX25_LCDC_BASE_ADDR,
diff --git a/arch/arm/mach-mx25/devices.h b/arch/arm/mach-mx25/devices.h
index dd1fdeddb83b..f37f9a2d8ee0 100644
--- a/arch/arm/mach-mx25/devices.h
+++ b/arch/arm/mach-mx25/devices.h
@@ -1,4 +1,3 @@
1extern struct platform_device mx25_rtc_device;
2extern struct platform_device mx25_fb_device; 1extern struct platform_device mx25_fb_device;
3extern struct platform_device mxc_wdt; 2extern struct platform_device mxc_wdt;
4extern struct platform_device mx25_csi_device; 3extern struct platform_device mx25_csi_device;
diff --git a/arch/arm/mach-mx25/mach-cpuimx25.c b/arch/arm/mach-mx25/mach-cpuimx25.c
index 2094bddb3e47..d1a04bafb432 100644
--- a/arch/arm/mach-mx25/mach-cpuimx25.c
+++ b/arch/arm/mach-mx25/mach-cpuimx25.c
@@ -124,7 +124,7 @@ static void __init eukrea_cpuimx25_init(void)
124 124
125 imx25_add_imx_uart0(&uart_pdata); 125 imx25_add_imx_uart0(&uart_pdata);
126 imx25_add_mxc_nand(&eukrea_cpuimx25_nand_board_info); 126 imx25_add_mxc_nand(&eukrea_cpuimx25_nand_board_info);
127 mxc_register_device(&mx25_rtc_device, NULL); 127 imx25_add_imxdi_rtc(NULL);
128 imx25_add_fec(&mx25_fec_pdata); 128 imx25_add_fec(&mx25_fec_pdata);
129 129
130 i2c_register_board_info(0, eukrea_cpuimx25_i2c_devices, 130 i2c_register_board_info(0, eukrea_cpuimx25_i2c_devices,
diff --git a/arch/arm/mach-mx25/mach-mx25_3ds.c b/arch/arm/mach-mx25/mach-mx25_3ds.c
index 1d07cfbd8ff6..0566d3cb10cd 100644
--- a/arch/arm/mach-mx25/mach-mx25_3ds.c
+++ b/arch/arm/mach-mx25/mach-mx25_3ds.c
@@ -194,7 +194,7 @@ static void __init mx25pdk_init(void)
194 imx25_add_imx_uart0(&uart_pdata); 194 imx25_add_imx_uart0(&uart_pdata);
195 imx25_add_mxc_ehci_hs(NULL); 195 imx25_add_mxc_ehci_hs(NULL);
196 imx25_add_mxc_nand(&mx25pdk_nand_board_info); 196 imx25_add_mxc_nand(&mx25pdk_nand_board_info);
197 mxc_register_device(&mx25_rtc_device, NULL); 197 imx25_add_imxdi_rtc(NULL);
198 mxc_register_device(&mx25_fb_device, &mx25pdk_fb_pdata); 198 mxc_register_device(&mx25_fb_device, &mx25pdk_fb_pdata);
199 mxc_register_device(&mxc_wdt, NULL); 199 mxc_register_device(&mxc_wdt, NULL);
200 200