aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-voiceblue.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap1/board-voiceblue.c')
-rw-r--r--arch/arm/mach-omap1/board-voiceblue.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c
index 659d0f75de2c..37232d04233f 100644
--- a/arch/arm/mach-omap1/board-voiceblue.c
+++ b/arch/arm/mach-omap1/board-voiceblue.c
@@ -44,7 +44,6 @@
44static struct plat_serial8250_port voiceblue_ports[] = { 44static struct plat_serial8250_port voiceblue_ports[] = {
45 { 45 {
46 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x40000), 46 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x40000),
47 .irq = OMAP_GPIO_IRQ(12),
48 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, 47 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
49 .iotype = UPIO_MEM, 48 .iotype = UPIO_MEM,
50 .regshift = 1, 49 .regshift = 1,
@@ -52,7 +51,6 @@ static struct plat_serial8250_port voiceblue_ports[] = {
52 }, 51 },
53 { 52 {
54 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x50000), 53 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x50000),
55 .irq = OMAP_GPIO_IRQ(13),
56 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, 54 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
57 .iotype = UPIO_MEM, 55 .iotype = UPIO_MEM,
58 .regshift = 1, 56 .regshift = 1,
@@ -60,7 +58,6 @@ static struct plat_serial8250_port voiceblue_ports[] = {
60 }, 58 },
61 { 59 {
62 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x60000), 60 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x60000),
63 .irq = OMAP_GPIO_IRQ(14),
64 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, 61 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
65 .iotype = UPIO_MEM, 62 .iotype = UPIO_MEM,
66 .regshift = 1, 63 .regshift = 1,
@@ -68,7 +65,6 @@ static struct plat_serial8250_port voiceblue_ports[] = {
68 }, 65 },
69 { 66 {
70 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x70000), 67 .mapbase = (unsigned long)(OMAP_CS1_PHYS + 0x70000),
71 .irq = OMAP_GPIO_IRQ(15),
72 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, 68 .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
73 .iotype = UPIO_MEM, 69 .iotype = UPIO_MEM,
74 .regshift = 1, 70 .regshift = 1,
@@ -80,9 +76,6 @@ static struct plat_serial8250_port voiceblue_ports[] = {
80static struct platform_device serial_device = { 76static struct platform_device serial_device = {
81 .name = "serial8250", 77 .name = "serial8250",
82 .id = PLAT8250_DEV_PLATFORM1, 78 .id = PLAT8250_DEV_PLATFORM1,
83 .dev = {
84 .platform_data = voiceblue_ports,
85 },
86}; 79};
87 80
88static int __init ext_uart_init(void) 81static int __init ext_uart_init(void)
@@ -90,6 +83,11 @@ static int __init ext_uart_init(void)
90 if (!machine_is_voiceblue()) 83 if (!machine_is_voiceblue())
91 return -ENODEV; 84 return -ENODEV;
92 85
86 voiceblue_ports[0].irq = gpio_to_irq(12);
87 voiceblue_ports[1].irq = gpio_to_irq(13);
88 voiceblue_ports[2].irq = gpio_to_irq(14);
89 voiceblue_ports[3].irq = gpio_to_irq(15);
90 serial_device.dev.platform_data = voiceblue_ports;
93 return platform_device_register(&serial_device); 91 return platform_device_register(&serial_device);
94} 92}
95arch_initcall(ext_uart_init); 93arch_initcall(ext_uart_init);
@@ -128,8 +126,6 @@ static struct resource voiceblue_smc91x_resources[] = {
128 .flags = IORESOURCE_MEM, 126 .flags = IORESOURCE_MEM,
129 }, 127 },
130 [1] = { 128 [1] = {
131 .start = OMAP_GPIO_IRQ(8),
132 .end = OMAP_GPIO_IRQ(8),
133 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, 129 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
134 }, 130 },
135}; 131};
@@ -275,6 +271,8 @@ static void __init voiceblue_init(void)
275 irq_set_irq_type(gpio_to_irq(14), IRQ_TYPE_EDGE_RISING); 271 irq_set_irq_type(gpio_to_irq(14), IRQ_TYPE_EDGE_RISING);
276 irq_set_irq_type(gpio_to_irq(15), IRQ_TYPE_EDGE_RISING); 272 irq_set_irq_type(gpio_to_irq(15), IRQ_TYPE_EDGE_RISING);
277 273
274 voiceblue_smc91x_resources[1].start = gpio_to_irq(8);
275 voiceblue_smc91x_resources[1].end = gpio_to_irq(8);
278 platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); 276 platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices));
279 omap_board_config = voiceblue_config; 277 omap_board_config = voiceblue_config;
280 omap_board_config_size = ARRAY_SIZE(voiceblue_config); 278 omap_board_config_size = ARRAY_SIZE(voiceblue_config);