summaryrefslogtreecommitdiff
path: root/packages/linux/linux-openzaurus-2.6.18/pxa-serial-hack.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2006-09-20 15:26:35 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2006-09-20 15:26:35 +0000
commit302f88cab606e6f2428570eae2e75ee7bed710e8 (patch)
treedd7d3aef764c8c4862d2d1986b4c97b6bb5e2fe7 /packages/linux/linux-openzaurus-2.6.18/pxa-serial-hack.patch
parentd4ca648c92a7beca94017d420656318a5c53e18d (diff)
linux-oz: added 2.6.18 (not tested)
- some patches refreshed: - collie-mcp-r0 -> r1 - tmio-tc6393-r6 -> r7 - tmio-nand-r5 -> r6 - tmio-ohci-r4 -> r5 - tosa-tmio-lcd-r8 -> r9 - tosa-lcdnoise-r0 -> r1
Diffstat (limited to 'packages/linux/linux-openzaurus-2.6.18/pxa-serial-hack.patch')
-rw-r--r--packages/linux/linux-openzaurus-2.6.18/pxa-serial-hack.patch73
1 files changed, 73 insertions, 0 deletions
diff --git a/packages/linux/linux-openzaurus-2.6.18/pxa-serial-hack.patch b/packages/linux/linux-openzaurus-2.6.18/pxa-serial-hack.patch
new file mode 100644
index 0000000000..5d1b76d5e1
--- /dev/null
+++ b/packages/linux/linux-openzaurus-2.6.18/pxa-serial-hack.patch
@@ -0,0 +1,73 @@
+Index: git/drivers/serial/8250.c
+===================================================================
+--- git.orig/drivers/serial/8250.c 2006-07-05 10:06:08.000000000 +0100
++++ git/drivers/serial/8250.c 2006-07-05 10:06:20.000000000 +0100
+@@ -2401,7 +2401,12 @@
+ .driver_name = "serial",
+ .dev_name = "ttyS",
+ .major = TTY_MAJOR,
++#ifdef CONFIG_SERIAL_PXA
++ .minor = 64 + 3,
++ .name_base = 3,
++#else
+ .minor = 64,
++#endif
+ .nr = UART_NR,
+ .cons = SERIAL8250_CONSOLE,
+ };
+Index: git/drivers/serial/serial_core.c
+===================================================================
+--- git.orig/drivers/serial/serial_core.c 2006-07-04 21:49:08.000000000 +0100
++++ git/drivers/serial/serial_core.c 2006-07-05 10:06:20.000000000 +0100
+@@ -2162,6 +2162,7 @@
+ normal->owner = drv->owner;
+ normal->driver_name = drv->driver_name;
+ normal->name = drv->dev_name;
++ normal->name_base = drv->name_base;
+ normal->major = drv->major;
+ normal->minor_start = drv->minor;
+ normal->type = TTY_DRIVER_TYPE_SERIAL;
+Index: git/include/linux/serial_core.h
+===================================================================
+--- git.orig/include/linux/serial_core.h 2006-07-04 21:49:14.000000000 +0100
++++ git/include/linux/serial_core.h 2006-07-05 10:07:10.000000000 +0100
+@@ -337,6 +337,7 @@
+ struct module *owner;
+ const char *driver_name;
+ const char *dev_name;
++ int name_base;
+ int major;
+ int minor;
+ int nr;
+Index: git/drivers/serial/serial_cs.c
+===================================================================
+--- git.orig/drivers/serial/serial_cs.c 2006-07-04 21:49:08.000000000 +0100
++++ git/drivers/serial/serial_cs.c 2006-07-05 10:06:20.000000000 +0100
+@@ -268,7 +268,7 @@
+ kio_addr_t iobase, int irq)
+ {
+ struct uart_port port;
+- int line;
++ int line, linestart;
+
+ memset(&port, 0, sizeof (struct uart_port));
+ port.iobase = iobase;
+@@ -285,10 +285,16 @@
+ return -EINVAL;
+ }
+
++#if CONFIG_SERIAL_PXA
++ linestart = 3;
++#else
++ linestart = 0;
++#endif
++
+ info->line[info->ndev] = line;
+- sprintf(info->node[info->ndev].dev_name, "ttyS%d", line);
++ sprintf(info->node[info->ndev].dev_name, "ttyS%d", line+linestart);
+ info->node[info->ndev].major = TTY_MAJOR;
+- info->node[info->ndev].minor = 0x40 + line;
++ info->node[info->ndev].minor = 0x40 + line + linestart;
+ if (info->ndev > 0)
+ info->node[info->ndev - 1].next = &info->node[info->ndev];
+ info->ndev++;