@@ -70,48 +70,6 @@ struct platform_device imx1_camera_device = {
70
70
.num_resources = ARRAY_SIZE (imx1_camera_resources ),
71
71
};
72
72
73
- static struct resource imx_rtc_resources [] = {
74
- {
75
- .start = 0x00204000 ,
76
- .end = 0x00204024 ,
77
- .flags = IORESOURCE_MEM ,
78
- }, {
79
- .start = MX1_RTC_INT ,
80
- .end = MX1_RTC_INT ,
81
- .flags = IORESOURCE_IRQ ,
82
- }, {
83
- .start = MX1_RTC_SAMINT ,
84
- .end = MX1_RTC_SAMINT ,
85
- .flags = IORESOURCE_IRQ ,
86
- },
87
- };
88
-
89
- struct platform_device imx_rtc_device = {
90
- .name = "rtc-imx" ,
91
- .id = 0 ,
92
- .resource = imx_rtc_resources ,
93
- .num_resources = ARRAY_SIZE (imx_rtc_resources ),
94
- };
95
-
96
- static struct resource imx_wdt_resources [] = {
97
- {
98
- .start = 0x00201000 ,
99
- .end = 0x00201008 ,
100
- .flags = IORESOURCE_MEM ,
101
- }, {
102
- .start = MX1_WDT_INT ,
103
- .end = MX1_WDT_INT ,
104
- .flags = IORESOURCE_IRQ ,
105
- },
106
- };
107
-
108
- struct platform_device imx_wdt_device = {
109
- .name = "imx-wdt" ,
110
- .id = 0 ,
111
- .resource = imx_wdt_resources ,
112
- .num_resources = ARRAY_SIZE (imx_wdt_resources ),
113
- };
114
-
115
73
static struct resource imx_usb_resources [] = {
116
74
{
117
75
.start = 0x00212000 ,
@@ -219,41 +177,6 @@ struct platform_device mx27_camera_device = {
219
177
};
220
178
#endif
221
179
222
- /*
223
- * General Purpose Timer
224
- * - i.MX21: 3 timers
225
- * - i.MX27: 6 timers
226
- */
227
- #define DEFINE_IMX_GPT_DEVICE (n , baseaddr , irq ) \
228
- static struct resource timer ## n ##_resources[] = { \
229
- { \
230
- .start = baseaddr, \
231
- .end = baseaddr + SZ_4K - 1, \
232
- .flags = IORESOURCE_MEM, \
233
- }, { \
234
- .start = irq, \
235
- .end = irq, \
236
- .flags = IORESOURCE_IRQ, \
237
- } \
238
- }; \
239
- \
240
- struct platform_device mxc_gpt ## n = { \
241
- .name = "imx_gpt", \
242
- .id = n, \
243
- .num_resources = ARRAY_SIZE(timer ## n ## _resources), \
244
- .resource = timer ## n ## _resources, \
245
- }
246
-
247
- /* We use gpt1 as system timer, so do not add a device for this one */
248
- DEFINE_IMX_GPT_DEVICE (1 , MX2x_GPT2_BASE_ADDR , MX2x_INT_GPT2 );
249
- DEFINE_IMX_GPT_DEVICE (2 , MX2x_GPT3_BASE_ADDR , MX2x_INT_GPT3 );
250
-
251
- #ifdef CONFIG_MACH_MX27
252
- DEFINE_IMX_GPT_DEVICE (3 , MX27_GPT4_BASE_ADDR , MX27_INT_GPT4 );
253
- DEFINE_IMX_GPT_DEVICE (4 , MX27_GPT5_BASE_ADDR , MX27_INT_GPT5 );
254
- DEFINE_IMX_GPT_DEVICE (5 , MX27_GPT6_BASE_ADDR , MX27_INT_GPT6 );
255
- #endif
256
-
257
180
/* Watchdog: i.MX1 has seperate driver, i.MX21 and i.MX27 are equal */
258
181
static struct resource mxc_wdt_resources [] = {
259
182
{
0 commit comments