From patchwork Mon Jun 17 11:00:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2732701 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AD8EE9F39E for ; Mon, 17 Jun 2013 11:01:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0720120266 for ; Mon, 17 Jun 2013 11:01:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D77D20271 for ; Mon, 17 Jun 2013 11:01:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932732Ab3FQLBc (ORCPT ); Mon, 17 Jun 2013 07:01:32 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:33317 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932674Ab3FQLBc (ORCPT ); Mon, 17 Jun 2013 07:01:32 -0400 Received: by mail-pd0-f177.google.com with SMTP id p10so2673871pdj.36 for ; Mon, 17 Jun 2013 04:01:31 -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=2zdmPxNTgKkM9Oo42oQR4wooHl8PIacBwVy/4GN02uo=; b=IqxVn8u7GDmhNw4FHg5VBt+8IU/VX2em9MUVisF8rn1aHTY84rcdNiRm6DMU5Uw3nE f3eg1G6wBKAR5PC11fXoM3p8HtNlENqkJIkBz3sgHmQef6y4P1nLMJw7n3HnXW85ftXu WxAdWNN/wIhfp6xqGDIYpCSYDTcoUWX4tV6bYFrzyqa8oJWpWRYNDmUAHSIjw2y70umF 9TtLKv/6PnDgOvrFHONFNl7mIiywaTfIPktAje2kYiWTq5w+wT6kC4dj66SzhW8zeyVb Gc+H60OsTDxU393w0EN6H14cNmEFLUx7ipYGhQVy4mwu7Sy27afqb64zmUTtBn3O/b2Z jbaQ== X-Received: by 10.68.163.97 with SMTP id yh1mr12693568pbb.33.1371466891717; Mon, 17 Jun 2013 04:01:31 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id ep3sm4547645pbd.27.2013.06.17.04.01.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Jun 2013 04:01:31 -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 v3 09/10] ARM: Exynos: add secondary CPU boot base location for Exynos5420 Date: Mon, 17 Jun 2013 16:30:34 +0530 Message-Id: <1371466836-4111-10-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371466836-4111-1-git-send-email-chander.kashyap@linaro.org> References: <1371466836-4111-1-git-send-email-chander.kashyap@linaro.org> X-Gm-Message-State: ALoCoQlZ8k2juPVrWOefku/6xitYHJYmwG90Q3gF/mQ/4VmNiAcaHXkP4AAyKxWHHF+foQyWJBv4 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.0 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 --- 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; }