From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1StbMp-0006MD-0h for barebox@lists.infradead.org; Tue, 24 Jul 2012 09:25:24 +0000 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1StbMK-0007P9-T0 for barebox@lists.infradead.org; Tue, 24 Jul 2012 11:24:52 +0200 Received: from jbe by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1StbMK-0007eX-RL for barebox@lists.infradead.org; Tue, 24 Jul 2012 11:24:52 +0200 From: Juergen Beisert Date: Tue, 24 Jul 2012 11:24:50 +0200 Message-Id: <1343121891-1643-3-git-send-email-jbe@pengutronix.de> In-Reply-To: <1343121891-1643-1-git-send-email-jbe@pengutronix.de> References: <20120723064121.GW30009@pengutronix.de> <1343121891-1643-1-git-send-email-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/3] Samsung/serial: unify UCON register settings To: barebox@lists.infradead.org This should work on S3C24XX and S3C64XX SoCs. Tested at runtime on a Mini2440 and Mini6410. Signed-off-by: Juergen Beisert --- drivers/serial/serial_s3c.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_s3c.c b/drivers/serial/serial_s3c.c index 877ccd2..96fe847 100644 --- a/drivers/serial/serial_s3c.c +++ b/drivers/serial/serial_s3c.c @@ -102,9 +102,13 @@ static int s3c_serial_init_port(struct console_device *cdev) /* Normal,No parity,1 stop,8 bit */ writeb(0x03, base + ULCON); - /* tx=level,rx=edge,disable timeout int.,enable rx error int., - * normal, interrupt or polling, no pre-divider */ - writew(0x0245 | UCON_SET_CLK_SRC(S3C_UART_CLKSEL), + /* + * S3C2440 SoC: + * - no clock divider + * all SoCs: + * - enable receive and transmit mode + */ + writew(0x0005 | UCON_SET_CLK_SRC(S3C_UART_CLKSEL), base + UCON); if (IS_ENABLED(CONFIG_DRIVER_SERIAL_S3C_IMPROVED)) -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox