[PATCH 2/2] Enable hardware flow control for GSM/GPS

Harald Welte laforge at openmoko.org
Tue Oct 7 19:26:29 CEST 2008

GTA02 >= v3: Enable hardware flow control for GSM and GPS serial ports

Without this patch, s3ser0 (GSM) and s3ser1 (GPS) will not properly
work on GTA02 >= v3 hardware.

Together with the previous patch, this fixes bug

Signed-off-by: Harald Welte <laforge at openmoko.org>

diff --git a/cpu/arm920t/s3c24x0/serial.c b/cpu/arm920t/s3c24x0/serial.c
index ba60ad1..032390e 100644
--- a/cpu/arm920t/s3c24x0/serial.c
+++ b/cpu/arm920t/s3c24x0/serial.c
@@ -132,7 +132,8 @@ static int serial_init_dev(const int dev_index)
 	/* FIXME: This is sooooooooooooooooooo ugly */
-#if defined(CONFIG_ARCH_GTA02_v1) || defined(CONFIG_ARCH_GTA02_v2)
+#include <config.h>
+#if defined(CONFIG_GTA02_REVISION)
 	/* we need auto hw flow control on the gsm and gps port */
 	if (dev_index == 0 || dev_index == 1)
 		uart->UMCON = 0x10;

- Harald Welte <laforge at openmoko.org>          	        http://openmoko.org/
Software for the world's first truly open Free Software mobile phone

More information about the openmoko-kernel mailing list