From patchwork Wed Sep 11 10:01:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 19946 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D1E325E63 for ; Wed, 11 Sep 2013 09:59:57 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l4sf8967081yen.10 for ; Wed, 11 Sep 2013 02:59:57 -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=BK4PkoY5CWW+2n/9tS6l9UIbGAIaYoYtniv/yUqo0Bs=; b=jR7BMPfggfq6+SqQIuZXU7ktmSb8u+i251uGP6AY/HZb//QeDtlREwhdtAoM0i1i30 o9uMHZE7m1mLjuR8TBnYf7FpmJ/T5KOh8+46d6ietkyWvkDWJUCZ9gHEQLZ/timycu2p oinvyiqmfimxv47Ggg09LkgyxggA+vHXBT3FAuFw6hEN1Lev/T1rAlLGIgtLDluEV8Ov hEWmYRqbS0NyZ+Q4pvts6EibBR24bAMxyLsEkuGqh4mBhwG4UNlWmT2fPDvLKUTpLFzz A34IYrkyjr7z5lyb4NcXfaRVSgwZtU0xinijnrFHFyE6ZmFhzLAR0rP8GIndWh2lIIsb yTPg== X-Received: by 10.236.41.100 with SMTP id g64mr307140yhb.31.1378893597176; Wed, 11 Sep 2013 02:59:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.14.106 with SMTP id o10ls172444qec.36.gmail; Wed, 11 Sep 2013 02:59:56 -0700 (PDT) X-Received: by 10.52.34.109 with SMTP id y13mr408136vdi.8.1378893596930; Wed, 11 Sep 2013 02:59:56 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id dh7si5758026vcb.113.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 02:59:56 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id cz12so5378474veb.4 for ; Wed, 11 Sep 2013 02:59:56 -0700 (PDT) X-Gm-Message-State: ALoCoQlA4QJFw6Chdz55Bz//mhtbEnueoqlYz9yPPKo3Nh993iDIqG1k+i9MmvTSIPxl/s+hA+AV X-Received: by 10.58.136.4 with SMTP id pw4mr474079veb.10.1378893596816; Wed, 11 Sep 2013 02:59:56 -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 u4csp47064vcz; Wed, 11 Sep 2013 02:59:56 -0700 (PDT) X-Received: by 10.66.221.8 with SMTP id qa8mr741800pac.188.1378893595329; Wed, 11 Sep 2013 02:59:55 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id ct5si20965640pbb.131.1969.12.31.16.00.00; Wed, 11 Sep 2013 02:59:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSY00MNVH3GV0R0@mailout4.samsung.com>; Wed, 11 Sep 2013 18:59:51 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 86.8A.29948.61F30325; Wed, 11 Sep 2013 18:59:50 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-7c-52303f16a21d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4A.A5.09055.61F30325; Wed, 11 Sep 2013 18:59:50 +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 <0MSY0040PH3CE280@mmp2.samsung.com>; Wed, 11 Sep 2013 18:59:50 +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, panto@antoniou-consulting.com, alim.akhtar@samsung.com, Akshay Saraswat Subject: [PATCH 06/12 V3] Exynos5420: Alter UNCON and UFCON for 5420 Date: Wed, 11 Sep 2013 15:31:18 +0530 Message-id: <1378893684-27733-7-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.11.7 In-reply-to: <1378893684-27733-1-git-send-email-rajeshwari.s@samsung.com> References: <1378893684-27733-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeLIzCtJLcpLzFFi42JZI2JSoytmbxBkMLPByuLUn8eMFg/mbWOz eLj+JotFx5EWRotdtyezWEw5/IXF4tuWbYwWy19vZLd4u7eT3YHTY97PiUwesxsusngs2FTq cefaHjaPs3d2MHr0bVnFGMAWxWWTkpqTWZZapG+XwJUx59InxoJlXBXde4waGNdwdDFyckgI mEhcfNPKAmGLSVy4t56ti5GLQ0hgKaPE0T9d7DBFT17MYIZITGeUuDvlPwuE08Uk8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ywOMQpwMCrx8N6Q0w8SYk0sK67MPcQowcGs JML7wNQgSIg3JbGyKrUoP76oNCe1+BBjMtBVE5mlRJPzgfGfVxJvaGxibmpsamliYWJmSZqw kjjvgVbrQCGB9MSS1OzU1ILUIpgtTBycUg2MHQcVerff7MyOdGrLXGuxybHJ56b+Lv5ujvsi DuuVljoquH2PWnfx4mQxaedIY7Mz++++3H+9J/q4/P/70xZW+0odlA/RP8p7fc/yF1XXTu1U uH7lisTWBmtjtQyJidmqj7UiVI9IC7/5lpXWODX/wT/zcu6FMq823l5a+S7fpe3K54IyN5kJ SizFGYmGWsxFxYkA1DelL/UCAAA= 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.128.173 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 Changes in V3: - 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);