From patchwork Thu Jun 6 11:01:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2679041 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id AF82DDF23A for ; Thu, 6 Jun 2013 11:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932594Ab3FFLDU (ORCPT ); Thu, 6 Jun 2013 07:03:20 -0400 Received: from mail-pb0-f50.google.com ([209.85.160.50]:47029 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932561Ab3FFLDT (ORCPT ); Thu, 6 Jun 2013 07:03:19 -0400 Received: by mail-pb0-f50.google.com with SMTP id wy17so3123522pbc.37 for ; Thu, 06 Jun 2013 04:03:19 -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=Noa+rfAvsjVRES3i2zMwY+Y/1qNuXFPtLJvihiPh1oyBDG1PDm0w+B+SmFMvBLLhz1 OAr35aboO0MdaLvy9jwKV8x2NRIopCJk8sy5gH7wuw4EjH/BBUyMQu9IQ8VhgPzVAe3W ubjfgP91jUFhWJVlcUI3XUxajff2ocAmCITehpbS/bd8ycfuB3FlDNW1+d5TvZtTVVQ8 bfpdPi/hfrMF/0Mnqq26S8Nrifft+gD31UQtF/tLrX02t28x6pdt0g8cmR78Pb2Q0c1r Yxa4Dl/z6RihXQ6UAn08W//ayjBrj6Ovkc2xm8nByn0+zBJ0RgpQVsK+WyuXpLT4hp0H IQdQ== X-Received: by 10.68.175.33 with SMTP id bx1mr31285392pbc.21.1370516599203; Thu, 06 Jun 2013 04:03:19 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id qh4sm77248213pac.8.2013.06.06.04.03.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 04:03:18 -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, thomas.ab@samsung.com, Chander Kashyap Subject: [PATCH 12/13] ARM: Exynos: add secondary CPU boot base location for Exynos5420 Date: Thu, 6 Jun 2013 16:31:26 +0530 Message-Id: <1370516488-25860-12-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370516488-25860-1-git-send-email-chander.kashyap@linaro.org> References: <1370516488-25860-1-git-send-email-chander.kashyap@linaro.org> X-Gm-Message-State: ALoCoQm9xO53vRPLV7WAMAXcaKUD1RqUR4OfDuDK+mViiFVxd9BjBk3xxyE6SGLWIAYmN7+0LwNi Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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; }