diff options
author | Jarkko Nikula <jarkko.nikula@bitmer.com> | 2013-06-15 04:31:08 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-06-18 03:12:34 -0400 |
commit | b6a85477d7abf6bdb299860a066b6c66a5c6a7dd (patch) | |
tree | ae465b452a472c3fe6b450c328bdd8f8c8c9ca5d | |
parent | bf2920aa57f339b3901172ca35fbbf303acf8e16 (diff) |
ARM: OMAP1: Remove legacy irda.h and irda setup from board files
omap-ir.c driver has never been upstream and was also removed from
linux-omap.git four years ago (See linux-omap.git commit efd1e3f
("REMOVE OMAP LEGACY CODE: Reset drivers/net/irda to mainline")).
Therefore remove needless device registration from a few board files
and delete thus to be unused arch/arm/mach-omap1/include/mach/irda.h
and unused OMAP_DMA_UART3_* definitions from dma.h.
Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 36 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmte.c | 31 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmtt.c | 30 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmz71.c | 31 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-sx1.c | 36 | ||||
-rw-r--r-- | arch/arm/mach-omap1/dma.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/include/mach/irda.h | 33 |
7 files changed, 0 insertions, 199 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 0dac3d239e32..fd90cafc2e36 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <mach/mux.h> | 41 | #include <mach/mux.h> |
42 | #include <linux/omap-dma.h> | 42 | #include <linux/omap-dma.h> |
43 | #include <mach/tc.h> | 43 | #include <mach/tc.h> |
44 | #include <mach/irda.h> | ||
45 | #include <linux/platform_data/keypad-omap.h> | 44 | #include <linux/platform_data/keypad-omap.h> |
46 | #include <mach/flash.h> | 45 | #include <mach/flash.h> |
47 | 46 | ||
@@ -50,7 +49,6 @@ | |||
50 | 49 | ||
51 | #include "common.h" | 50 | #include "common.h" |
52 | #include "board-h2.h" | 51 | #include "board-h2.h" |
53 | #include "dma.h" | ||
54 | 52 | ||
55 | /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ | 53 | /* At OMAP1610 Innovator the Ethernet is directly connected to CS1 */ |
56 | #define OMAP1610_ETHR_START 0x04000300 | 54 | #define OMAP1610_ETHR_START 0x04000300 |
@@ -276,39 +274,6 @@ static struct platform_device h2_kp_device = { | |||
276 | .resource = h2_kp_resources, | 274 | .resource = h2_kp_resources, |
277 | }; | 275 | }; |
278 | 276 | ||
279 | #define H2_IRDA_FIRSEL_GPIO_PIN 17 | ||
280 | |||
281 | static struct omap_irda_config h2_irda_data = { | ||
282 | .transceiver_cap = IR_SIRMODE | IR_MIRMODE | IR_FIRMODE, | ||
283 | .rx_channel = OMAP_DMA_UART3_RX, | ||
284 | .tx_channel = OMAP_DMA_UART3_TX, | ||
285 | .dest_start = UART3_THR, | ||
286 | .src_start = UART3_RHR, | ||
287 | .tx_trigger = 0, | ||
288 | .rx_trigger = 0, | ||
289 | }; | ||
290 | |||
291 | static struct resource h2_irda_resources[] = { | ||
292 | [0] = { | ||
293 | .start = INT_UART3, | ||
294 | .end = INT_UART3, | ||
295 | .flags = IORESOURCE_IRQ, | ||
296 | }, | ||
297 | }; | ||
298 | |||
299 | static u64 irda_dmamask = 0xffffffff; | ||
300 | |||
301 | static struct platform_device h2_irda_device = { | ||
302 | .name = "omapirda", | ||
303 | .id = 0, | ||
304 | .dev = { | ||
305 | .platform_data = &h2_irda_data, | ||
306 | .dma_mask = &irda_dmamask, | ||
307 | }, | ||
308 | .num_resources = ARRAY_SIZE(h2_irda_resources), | ||
309 | .resource = h2_irda_resources, | ||
310 | }; | ||
311 | |||
312 | static struct gpio_led h2_gpio_led_pins[] = { | 277 | static struct gpio_led h2_gpio_led_pins[] = { |
313 | { | 278 | { |
314 | .name = "h2:red", | 279 | .name = "h2:red", |
@@ -339,7 +304,6 @@ static struct platform_device *h2_devices[] __initdata = { | |||
339 | &h2_nor_device, | 304 | &h2_nor_device, |
340 | &h2_nand_device, | 305 | &h2_nand_device, |
341 | &h2_smc91x_device, | 306 | &h2_smc91x_device, |
342 | &h2_irda_device, | ||
343 | &h2_kp_device, | 307 | &h2_kp_device, |
344 | &h2_gpio_leds, | 308 | &h2_gpio_leds, |
345 | }; | 309 | }; |
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index 845a1a7aef95..3b8e98f4353c 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
@@ -38,14 +38,12 @@ | |||
38 | #include <mach/mux.h> | 38 | #include <mach/mux.h> |
39 | #include <mach/tc.h> | 39 | #include <mach/tc.h> |
40 | #include <linux/omap-dma.h> | 40 | #include <linux/omap-dma.h> |
41 | #include <mach/irda.h> | ||
42 | #include <linux/platform_data/keypad-omap.h> | 41 | #include <linux/platform_data/keypad-omap.h> |
43 | 42 | ||
44 | #include <mach/hardware.h> | 43 | #include <mach/hardware.h> |
45 | #include <mach/usb.h> | 44 | #include <mach/usb.h> |
46 | 45 | ||
47 | #include "common.h" | 46 | #include "common.h" |
48 | #include "dma.h" | ||
49 | 47 | ||
50 | #define PALMTE_USBDETECT_GPIO 0 | 48 | #define PALMTE_USBDETECT_GPIO 0 |
51 | #define PALMTE_USB_OR_DC_GPIO 1 | 49 | #define PALMTE_USB_OR_DC_GPIO 1 |
@@ -167,40 +165,11 @@ static struct platform_device palmte_backlight_device = { | |||
167 | }, | 165 | }, |
168 | }; | 166 | }; |
169 | 167 | ||
170 | static struct omap_irda_config palmte_irda_config = { | ||
171 | .transceiver_cap = IR_SIRMODE, | ||
172 | .rx_channel = OMAP_DMA_UART3_RX, | ||
173 | .tx_channel = OMAP_DMA_UART3_TX, | ||
174 | .dest_start = UART3_THR, | ||
175 | .src_start = UART3_RHR, | ||
176 | .tx_trigger = 0, | ||
177 | .rx_trigger = 0, | ||
178 | }; | ||
179 | |||
180 | static struct resource palmte_irda_resources[] = { | ||
181 | [0] = { | ||
182 | .start = INT_UART3, | ||
183 | .end = INT_UART3, | ||
184 | .flags = IORESOURCE_IRQ, | ||
185 | }, | ||
186 | }; | ||
187 | |||
188 | static struct platform_device palmte_irda_device = { | ||
189 | .name = "omapirda", | ||
190 | .id = -1, | ||
191 | .dev = { | ||
192 | .platform_data = &palmte_irda_config, | ||
193 | }, | ||
194 | .num_resources = ARRAY_SIZE(palmte_irda_resources), | ||
195 | .resource = palmte_irda_resources, | ||
196 | }; | ||
197 | |||
198 | static struct platform_device *palmte_devices[] __initdata = { | 168 | static struct platform_device *palmte_devices[] __initdata = { |
199 | &palmte_rom_device, | 169 | &palmte_rom_device, |
200 | &palmte_kp_device, | 170 | &palmte_kp_device, |
201 | &palmte_lcd_device, | 171 | &palmte_lcd_device, |
202 | &palmte_backlight_device, | 172 | &palmte_backlight_device, |
203 | &palmte_irda_device, | ||
204 | }; | 173 | }; |
205 | 174 | ||
206 | static struct omap_usb_config palmte_usb_config __initdata = { | 175 | static struct omap_usb_config palmte_usb_config __initdata = { |
diff --git a/arch/arm/mach-omap1/board-palmtt.c b/arch/arm/mach-omap1/board-palmtt.c index 65a4a3e357f2..ca501208825f 100644 --- a/arch/arm/mach-omap1/board-palmtt.c +++ b/arch/arm/mach-omap1/board-palmtt.c | |||
@@ -38,14 +38,12 @@ | |||
38 | #include <mach/mux.h> | 38 | #include <mach/mux.h> |
39 | #include <linux/omap-dma.h> | 39 | #include <linux/omap-dma.h> |
40 | #include <mach/tc.h> | 40 | #include <mach/tc.h> |
41 | #include <mach/irda.h> | ||
42 | #include <linux/platform_data/keypad-omap.h> | 41 | #include <linux/platform_data/keypad-omap.h> |
43 | 42 | ||
44 | #include <mach/hardware.h> | 43 | #include <mach/hardware.h> |
45 | #include <mach/usb.h> | 44 | #include <mach/usb.h> |
46 | 45 | ||
47 | #include "common.h" | 46 | #include "common.h" |
48 | #include "dma.h" | ||
49 | 47 | ||
50 | #define PALMTT_USBDETECT_GPIO 0 | 48 | #define PALMTT_USBDETECT_GPIO 0 |
51 | #define PALMTT_CABLE_GPIO 1 | 49 | #define PALMTT_CABLE_GPIO 1 |
@@ -163,33 +161,6 @@ static struct platform_device palmtt_lcd_device = { | |||
163 | .name = "lcd_palmtt", | 161 | .name = "lcd_palmtt", |
164 | .id = -1, | 162 | .id = -1, |
165 | }; | 163 | }; |
166 | static struct omap_irda_config palmtt_irda_config = { | ||
167 | .transceiver_cap = IR_SIRMODE, | ||
168 | .rx_channel = OMAP_DMA_UART3_RX, | ||
169 | .tx_channel = OMAP_DMA_UART3_TX, | ||
170 | .dest_start = UART3_THR, | ||
171 | .src_start = UART3_RHR, | ||
172 | .tx_trigger = 0, | ||
173 | .rx_trigger = 0, | ||
174 | }; | ||
175 | |||
176 | static struct resource palmtt_irda_resources[] = { | ||
177 | [0] = { | ||
178 | .start = INT_UART3, | ||
179 | .end = INT_UART3, | ||
180 | .flags = IORESOURCE_IRQ, | ||
181 | }, | ||
182 | }; | ||
183 | |||
184 | static struct platform_device palmtt_irda_device = { | ||
185 | .name = "omapirda", | ||
186 | .id = -1, | ||
187 | .dev = { | ||
188 | .platform_data = &palmtt_irda_config, | ||
189 | }, | ||
190 | .num_resources = ARRAY_SIZE(palmtt_irda_resources), | ||
191 | .resource = palmtt_irda_resources, | ||
192 | }; | ||
193 | 164 | ||
194 | static struct platform_device palmtt_spi_device = { | 165 | static struct platform_device palmtt_spi_device = { |
195 | .name = "spi_palmtt", | 166 | .name = "spi_palmtt", |
@@ -234,7 +205,6 @@ static struct platform_device *palmtt_devices[] __initdata = { | |||
234 | &palmtt_flash_device, | 205 | &palmtt_flash_device, |
235 | &palmtt_kp_device, | 206 | &palmtt_kp_device, |
236 | &palmtt_lcd_device, | 207 | &palmtt_lcd_device, |
237 | &palmtt_irda_device, | ||
238 | &palmtt_spi_device, | 208 | &palmtt_spi_device, |
239 | &palmtt_backlight_device, | 209 | &palmtt_backlight_device, |
240 | &palmtt_led_device, | 210 | &palmtt_led_device, |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index 01c970071fd8..470e12d67360 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -40,14 +40,12 @@ | |||
40 | #include <mach/mux.h> | 40 | #include <mach/mux.h> |
41 | #include <linux/omap-dma.h> | 41 | #include <linux/omap-dma.h> |
42 | #include <mach/tc.h> | 42 | #include <mach/tc.h> |
43 | #include <mach/irda.h> | ||
44 | #include <linux/platform_data/keypad-omap.h> | 43 | #include <linux/platform_data/keypad-omap.h> |
45 | 44 | ||
46 | #include <mach/hardware.h> | 45 | #include <mach/hardware.h> |
47 | #include <mach/usb.h> | 46 | #include <mach/usb.h> |
48 | 47 | ||
49 | #include "common.h" | 48 | #include "common.h" |
50 | #include "dma.h" | ||
51 | 49 | ||
52 | #define PALMZ71_USBDETECT_GPIO 0 | 50 | #define PALMZ71_USBDETECT_GPIO 0 |
53 | #define PALMZ71_PENIRQ_GPIO 6 | 51 | #define PALMZ71_PENIRQ_GPIO 6 |
@@ -153,34 +151,6 @@ static struct platform_device palmz71_lcd_device = { | |||
153 | .id = -1, | 151 | .id = -1, |
154 | }; | 152 | }; |
155 | 153 | ||
156 | static struct omap_irda_config palmz71_irda_config = { | ||
157 | .transceiver_cap = IR_SIRMODE, | ||
158 | .rx_channel = OMAP_DMA_UART3_RX, | ||
159 | .tx_channel = OMAP_DMA_UART3_TX, | ||
160 | .dest_start = UART3_THR, | ||
161 | .src_start = UART3_RHR, | ||
162 | .tx_trigger = 0, | ||
163 | .rx_trigger = 0, | ||
164 | }; | ||
165 | |||
166 | static struct resource palmz71_irda_resources[] = { | ||
167 | [0] = { | ||
168 | .start = INT_UART3, | ||
169 | .end = INT_UART3, | ||
170 | .flags = IORESOURCE_IRQ, | ||
171 | }, | ||
172 | }; | ||
173 | |||
174 | static struct platform_device palmz71_irda_device = { | ||
175 | .name = "omapirda", | ||
176 | .id = -1, | ||
177 | .dev = { | ||
178 | .platform_data = &palmz71_irda_config, | ||
179 | }, | ||
180 | .num_resources = ARRAY_SIZE(palmz71_irda_resources), | ||
181 | .resource = palmz71_irda_resources, | ||
182 | }; | ||
183 | |||
184 | static struct platform_device palmz71_spi_device = { | 154 | static struct platform_device palmz71_spi_device = { |
185 | .name = "spi_palmz71", | 155 | .name = "spi_palmz71", |
186 | .id = -1, | 156 | .id = -1, |
@@ -202,7 +172,6 @@ static struct platform_device *devices[] __initdata = { | |||
202 | &palmz71_rom_device, | 172 | &palmz71_rom_device, |
203 | &palmz71_kp_device, | 173 | &palmz71_kp_device, |
204 | &palmz71_lcd_device, | 174 | &palmz71_lcd_device, |
205 | &palmz71_irda_device, | ||
206 | &palmz71_spi_device, | 175 | &palmz71_spi_device, |
207 | &palmz71_backlight_device, | 176 | &palmz71_backlight_device, |
208 | }; | 177 | }; |
diff --git a/arch/arm/mach-omap1/board-sx1.c b/arch/arm/mach-omap1/board-sx1.c index 9732a98f3e06..0a8d3349149c 100644 --- a/arch/arm/mach-omap1/board-sx1.c +++ b/arch/arm/mach-omap1/board-sx1.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include <mach/flash.h> | 37 | #include <mach/flash.h> |
38 | #include <mach/mux.h> | 38 | #include <mach/mux.h> |
39 | #include <linux/omap-dma.h> | 39 | #include <linux/omap-dma.h> |
40 | #include <mach/irda.h> | ||
41 | #include <mach/tc.h> | 40 | #include <mach/tc.h> |
42 | #include <mach/board-sx1.h> | 41 | #include <mach/board-sx1.h> |
43 | 42 | ||
@@ -45,7 +44,6 @@ | |||
45 | #include <mach/usb.h> | 44 | #include <mach/usb.h> |
46 | 45 | ||
47 | #include "common.h" | 46 | #include "common.h" |
48 | #include "dma.h" | ||
49 | 47 | ||
50 | /* Write to I2C device */ | 48 | /* Write to I2C device */ |
51 | int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value) | 49 | int sx1_i2c_write_byte(u8 devaddr, u8 regoffset, u8 value) |
@@ -228,39 +226,6 @@ static struct platform_device sx1_kp_device = { | |||
228 | .resource = sx1_kp_resources, | 226 | .resource = sx1_kp_resources, |
229 | }; | 227 | }; |
230 | 228 | ||
231 | /*----------- IRDA -------------------------*/ | ||
232 | |||
233 | static struct omap_irda_config sx1_irda_data = { | ||
234 | .transceiver_cap = IR_SIRMODE, | ||
235 | .rx_channel = OMAP_DMA_UART3_RX, | ||
236 | .tx_channel = OMAP_DMA_UART3_TX, | ||
237 | .dest_start = UART3_THR, | ||
238 | .src_start = UART3_RHR, | ||
239 | .tx_trigger = 0, | ||
240 | .rx_trigger = 0, | ||
241 | }; | ||
242 | |||
243 | static struct resource sx1_irda_resources[] = { | ||
244 | [0] = { | ||
245 | .start = INT_UART3, | ||
246 | .end = INT_UART3, | ||
247 | .flags = IORESOURCE_IRQ, | ||
248 | }, | ||
249 | }; | ||
250 | |||
251 | static u64 irda_dmamask = 0xffffffff; | ||
252 | |||
253 | static struct platform_device sx1_irda_device = { | ||
254 | .name = "omapirda", | ||
255 | .id = 0, | ||
256 | .dev = { | ||
257 | .platform_data = &sx1_irda_data, | ||
258 | .dma_mask = &irda_dmamask, | ||
259 | }, | ||
260 | .num_resources = ARRAY_SIZE(sx1_irda_resources), | ||
261 | .resource = sx1_irda_resources, | ||
262 | }; | ||
263 | |||
264 | /*----------- MTD -------------------------*/ | 229 | /*----------- MTD -------------------------*/ |
265 | 230 | ||
266 | static struct mtd_partition sx1_partitions[] = { | 231 | static struct mtd_partition sx1_partitions[] = { |
@@ -366,7 +331,6 @@ static struct omap_lcd_config sx1_lcd_config __initdata = { | |||
366 | static struct platform_device *sx1_devices[] __initdata = { | 331 | static struct platform_device *sx1_devices[] __initdata = { |
367 | &sx1_flash_device, | 332 | &sx1_flash_device, |
368 | &sx1_kp_device, | 333 | &sx1_kp_device, |
369 | &sx1_irda_device, | ||
370 | }; | 334 | }; |
371 | 335 | ||
372 | /*-----------------------------------------*/ | 336 | /*-----------------------------------------*/ |
diff --git a/arch/arm/mach-omap1/dma.h b/arch/arm/mach-omap1/dma.h index dc33cd98202b..6c751e8266da 100644 --- a/arch/arm/mach-omap1/dma.h +++ b/arch/arm/mach-omap1/dma.h | |||
@@ -20,8 +20,6 @@ | |||
20 | #define __OMAP1_DMA_CHANNEL_H | 20 | #define __OMAP1_DMA_CHANNEL_H |
21 | 21 | ||
22 | /* DMA channels for omap1 */ | 22 | /* DMA channels for omap1 */ |
23 | #define OMAP_DMA_UART3_TX 18 | ||
24 | #define OMAP_DMA_UART3_RX 19 | ||
25 | 23 | ||
26 | /* These are only for 1610 */ | 24 | /* These are only for 1610 */ |
27 | 25 | ||
diff --git a/arch/arm/mach-omap1/include/mach/irda.h b/arch/arm/mach-omap1/include/mach/irda.h deleted file mode 100644 index 40f60339d1c6..000000000000 --- a/arch/arm/mach-omap1/include/mach/irda.h +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-omap/include/mach/irda.h | ||
3 | * | ||
4 | * Copyright (C) 2005-2006 Komal Shah <komal_shah802003@yahoo.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | #ifndef ASMARM_ARCH_IRDA_H | ||
11 | #define ASMARM_ARCH_IRDA_H | ||
12 | |||
13 | /* board specific transceiver capabilities */ | ||
14 | |||
15 | #define IR_SEL 1 /* Selects IrDA */ | ||
16 | #define IR_SIRMODE 2 | ||
17 | #define IR_FIRMODE 4 | ||
18 | #define IR_MIRMODE 8 | ||
19 | |||
20 | struct omap_irda_config { | ||
21 | int transceiver_cap; | ||
22 | int (*transceiver_mode)(struct device *dev, int mode); | ||
23 | int (*select_irda)(struct device *dev, int state); | ||
24 | int rx_channel; | ||
25 | int tx_channel; | ||
26 | unsigned long dest_start; | ||
27 | unsigned long src_start; | ||
28 | int tx_trigger; | ||
29 | int rx_trigger; | ||
30 | int mode; | ||
31 | }; | ||
32 | |||
33 | #endif | ||