aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/serial.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2010-02-15 12:26:07 -0500
committerTony Lindgren <tony@atomide.com>2010-02-15 12:26:07 -0500
commitbe26a3df0b80307bf8f73cea535c112210151bb9 (patch)
tree8e3d90563b6d689ad37500929c05c211153295be /arch/arm/mach-omap2/serial.c
parent918cae14872c56446415299fc17cf98704c9a537 (diff)
parent61b603b4ee0c70708539e2fa5c3d47f17b7c7849 (diff)
Merge branch 'debug-ll' into omap-for-linus
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r--arch/arm/mach-omap2/serial.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index e10a02df6e1d..e657674d5490 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -80,7 +80,6 @@ static LIST_HEAD(uart_list);
80 80
81static struct plat_serial8250_port serial_platform_data0[] = { 81static struct plat_serial8250_port serial_platform_data0[] = {
82 { 82 {
83 .mapbase = OMAP_UART1_BASE,
84 .irq = 72, 83 .irq = 72,
85 .flags = UPF_BOOT_AUTOCONF, 84 .flags = UPF_BOOT_AUTOCONF,
86 .iotype = UPIO_MEM, 85 .iotype = UPIO_MEM,
@@ -93,7 +92,6 @@ static struct plat_serial8250_port serial_platform_data0[] = {
93 92
94static struct plat_serial8250_port serial_platform_data1[] = { 93static struct plat_serial8250_port serial_platform_data1[] = {
95 { 94 {
96 .mapbase = OMAP_UART2_BASE,
97 .irq = 73, 95 .irq = 73,
98 .flags = UPF_BOOT_AUTOCONF, 96 .flags = UPF_BOOT_AUTOCONF,
99 .iotype = UPIO_MEM, 97 .iotype = UPIO_MEM,
@@ -106,7 +104,6 @@ static struct plat_serial8250_port serial_platform_data1[] = {
106 104
107static struct plat_serial8250_port serial_platform_data2[] = { 105static struct plat_serial8250_port serial_platform_data2[] = {
108 { 106 {
109 .mapbase = OMAP_UART3_BASE,
110 .irq = 74, 107 .irq = 74,
111 .flags = UPF_BOOT_AUTOCONF, 108 .flags = UPF_BOOT_AUTOCONF,
112 .iotype = UPIO_MEM, 109 .iotype = UPIO_MEM,
@@ -120,7 +117,6 @@ static struct plat_serial8250_port serial_platform_data2[] = {
120#ifdef CONFIG_ARCH_OMAP4 117#ifdef CONFIG_ARCH_OMAP4
121static struct plat_serial8250_port serial_platform_data3[] = { 118static struct plat_serial8250_port serial_platform_data3[] = {
122 { 119 {
123 .mapbase = OMAP_UART4_BASE,
124 .irq = 70, 120 .irq = 70,
125 .flags = UPF_BOOT_AUTOCONF, 121 .flags = UPF_BOOT_AUTOCONF,
126 .iotype = UPIO_MEM, 122 .iotype = UPIO_MEM,
@@ -131,6 +127,17 @@ static struct plat_serial8250_port serial_platform_data3[] = {
131 } 127 }
132}; 128};
133#endif 129#endif
130
131void __init omap2_set_globals_uart(struct omap_globals *omap2_globals)
132{
133 serial_platform_data0[0].mapbase = omap2_globals->uart1_phys;
134 serial_platform_data1[0].mapbase = omap2_globals->uart2_phys;
135 serial_platform_data2[0].mapbase = omap2_globals->uart3_phys;
136#ifdef CONFIG_ARCH_OMAP4
137 serial_platform_data3[0].mapbase = omap2_globals->uart4_phys;
138#endif
139}
140
134static inline unsigned int __serial_read_reg(struct uart_port *up, 141static inline unsigned int __serial_read_reg(struct uart_port *up,
135 int offset) 142 int offset)
136{ 143{