From patchwork Mon Sep 2 12:15:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 19679 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f197.google.com (mail-ye0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 71B2525E41 for ; Mon, 2 Sep 2013 12:13:49 +0000 (UTC) Received: by mail-ye0-f197.google.com with SMTP id q5sf1871343yen.0 for ; Mon, 02 Sep 2013 05:13:49 -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=FQ3ky1WF2y4rpFDckp8ZV792LF6hWC7bGv25Pn5G0pc=; b=j3xt5CZu2UYiGTtGSOfPMsT8UlckaYhV9+MhD1SYAUOn+wzzwMaTQTI6kCTzqAspCa ougEDTcWfeZv5hc0zCcSviFmjmYNya+OXXcHvvtJi4YUR8O21IRRA7huZYJOe1Pq4mc+ N9vXsFyg8ittjuufXZEeG5nKXfy6qGgl2kQBovg0lRQEUOWGpmctwUBJ7ghZ/1UjNu+Y ClaKMpJCkZanitMMMx/RNoZQJdpCaGlqEBg4rK58+495d2H1OoMfBfPSb4rp/5Xt9qPo WAOhr8pLu4oJlfx4t/n8suehX3S7MF9vEMYYv1bNYMUZE+sE+s9s/2NpsNp66HaVMAkc tLBA== X-Received: by 10.236.166.35 with SMTP id f23mr8395488yhl.22.1378124029168; Mon, 02 Sep 2013 05:13:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.127.99 with SMTP id nf3ls2257441qeb.83.gmail; Mon, 02 Sep 2013 05:13:49 -0700 (PDT) X-Received: by 10.221.44.136 with SMTP id ug8mr22774130vcb.13.1378124029045; Mon, 02 Sep 2013 05:13:49 -0700 (PDT) Received: from mail-vb0-f51.google.com (mail-vb0-f51.google.com [209.85.212.51]) by mx.google.com with ESMTPS id ci9si3092888vcb.106.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Sep 2013 05:13:49 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.51 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.51; Received: by mail-vb0-f51.google.com with SMTP id x16so2880059vbf.24 for ; Mon, 02 Sep 2013 05:13:49 -0700 (PDT) X-Gm-Message-State: ALoCoQlCind6ACbOp0GSlpNk88jwA+hq7YG4lZEdUE2CG/KCLUqESEZmn7n74RGyPNRy4BphJnku X-Received: by 10.58.118.130 with SMTP id km2mr22716216veb.0.1378124028962; Mon, 02 Sep 2013 05:13:48 -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 u4csp111871vcz; Mon, 2 Sep 2013 05:13:48 -0700 (PDT) X-Received: by 10.66.251.1 with SMTP id zg1mr2428985pac.160.1378124027663; Mon, 02 Sep 2013 05:13:47 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id co1si10612971pbc.18.1969.12.31.16.00.00; Mon, 02 Sep 2013 05:13:47 -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 epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSH00CVAZA5N5X0@mailout3.samsung.com>; Mon, 02 Sep 2013 21:13:37 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.122]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 72.7A.29948.1F084225; Mon, 02 Sep 2013 21:13:37 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-a0-522480f1ae27 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 89.50.09055.1F084225; Mon, 02 Sep 2013 21:13:37 +0900 (KST) Received: from localhost.localdomain.com ([107.108.73.95]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MSH004D4ZABZW60@mmp2.samsung.com>; Mon, 02 Sep 2013 21:13:37 +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] Exynos5420: Alter UNCON and UFCON for 5420 Date: Mon, 02 Sep 2013 17:45:07 +0530 Message-id: <1378124111-26145-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.11.7 In-reply-to: <1378124111-26145-1-git-send-email-rajeshwari.s@samsung.com> References: <1378124111-26145-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrMLMWRmVeSWpSXmKPExsWyRsSkSvdjg0qQwe+3ahan/jxmtHi4/iaL RceRFkaLKYe/sFh827KN0WL5643sFm/3drI7sHvMbrjI4rFgU6nHnWt72DzO3tnB6NG3ZRVj AGsUl01Kak5mWWqRvl0CV8a9d3tZCr5wVkzbso+xgbGLo4uRg0NCwERi11TeLkZOIFNM4sK9 9WwgtpDAUkaJA13REHETiSlTXrJAxKczSqxsl+li5AKyu5gkJs9oYAGZwwZUtPFEAkiNiICE xK/+q4wgNrPAAkaJCf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8uOLSnNS iw8xJgNdNZFZSjQ5HxjfeSXxhsYm5qbGppYmFiZmlqQJK4nzHmi1DhQSSE8sSc1OTS1ILYLZ wsTBKdXAeGRt/wIR/sad21T8/TlNZnhP3C23cYrXMavX6lNyHq2VOMbkWVcRnvp7U5bO0c4w oR1LvxZprXF19NKt/8rwjT/o2HXOey7tiyzulKnzXU70iX5zw8ddaa3a6seTcy61zJujXnk8 ecVq/ljnimALheDOatHc0see62OvrXpzz5VhxgRZ4zO9SizFGYmGWsxFxYkA3iwhBuUCAAA= 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.51 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 --- 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);