diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-06-28 20:25:00 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-06-28 20:25:00 +0000 |
commit | 793d76599ba6555e278fa3de56bdc8b415b2a15b (patch) | |
tree | 8441722ec16df4936ee09d5a88a457d73120ea0b /target/linux/s3c24xx/patches-2.6.30 | |
parent | 73821328e6bd8b858ad8ddd84234311e10b08eb0 (diff) | |
download | upstream-793d76599ba6555e278fa3de56bdc8b415b2a15b.tar.gz upstream-793d76599ba6555e278fa3de56bdc8b415b2a15b.tar.bz2 upstream-793d76599ba6555e278fa3de56bdc8b415b2a15b.zip |
[s3c24xx] Fix freerunner gsm modem pm.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.30')
-rw-r--r-- | target/linux/s3c24xx/patches-2.6.30/110-serial.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.30/110-serial.patch b/target/linux/s3c24xx/patches-2.6.30/110-serial.patch new file mode 100644 index 0000000000..edb3aa5ac5 --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.30/110-serial.patch @@ -0,0 +1,40 @@ +diff -urNX /opt/Projects/openmoko-linux-2.6/orig/dontdiff /opt/Projects/openmoko-linux-2.6/orig/linux-2.6.29-rc3/drivers/serial/samsung.c /opt/Projects/openmoko-linux-2.6/drivers/serial/samsung.c +--- a/drivers/serial/samsung.c 2009-01-28 19:49:30.000000000 +0100 ++++ b/drivers/serial/samsung.c 2009-05-16 13:25:47.000000000 +0200 +@@ -1208,6 +1355,13 @@ + #ifdef CONFIG_SERIAL_SAMSUNG_CONSOLE + + static struct uart_port *cons_uart; ++static int cons_silenced; ++ ++void s3c24xx_serial_console_set_silence(int silenced) ++{ ++ cons_silenced = silenced; ++} ++EXPORT_SYMBOL(s3c24xx_serial_console_set_silence); + + static int + s3c24xx_serial_console_txrdy(struct uart_port *port, unsigned int ufcon) +@@ -1232,9 +1386,21 @@ + s3c24xx_serial_console_putchar(struct uart_port *port, int ch) + { + unsigned int ufcon = rd_regl(cons_uart, S3C2410_UFCON); ++ unsigned int umcon = rd_regl(cons_uart, S3C2410_UMCON); ++ ++ if (cons_silenced) ++ return; ++ ++ /* If auto HW flow control enabled, temporarily turn it off */ ++ if (umcon & S3C2410_UMCOM_AFC) ++ wr_regl(port, S3C2410_UMCON, (umcon & !S3C2410_UMCOM_AFC)); ++ + while (!s3c24xx_serial_console_txrdy(port, ufcon)) + barrier(); + wr_regb(cons_uart, S3C2410_UTXH, ch); ++ ++ if (umcon & S3C2410_UMCOM_AFC) ++ wr_regl(port, S3C2410_UMCON, umcon); + } + + static void + |