From patchwork Wed Jan 15 12:26:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3491681 Return-Path: X-Original-To: patchwork-linux-arm@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 36D3BC02DC for ; Wed, 15 Jan 2014 12:27:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 36EB520166 for ; Wed, 15 Jan 2014 12:27:21 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0BDA02016C for ; Wed, 15 Jan 2014 12:27:20 +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 1W3PXn-0006d1-Pd; Wed, 15 Jan 2014 12:26:04 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3PXS-0005bb-QN; Wed, 15 Jan 2014 12:25:42 +0000 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3PXI-0005Y5-12 for linux-arm-kernel@lists.infradead.org; Wed, 15 Jan 2014 12:25:33 +0000 Received: by mail-pa0-f52.google.com with SMTP id kx10so1083438pab.11 for ; Wed, 15 Jan 2014 04:25:09 -0800 (PST) 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=zkdRYaFmiqTatCfKrdq/5ZvDuwB8V6nukd7fg258GE8=; b=yLnaOzMzTtom8k2W4bSfEHiOCdBA0h5I9I4aFAPiBW3T2FTB6A7O512HQcNZHLbzqy EBdmEBfISx14/2Lvo3yp7wADSm2jUI/dGAQuhDEdtuztBRIudz/iO5S9e9XQ6+4FTGoP HAJX3wVhPXBM5AXl91kLmtctQwtrz4c9pVWX1nobmpoA/Efaz/EMplKg9ztVXS/DC8tN BdT6OnfpZ5FLTLPOvgv1Gvyg50W4o6noKhK4YGJouP97n+MGcW7a/awEMUeZS33X2XQl oHOcwwxKykWzkPmkG60q/yX+FhcoJ0HqcFlMaaOAhu215s8rkNgdnPNJe/rtTDUar+3X dZ6Q== X-Received: by 10.66.149.37 with SMTP id tx5mr2271419pab.81.1389788709814; Wed, 15 Jan 2014 04:25:09 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id zc5sm7779397pbc.41.2014.01.15.04.25.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jan 2014 04:25:08 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 15 Jan 2014 21:26:13 +0900 Message-Id: <20140115122613.9437.11213.sendpatchset@w520> In-Reply-To: <20140115122539.9437.63968.sendpatchset@w520> References: <20140115122539.9437.63968.sendpatchset@w520> Subject: [PATCH 03/04] ARM: shmobile: r8a7790 CA15-SCU enablement X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140115_072532_208384_DF018077 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: horms@verge.net.au, Magnus Damm , 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Keita Kobayashi Power on CA15 SCU in case of booting from a CA7 core. Signed-off-by: Keita Kobayashi [damm@opensource.se: Converted to use broken out SYSC code] Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/smp-r8a7790.c | 6 ++++++ 1 file changed, 6 insertions(+) --- 0004/arch/arm/mach-shmobile/smp-r8a7790.c +++ work/arch/arm/mach-shmobile/smp-r8a7790.c 2014-01-15 14:41:47.000000000 +0900 @@ -29,6 +29,11 @@ #define CA7RESCNT 0x0044 #define MERAM 0xe8080000 +static struct rcar_sysc_ch r8a7790_ca15_scu = { + .chan_offs = 0x180, /* PWRSR5 .. PWRER5 */ + .isr_bit = 12, /* CA15-SCU */ +}; + static struct rcar_sysc_ch r8a7790_ca7_scu = { .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */ .isr_bit = 21, /* CA7-SCU */ @@ -64,6 +69,7 @@ static void __init r8a7790_smp_prepare_c /* turn on power to SCU */ r8a7790_pm_init(); + rcar_sysc_power_up(&r8a7790_ca15_scu); rcar_sysc_power_up(&r8a7790_ca7_scu); }