From patchwork Wed Sep 11 10:01:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 19942 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 0218225E63 for ; Wed, 11 Sep 2013 09:59:52 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l4sf8958759yen.6 for ; Wed, 11 Sep 2013 02:59:52 -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=euFb7k/XR5qP+Jq20p8VHsdxFYAT5QkCgMGcHYv/rUI=; b=T8MWdwmwuiv3LllBtid0rVPDoxHAry3l6ilocKE21DvZVpSUBLIxxuLMTd+ZiIiWHF y8QRLIhJ4xVnTAZg0tPI5Z+s5CJf6NCL/TfsV8Ozp2zMS0jdrxfwdwo4b7WtacWCCtkV jObJIfupcRvhRG0ENMyz2FBiTyfkfKPrJB+8iYYgL2Qz6nzOH2jlbTNlSg7B2KtYSbNN 4cTv23QJ/gbQ0XryoV1Fk1vSsTzXui5iyl/asWU292WBzPrSE9MhF0juZRWyfkxbwNAN qipWUiadTnqRH4cJ4Ofbq6clODW9Gt1XL8nUdn61XHQfjOoji39kuQ901oQeg8GOJpVl 3xPQ== X-Received: by 10.236.124.33 with SMTP id w21mr307053yhh.15.1378893592796; Wed, 11 Sep 2013 02:59:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.70.228 with SMTP id p4ls187531qeu.43.gmail; Wed, 11 Sep 2013 02:59:52 -0700 (PDT) X-Received: by 10.220.13.20 with SMTP id z20mr472534vcz.0.1378893592562; Wed, 11 Sep 2013 02:59:52 -0700 (PDT) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id c8si5765821vcq.63.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Sep 2013 02:59:52 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.41 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.41; Received: by mail-vb0-f41.google.com with SMTP id g17so6144568vbg.28 for ; Wed, 11 Sep 2013 02:59:52 -0700 (PDT) X-Gm-Message-State: ALoCoQkMHR8/MESwJYpFlvaUBN6z7sW71YNgfFzCLas6VeDpXs71bxRyLPJp1AK2Dhp4zkWFp/XX X-Received: by 10.52.114.231 with SMTP id jj7mr401054vdb.2.1378893592473; Wed, 11 Sep 2013 02:59:52 -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 u4csp47057vcz; Wed, 11 Sep 2013 02:59:51 -0700 (PDT) X-Received: by 10.68.191.72 with SMTP id gw8mr835927pbc.92.1378893591152; Wed, 11 Sep 2013 02:59:51 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id hb3si1617938pac.210.1969.12.31.16.00.00; Wed, 11 Sep 2013 02:59:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MSY00METH3PZ230@mailout1.samsung.com>; Wed, 11 Sep 2013 18:59:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id C6.AB.20109.51F30325; Wed, 11 Sep 2013 18:59:49 +0900 (KST) X-AuditID: cbfee68f-b7f1e6d000004e8d-66-52303f156d43 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D6.DD.05832.51F30325; Wed, 11 Sep 2013 18:59:49 +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:49 +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 05/12 V3] Exynos5420: Modify TZPC init to support 5420 Date: Wed, 11 Sep 2013 15:31:17 +0530 Message-id: <1378893684-27733-6-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+NgFmplkeLIzCtJLcpLzFFi42JZI2JSrStqbxBkcHuhpMWpP48ZLR7M28Zm 8XD9TRaLjiMtjBa7bk9msZhy+AuLxbct2xgtlr/eyG7xdm8nuwOnx7yfE5k8ZjdcZPFYsKnU 4861PWweZ+/sYPTo27KKMYAtissmJTUnsyy1SN8ugSujreUue0EvZ8XZvj1sDYzb2bsYOTkk BEwkjs25yAZhi0lcuLceyObiEBJYyiixdu4KVpiiB+8vQyWmM0pcPXiGCcLp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FTi4b0hpx8kxJpYVlyZe4hRgoNZSYT3 galBkBBvSmJlVWpRfnxRaU5q8SHGZKCrJjJLiSbnA+M/ryTe0NjE3NTY1NLEwsTMkjRhJXHe g63WgUIC6YklqdmpqQWpRTBbmDg4pRoY1yfd/uK9O3prRGiEt5XpX662NT2Nu5eKVulKWMVH n/7VcT2ljSP50+n+b+0bZnlPMteQTfjnuOohl2LXb/nwc9a7FZb/2vTNbnqByuZk1mXiM2uf n23+xylwqe23ZUNdZFHj65seHI+TxJgXsq6c/c7b1K1T+rmTqPD5RTeWbA4Q4F7WOcleiaU4 I9FQi7moOBEAZQt0u/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.212.41 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 Currently, part of TZPC init code for Exynos5 starts setting DECPROT from the base address 0x10100000 upto 0x10190000 but in case of Exynos5420 we need it to start from 0x0100E0000 and keep end address same as 0x10190000. Signed-off-by: Rajeshwari S Shinde Signed-off-by: Akshay Saraswat --- Changes in V2: - None Changes in V3: - None arch/arm/cpu/armv7/exynos/tzpc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/exynos/tzpc.c b/arch/arm/cpu/armv7/exynos/tzpc.c index 395077c..1102596 100644 --- a/arch/arm/cpu/armv7/exynos/tzpc.c +++ b/arch/arm/cpu/armv7/exynos/tzpc.c @@ -23,7 +23,12 @@ void tzpc_init(void) else if (cpu_is_exynos4()) end = start + ((EXYNOS4_NR_TZPC_BANKS - 1) * TZPC_BASE_OFFSET); - for (addr = start; addr <= end; addr += TZPC_BASE_OFFSET) { + if (proid_is_exynos5420()) + addr = start - 0x20000; + else + addr = start; + + for (; addr <= end; addr += TZPC_BASE_OFFSET) { tzpc = (struct exynos_tzpc *)addr; if (addr == start)