aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/s3c24xx/patches/0059-gta01-dehang-printk.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 00:02:36 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 00:02:36 +0000
commitb9dfb81f2aa45be745a8aed9684076210aed4152 (patch)
treeaceadd7f37096911a29c929988cbcf7c964a1c0b /target/linux/s3c24xx/patches/0059-gta01-dehang-printk.patch.patch
parent4571721ec22de116ad9998657e0a3c12da6405fb (diff)
downloadupstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.gz
upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.tar.bz2
upstream-b9dfb81f2aa45be745a8aed9684076210aed4152.zip
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
SVN-Revision: 13609
Diffstat (limited to 'target/linux/s3c24xx/patches/0059-gta01-dehang-printk.patch.patch')
-rwxr-xr-xtarget/linux/s3c24xx/patches/0059-gta01-dehang-printk.patch.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0059-gta01-dehang-printk.patch.patch b/target/linux/s3c24xx/patches/0059-gta01-dehang-printk.patch.patch
new file mode 100755
index 0000000000..826abf3757
--- /dev/null
+++ b/target/linux/s3c24xx/patches/0059-gta01-dehang-printk.patch.patch
@@ -0,0 +1,44 @@
+From 2e7d18a213b94e4aeded7f35b7cd0d02b9b661cd Mon Sep 17 00:00:00 2001
+From: mokopatches <mokopatches@openmoko.org>
+Date: Fri, 25 Jul 2008 23:04:37 +0100
+Subject: [PATCH] gta01-dehang-printk.patch
+ This is a temporary work-around Mike Westerhof for this bug:
+ http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=788
+
+See also
+http://lists.openmoko.org/pipermail/openmoko-kernel/2008-February/000804.html
+
+(It's the 2nd option.)
+
+We may settle on a different solution in the future, depending on
+feedback from upstream.
+---
+ drivers/serial/s3c2410.c | 9 +++++++++
+ 1 files changed, 9 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/serial/s3c2410.c b/drivers/serial/s3c2410.c
+index 7117110..bd87c79 100644
+--- a/drivers/serial/s3c2410.c
++++ b/drivers/serial/s3c2410.c
+@@ -1720,9 +1720,18 @@ static void
+ 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 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
+--
+1.5.6.3
+