From patchwork Tue Jun 18 06:29:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2738991 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 01D08C0AB1 for ; Tue, 18 Jun 2013 06:30:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E4982025B for ; Tue, 18 Jun 2013 06:30:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DBF92015C for ; Tue, 18 Jun 2013 06:30:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752827Ab3FRGaS (ORCPT ); Tue, 18 Jun 2013 02:30:18 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:34726 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280Ab3FRGaR (ORCPT ); Tue, 18 Jun 2013 02:30:17 -0400 Received: by mail-pd0-f170.google.com with SMTP id x11so3591830pdj.15 for ; Mon, 17 Jun 2013 23:30:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=m55OpEeLw//or5BKheQglWKmsxb3tKRlGFrFLFSInOI=; b=cO/QWbNQ3tR0EzwNWiywKGJeCB2i6YvH7z4h612AWGR1g+UX5pMuPph2dgdIpF5nAR S7MOKfM8Rhmx0u0hCBJUebemtM0GYrHK5OqvTvGMJ7yFGY3VomSOT0Cm3NZrZGsd5sPx lOrjgZYNdwX7ufApjWrqHK6xTH/IZEwGS4r6IcUmzhNpjIL2aU2iJBVIy9hcOD/LFFj8 h03GK5qBDRrhP4v/FYuA/CLQSIegSAsTaUkH7uPb4QhAiG9zgZc4k3Bsi+uD2m8MzQYv elVf+hdH4FNOkCjOwO2XblIZWpXPMPVftCGyQMskhjRNduk8KMBdBYP8jy5WD9LyBob3 fMNA== X-Received: by 10.66.231.7 with SMTP id tc7mr804565pac.143.1371537017150; Mon, 17 Jun 2013 23:30:17 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id ep3sm7967227pbd.27.2013.06.17.23.30.13 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 23:30:16 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, kgene.kim@samsung.com, t.figa@samsung.com, s.nawrocki@samsung.com, mark.rutland@arm.com, thomas.ab@samsung.com, Chander Kashyap Subject: [PATCH v4 09/10] ARM: Exynos: add secondary CPU boot base location for Exynos5420 Date: Tue, 18 Jun 2013 11:59:21 +0530 Message-Id: <1371536962-13322-10-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371536962-13322-1-git-send-email-chander.kashyap@linaro.org> References: <1371536962-13322-1-git-send-email-chander.kashyap@linaro.org> X-Gm-Message-State: ALoCoQkFcNtQy+ge5X9MkoPg0Xif78ljIkbT5TmkQIfK3LRW+3WRMEttjS5u7zvcaDotlDBSjirm Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The location at which the boot address is specified for secondary CPUs of Exynos5420 is SYSRAM base + 4. Update the cpu_boot_reg function accordingly. Signed-off-by: Chander Kashyap Reviewed-by: Tomasz Figa --- arch/arm/mach-exynos/platsmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 85ea4ca..7b4c03e 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -50,6 +50,8 @@ static inline void __iomem *cpu_boot_reg(int cpu) boot_reg = cpu_boot_reg_base(); if (soc_is_exynos4412()) boot_reg += 4*cpu; + else if (soc_is_exynos5420()) + boot_reg += 4; return boot_reg; }