From patchwork Mon Jun 10 09:20:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2696931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 7A7E63FD4E for ; Mon, 10 Jun 2013 11:06:58 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UlyCH-0002Ts-1z; Mon, 10 Jun 2013 09:15:35 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uly9u-0004xW-Uo; Mon, 10 Jun 2013 09:13:02 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uly9q-0004tv-7Z for linux-arm-kernel@lists.infradead.org; Mon, 10 Jun 2013 09:12:59 +0000 Received: by mail-pa0-f53.google.com with SMTP id tj12so2473464pac.12 for ; Mon, 10 Jun 2013 02:12:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=TGPxjnSzXtxrJMZmYmbTHcAcO0y8GI931OyawQQiZsc=; b=j2ZzyX20PkQLNZsr5WI272VN04ffxdfE7hdFttL7l9f9/n8NBsOL+5icmEBaikC4OD gblhFkhgZVSiAyd0pOE3Bjq61+/9RbwSvqmSnOAcWzDAN4RTagBbLBU756MPdBBvk3q0 /DuCdp/b/0UhxuJlS5dP++Enif4I5XtUdlLCjReDeBuygUSbKv22Cnoo+O7yuEgHovoH f/L3y73n3vZC+KdQmJIP5h5fZU9LfJ/ufVNlz4NpE4ZeCuYrLbTRTDqpkKh7/BJ1Dqff 8SZmujeA6ILvcsLwwiIVw824u2IXFG6p7poMuI6vPPqpFsVpssSNVgAlq38DlmrSDllw xcQA== X-Received: by 10.66.102.97 with SMTP id fn1mr13181510pab.116.1370855556695; Mon, 10 Jun 2013 02:12:36 -0700 (PDT) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id k3sm9764883pbc.23.2013.06.10.02.12.33 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 02:12:35 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Mon, 10 Jun 2013 18:20:06 +0900 Message-Id: <20130610092006.18944.71343.sendpatchset@w520> In-Reply-To: <20130610091925.18944.68117.sendpatchset@w520> References: <20130610091925.18944.68117.sendpatchset@w520> Subject: [PATCH 04/06] ARM: shmobile: sh73a0 SMP with SCU boot fn and args X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130610_051258_405074_C6DF3BDC X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (magnus.damm[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: arnd@arndb.de, Magnus Damm , horms@verge.net.au, laurent.pinchart@ideasonboard.com, olof@lixom.net, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Magnus Damm Let sh73a0 make use of shmobile_boot_fn and shmobile_boot_arg together with shmobile_boot_scu and the SCU base address. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/smp-sh73a0.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- 0001/arch/arm/mach-shmobile/smp-sh73a0.c +++ work/arch/arm/mach-shmobile/smp-sh73a0.c 2013-06-05 14:59:24.000000000 +0900 @@ -64,9 +64,11 @@ static void __init sh73a0_smp_prepare_cp { scu_enable(shmobile_scu_base); - /* Map the reset vector (in headsmp-scu.S) */ + /* Map the reset vector (in headsmp-scu.S, headsmp.S) */ __raw_writel(0, APARMBAREA); /* 4k */ - __raw_writel(__pa(shmobile_secondary_vector_scu), SBAR); + __raw_writel(__pa(shmobile_boot_vector), SBAR); + shmobile_boot_fn = virt_to_phys(shmobile_boot_scu); + shmobile_boot_arg = (unsigned long)shmobile_scu_base; /* enable cache coherency on booting CPU */ scu_power_mode(shmobile_scu_base, SCU_PM_NORMAL);