diff options
author | Tony Lindgren <tony@atomide.com> | 2009-11-10 21:10:34 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-10 21:10:34 -0500 |
commit | 774facda20d2f8f0f61fa312d8028dad18ac5ee4 (patch) | |
tree | a9068b769fa5956beaabc2445ebe1d575585d7d3 /arch/arm/mach-omap2/serial.c | |
parent | b419148e567728f6af0c3b01965c1cc141e3e13a (diff) | |
parent | ce491cf85466c3377228c5a852ea627ec5136956 (diff) |
Merge branch '7xx-iosplit-plat' with omap-fixes
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 54dfeb5d5667..a5aecffe03ff 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -24,10 +24,10 @@ | |||
24 | #include <linux/clk.h> | 24 | #include <linux/clk.h> |
25 | #include <linux/io.h> | 25 | #include <linux/io.h> |
26 | 26 | ||
27 | #include <mach/common.h> | 27 | #include <plat/common.h> |
28 | #include <mach/board.h> | 28 | #include <plat/board.h> |
29 | #include <mach/clock.h> | 29 | #include <plat/clock.h> |
30 | #include <mach/control.h> | 30 | #include <plat/control.h> |
31 | 31 | ||
32 | #include "prm.h" | 32 | #include "prm.h" |
33 | #include "pm.h" | 33 | #include "pm.h" |
@@ -73,7 +73,6 @@ static LIST_HEAD(uart_list); | |||
73 | 73 | ||
74 | static struct plat_serial8250_port serial_platform_data0[] = { | 74 | static struct plat_serial8250_port serial_platform_data0[] = { |
75 | { | 75 | { |
76 | .membase = OMAP2_IO_ADDRESS(OMAP_UART1_BASE), | ||
77 | .mapbase = OMAP_UART1_BASE, | 76 | .mapbase = OMAP_UART1_BASE, |
78 | .irq = 72, | 77 | .irq = 72, |
79 | .flags = UPF_BOOT_AUTOCONF, | 78 | .flags = UPF_BOOT_AUTOCONF, |
@@ -87,7 +86,6 @@ static struct plat_serial8250_port serial_platform_data0[] = { | |||
87 | 86 | ||
88 | static struct plat_serial8250_port serial_platform_data1[] = { | 87 | static struct plat_serial8250_port serial_platform_data1[] = { |
89 | { | 88 | { |
90 | .membase = OMAP2_IO_ADDRESS(OMAP_UART2_BASE), | ||
91 | .mapbase = OMAP_UART2_BASE, | 89 | .mapbase = OMAP_UART2_BASE, |
92 | .irq = 73, | 90 | .irq = 73, |
93 | .flags = UPF_BOOT_AUTOCONF, | 91 | .flags = UPF_BOOT_AUTOCONF, |
@@ -101,7 +99,6 @@ static struct plat_serial8250_port serial_platform_data1[] = { | |||
101 | 99 | ||
102 | static struct plat_serial8250_port serial_platform_data2[] = { | 100 | static struct plat_serial8250_port serial_platform_data2[] = { |
103 | { | 101 | { |
104 | .membase = OMAP2_IO_ADDRESS(OMAP_UART3_BASE), | ||
105 | .mapbase = OMAP_UART3_BASE, | 102 | .mapbase = OMAP_UART3_BASE, |
106 | .irq = 74, | 103 | .irq = 74, |
107 | .flags = UPF_BOOT_AUTOCONF, | 104 | .flags = UPF_BOOT_AUTOCONF, |
@@ -116,7 +113,6 @@ static struct plat_serial8250_port serial_platform_data2[] = { | |||
116 | #ifdef CONFIG_ARCH_OMAP4 | 113 | #ifdef CONFIG_ARCH_OMAP4 |
117 | static struct plat_serial8250_port serial_platform_data3[] = { | 114 | static struct plat_serial8250_port serial_platform_data3[] = { |
118 | { | 115 | { |
119 | .membase = OMAP2_IO_ADDRESS(OMAP_UART4_BASE), | ||
120 | .mapbase = OMAP_UART4_BASE, | 116 | .mapbase = OMAP_UART4_BASE, |
121 | .irq = 70, | 117 | .irq = 70, |
122 | .flags = UPF_BOOT_AUTOCONF, | 118 | .flags = UPF_BOOT_AUTOCONF, |
@@ -595,6 +591,16 @@ void __init omap_serial_early_init(void) | |||
595 | struct device *dev = &pdev->dev; | 591 | struct device *dev = &pdev->dev; |
596 | struct plat_serial8250_port *p = dev->platform_data; | 592 | struct plat_serial8250_port *p = dev->platform_data; |
597 | 593 | ||
594 | /* | ||
595 | * Module 4KB + L4 interconnect 4KB | ||
596 | * Static mapping, never released | ||
597 | */ | ||
598 | p->membase = ioremap(p->mapbase, SZ_8K); | ||
599 | if (!p->membase) { | ||
600 | printk(KERN_ERR "ioremap failed for uart%i\n", i + 1); | ||
601 | continue; | ||
602 | } | ||
603 | |||
598 | sprintf(name, "uart%d_ick", i+1); | 604 | sprintf(name, "uart%d_ick", i+1); |
599 | uart->ick = clk_get(NULL, name); | 605 | uart->ick = clk_get(NULL, name); |
600 | if (IS_ERR(uart->ick)) { | 606 | if (IS_ERR(uart->ick)) { |