From patchwork Mon Sep 2 13:11:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 19687 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f72.google.com (mail-vb0-f72.google.com [209.85.212.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8646C24869 for ; Mon, 2 Sep 2013 13:10:19 +0000 (UTC) Received: by mail-vb0-f72.google.com with SMTP id f12sf5179694vbg.11 for ; Mon, 02 Sep 2013 06:10:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:dlp-filter:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=dDLVJFs1zOPO1amOoCctVyaEE2OS3EeWYVpFsOPGLOM=; b=mHP12WNpnss13wAxrE+mx3+F3qTCdLqpX9NiEStUs0/BLTxBcYcDAdO7Z512kj7Kxt 3YET2u6Jo9VeLwoDygRXrX4E+LQxlzYaEnfU0Of71yAjFksU+mQUjilFqyY251SUiFJk 0WQ9xYXG/mZBRb06HZ4f2Mnr2xQDJb6jV2qvBwlndCT9LC4V+/PIqsZroUUbXvuuUW9r 0Q5i+0YRdsXxdgomryG6f8BNYFAn+QHTu71UWhW5vkN1idS7QX3Xwab1N9qPdjdBBwD+ 02QiKVDJO/FAvHlJw66BJBNjcf+ghwHiZQ8DgR992XZQLur6vfwiJqkYDKQaKk0L5D+B 6+fg== X-Received: by 10.236.108.233 with SMTP id q69mr8203541yhg.11.1378127419093; Mon, 02 Sep 2013 06:10:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.96.9 with SMTP id do9ls2198716qeb.80.gmail; Mon, 02 Sep 2013 06:10:18 -0700 (PDT) X-Received: by 10.52.164.102 with SMTP id yp6mr19488576vdb.14.1378127418949; Mon, 02 Sep 2013 06:10:18 -0700 (PDT) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id zw10si2804036vdb.135.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Sep 2013 06:10:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id e13so2965824vbg.17 for ; Mon, 02 Sep 2013 06:10:18 -0700 (PDT) X-Gm-Message-State: ALoCoQkd7JUk9Bzb2XmzBwD3ay9qTCAQZuxHSdn9+nOeX15zdHTx7hV+zdfYElw9xv42e39Oghdx X-Received: by 10.220.47.10 with SMTP id l10mr8054vcf.32.1378127418866; Mon, 02 Sep 2013 06:10:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp114571vcz; Mon, 2 Sep 2013 06:10:18 -0700 (PDT) X-Received: by 10.66.147.9 with SMTP id tg9mr26602381pab.5.1378127415883; Mon, 02 Sep 2013 06:10:15 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id yl7si10899729pab.319.1969.12.31.16.00.00; Mon, 02 Sep 2013 06:10:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSI000IF1WO6J00@mailout3.samsung.com>; Mon, 02 Sep 2013 22:10:12 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id AE.A9.31253.43E84225; Mon, 02 Sep 2013 22:10:12 +0900 (KST) X-AuditID: cbfee690-b7f3b6d000007a15-3f-52248e346188 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id E1.AE.05832.43E84225; Mon, 02 Sep 2013 22:10:12 +0900 (KST) Received: from localhost.localdomain.com ([107.108.73.95]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSI00IFJ1WNAS50@mmp1.samsung.com>; Mon, 02 Sep 2013 22:10:12 +0900 (KST) From: Rajeshwari S Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, u-boot-review@google.com, Akshay Saraswat Subject: [PATCH 06/10 V2] Exynos5420: Alter UNCON and UFCON for 5420 Date: Mon, 02 Sep 2013 18:41:43 +0530 Message-id: <1378127507-17671-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.11.7 In-reply-to: <1378127507-17671-1-git-send-email-rajeshwari.s@samsung.com> References: <1378127507-17671-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMLMWRmVeSWpSXmKPExsWyRsSkWtekTyXI4MlePYtTfx4zWjxcf5PF ouNIC6PFlMNfWCy+bdnGaLH89UZ2i7d7O9kd2D1mN1xk8ViwqdTjzrU9bB5n7+xg9Ojbsoox gDWKyyYlNSezLLVI3y6BK2PpnTVsBb1cFZdm1zUwzuboYuTkkBAwkWh4+4oJwhaTuHBvPVsX IxeHkMBSRokL268xwxR1NZ9kgkgsYpS4cn8tK4TTxSRxZME8li5GDg42oKqNJxJAGkQEJCR+ 9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 5qQWH2JMBjpqIrOUaHI+MLrzSuINjU3MTY1NLU0sTMwsSRNWEuc92GodKCSQnliSmp2aWpBa BLOFiYNTqoFxhd8syZ2l8ebZYg+mNjLtdMll7TacMn95ScXUX/xbrjSI/Hu/aUN2ooin89aS nW+v897i4Thy/M1Kp9JHXW/zE4Mv/mfzcuvj/966ttCJq13muejeK/Xxr3wy5u+w+LX06vyu D/+CdjqHnteZ2Cd7x53hFrPTCcOOidkOj/jOCh5a+SrX/tU+JZbijERDLeai4kQAvLklq+QC AAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rajeshwari.s@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Akshay Saraswat This patch modifies UNCON and UFCON values to make s5p serial support exynos5420 by doing following changes: * Enable Rx time-out interrupts. * Make Rx time-out interrupt interval = 32 frame time. * Enable DMA mode. * Enable FIFO. * Make Rx FIFO Trigger level 64, 16 and 4 bytes for channels channels 0, 1 and 2/3 respectively. * Make Tx FIFO Trigger level 32, 8 and 2 bytes for channels channels 0, 1 and 2/3 respectively. Signed-off-by: Rajeshwari S Shinde Signed-off-by: Akshay Saraswat --- Changes in V2: - None drivers/serial/serial_s5p.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c index f98b422..b939084 100644 --- a/drivers/serial/serial_s5p.c +++ b/drivers/serial/serial_s5p.c @@ -107,6 +107,12 @@ int serial_init_dev(const int dev_index) writel(0x3, &uart->ulcon); /* No interrupts, no DMA, pure polling */ writel(0x245, &uart->ucon); + if (proid_is_exynos5420()) { + /* Enable interrupts and Enable DMA mode */ + writel(0x3045, &uart->ucon); + /* enable FIFOs */ + writel(0x111, &uart->ufcon); + } serial_setbrg_dev(dev_index);