From patchwork Thu Aug 28 03:35:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 4792501 Return-Path: X-Original-To: patchwork-linux-sh@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 A2AFBC0338 for ; Thu, 28 Aug 2014 03:32:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D1F2720158 for ; Thu, 28 Aug 2014 03:32:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 031F3200F3 for ; Thu, 28 Aug 2014 03:32:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755918AbaH1Dcv (ORCPT ); Wed, 27 Aug 2014 23:32:51 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:37093 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751086AbaH1Dcv (ORCPT ); Wed, 27 Aug 2014 23:32:51 -0400 Received: by mail-pa0-f50.google.com with SMTP id kq14so727771pab.9 for ; Wed, 27 Aug 2014 20:32:51 -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=YxjhFGbq7IqzapMb/0w8rvgQILsVUIbWw360ozDNXEg=; b=Hq6vHjY2EXl3uPFiHDVwqUOH+Z0bmhuycj24xrTZWYu1KZXEPGZvHNMhfpvwsLplEt Db0wNUuYOEujtJaYFRiw+F3hdmQGn0euE0By4XKMd7UZhaDwC6oDCOkTgQdzj5hTgP3n p6O99clPdyjxZU2VBVEYaQdMnlWcNHQEQMJ4KyGJDPP0Badf4alHObVX9BsEE0reafjF cVci8kKAAtFk7ibfp1G5rj2hcIBpIKSgkvsGy//PhLl0noL24oKl32kyh0icSdl9BqF3 nMD5EZFH9cgn745y4jFGhHR50HiNwJ1bUI604UUXcrpdVXz6ev2um5nKF+k+vsQK5dMv WTLA== X-Received: by 10.70.131.12 with SMTP id oi12mr1745707pdb.116.1409196770978; Wed, 27 Aug 2014 20:32:50 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id ov5sm1912739pbc.85.2014.08.27.20.32.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Aug 2014 20:32:49 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , horms@verge.net.au Date: Thu, 28 Aug 2014 12:35:09 +0900 Message-Id: <20140828033509.18867.72827.sendpatchset@w520> In-Reply-To: <20140828033443.18867.55162.sendpatchset@w520> References: <20140828033443.18867.55162.sendpatchset@w520> Subject: [PATCH 03/05] ARM: shmobile: r8a7740: Add restart callback Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Magnus Damm Port the r8a7740 restart handling from the Armadillo code to the r8a7740 generic multiplatform case. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/setup-r8a7740.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 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/setup-r8a7740.c +++ work/arch/arm/mach-shmobile/setup-r8a7740.c 2014-08-27 18:40:36.000000000 +0900 @@ -823,6 +823,13 @@ static void __init r8a7740_generic_init( of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } +#define RESCNT2 IOMEM(0xe6188020) +static void r8a7740_restart(enum reboot_mode mode, const char *cmd) +{ + /* Do soft power on reset */ + writel(1 << 31, RESCNT2); +} + static const char *r8a7740_boards_compat_dt[] __initdata = { "renesas,r8a7740", NULL, @@ -835,6 +842,7 @@ DT_MACHINE_START(R8A7740_DT, "Generic R8 .init_machine = r8a7740_generic_init, .init_late = shmobile_init_late, .dt_compat = r8a7740_boards_compat_dt, + .restart = r8a7740_restart, MACHINE_END #endif /* CONFIG_USE_OF */