From patchwork Wed May 28 04:13:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 31029 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f71.google.com (mail-pb0-f71.google.com [209.85.160.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BAEA82066E for ; Wed, 28 May 2014 04:15:28 +0000 (UTC) Received: by mail-pb0-f71.google.com with SMTP id jt11sf49002142pbb.6 for ; Tue, 27 May 2014 21:15:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Pz4OO+YUOgwNU3/Nvi6qpfbV6cFd9SXCMmwpddXF1gk=; b=eMM2dJtutA+9WgVvorMlcpsA/tvg3cDJdwCteRgePL3+pTwTsxvkbrqGa0iTsmI70i X6U0rcrbP5g8iDtqgNWV2u92W3yRquq6DIhJZgH/HHRnGY7QLazL7D6HD4InJUpNIprY Ki5Z3uuoPi0ijiNSF9sVs47M4Gk82E61DjgFJEwFjzzhLsgVI65L0wuH5y79n8Fh8gAy /nnzcFoKbmqXCDR2FRNsHXfUR0c+gbakyr7O2gFdwWv+lgqz533J3xs8HuAqfzSA/S4o qJPXOgoMVdgwkTKZPlprAfJhMaLSFCdbKYnovvPv3bZnFcZFT1X+PhNDOOAeIP7ylOOw HQlA== X-Gm-Message-State: ALoCoQnrU/6g7BL6JSRNkl2HODxHduVkvanes4dK/5Tv4szax/hni+pS/QYdjP/Vn5F4Ey99K3Wv X-Received: by 10.66.122.137 with SMTP id ls9mr16183212pab.17.1401250527718; Tue, 27 May 2014 21:15:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.171 with SMTP id 40ls3459544qgt.85.gmail; Tue, 27 May 2014 21:15:27 -0700 (PDT) X-Received: by 10.221.34.7 with SMTP id sq7mr31501314vcb.5.1401250527600; Tue, 27 May 2014 21:15:27 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id o5si9710613vcj.31.2014.05.27.21.15.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 21:15:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id hy4so11671400vcb.39 for ; Tue, 27 May 2014 21:15:27 -0700 (PDT) X-Received: by 10.52.241.98 with SMTP id wh2mr18816387vdc.37.1401250527358; Tue, 27 May 2014 21:15:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp170332vcb; Tue, 27 May 2014 21:15:26 -0700 (PDT) X-Received: by 10.68.189.137 with SMTP id gi9mr42553867pbc.79.1401250526391; Tue, 27 May 2014 21:15:26 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xp1si21895870pab.44.2014.05.27.21.15.25; Tue, 27 May 2014 21:15:25 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750775AbaE1EPZ (ORCPT + 9 others); Wed, 28 May 2014 00:15:25 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:44642 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbaE1EPY (ORCPT ); Wed, 28 May 2014 00:15:24 -0400 Received: by mail-pa0-f48.google.com with SMTP id rd3so10253347pab.7 for ; Tue, 27 May 2014 21:15:24 -0700 (PDT) X-Received: by 10.68.134.198 with SMTP id pm6mr42829240pbb.9.1401250524244; Tue, 27 May 2014 21:15:24 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id qb6sm82466228pac.12.2014.05.27.21.15.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 27 May 2014 21:15:23 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com, tushar.behera@linaro.org, sachin.kamat@linaro.org, tomasz.figa@gmail.com Subject: [PATCH v2 Resend 1/2] ARM: EXYNOS: Update secondary boot addr for secure mode Date: Wed, 28 May 2014 09:43:01 +0530 Message-Id: <1401250382-24046-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Almost all Exynos-series of SoCs that run in secure mode don't need additional offset for every CPU, with Exynos4412 being the only exception. Tested on Origen-Quad (Exynos4412) and Arndale-Octa (Exynos5420). While at it, fix the coding style (space around *). Signed-off-by: Sachin Kamat Signed-off-by: Tushar Behera Tested-by: Andreas Färber --- arch/arm/mach-exynos/firmware.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c index eb91d2350f8c..e8797bb78871 100644 --- a/arch/arm/mach-exynos/firmware.c +++ b/arch/arm/mach-exynos/firmware.c @@ -57,8 +57,13 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr) boot_reg = sysram_ns_base_addr + 0x1c; - if (!soc_is_exynos4212() && !soc_is_exynos3250()) - boot_reg += 4*cpu; + /* + * Almost all Exynos-series of SoCs that run in secure mode don't need + * additional offset for every CPU, with Exynos4412 being the only + * exception. + */ + if (soc_is_exynos4412()) + boot_reg += 4 * cpu; __raw_writel(boot_addr, boot_reg); return 0;