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: 2696321 Return-Path: X-Original-To: patchwork-linux-sh@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 1FE03DF264 for ; Mon, 10 Jun 2013 09:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752980Ab3FJJMh (ORCPT ); Mon, 10 Jun 2013 05:12:37 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:33497 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752898Ab3FJJMh (ORCPT ); Mon, 10 Jun 2013 05:12:37 -0400 Received: by mail-pa0-f47.google.com with SMTP id kl14so959555pab.20 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 Cc: arnd@arndb.de, horms@verge.net.au, laurent.pinchart@ideasonboard.com, olof@lixom.net, Magnus Damm , linux-arm-kernel@lists.infradead.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 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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);