From patchwork Wed May 11 05:29:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 9064991 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A8808BF29F for ; Wed, 11 May 2016 05:31:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BC0920172 for ; Wed, 11 May 2016 05:31:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 599F42015A for ; Wed, 11 May 2016 05:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751413AbcEKFb0 (ORCPT ); Wed, 11 May 2016 01:31:26 -0400 Received: from smtp6-v.fe.bosch.de ([139.15.237.11]:12986 "EHLO smtp6-v.fe.bosch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751315AbcEKFbY (ORCPT ); Wed, 11 May 2016 01:31:24 -0400 Received: from vsmta14.fe.internet.bosch.com (unknown [10.4.98.54]) by imta23.fe.bosch.de (Postfix) with ESMTP id 88A8415801DC for ; Wed, 11 May 2016 07:31:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1462944683; bh=icFWhIfoJDNnmwaL+dfFAXk///0PFS4A/c4xu/CT9nk=; l=10; h=From:From:Reply-To:Sender; b=WVy1xWT9JwtxTncPoapsLEwl20ItTMOsmOJjQu6G8f/vk3DgHYhKisV3vD6GejXzl b48Z7F4nIZHAVUPt4gVoRshHTmuozykkm+VPqVtsLPeorVQgDWtP2aBdVmPISEy38D EYVrFVy8QIyD7NMeJk56zqKjP1GbqX8g2YtkwRwA= Received: from FE-HUB1001.de.bosch.com (vsgw22.fe.internet.bosch.com [10.4.98.11]) by vsmta14.fe.internet.bosch.com (Postfix) with ESMTP id 2FC0DA4023E for ; Wed, 11 May 2016 07:31:23 +0200 (CEST) Received: from hi-z08if.hi.de.bosch.com (10.34.209.31) by FE-HUB1001.de.bosch.com (10.4.103.109) with Microsoft SMTP Server id 14.3.195.1; Wed, 11 May 2016 07:31:22 +0200 Received: from hi-z08if.hi.de.bosch.com (localhost [127.0.0.1]) by hi-z08if.hi.de.bosch.com (Postfix) with ESMTP id 4F0BF625E9B; Wed, 11 May 2016 07:29:41 +0200 (CEST) From: Dirk Behme To: Geert Uytterhoeven , Simon Horman , CC: Dirk Behme Subject: [PATCH v2 07/10] arm: renesas: rcar-gen3: Make boot-mode-reg Gen3 compatible Date: Wed, 11 May 2016 07:29:35 +0200 Message-ID: <1462944578-1220-8-git-send-email-dirk.behme@de.bosch.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1462944578-1220-1-git-send-email-dirk.behme@de.bosch.com> References: <1462944578-1220-1-git-send-email-dirk.behme@de.bosch.com> MIME-Version: 1.0 X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.0.0.1202-22312.006 X-TMASE-MatchedRID: MFGjWhwUm9vUu3synNQKJC0x8J2DopENUAjrAJWsTe/7efdnqtsaEy3Q IhRPfdP23ddVwwA/NBc+q7jcdyxMRpw1Vo16+J2xA9lly13c/gEEQ0vfPT1i5c1BktqFyMixQGI +MyqGpNvi8zVgXoAltsIJ+4gwXrEtWBd6ltyXuvt9M2ztqyD3gKtTvLu17HIvIm+6/o6CbfqN6/ OnqL1sfgoOUAZa83on5QUkUDChuwAJZpkfDRWXy9aLXOXvfnx9Sa7vZAZpeaVcKRK3DM/KmiQGd l1tQI7t0/5HQxvVB1U0+aGhUx8J2j4fwUoXsAKYftwZ3X11IV0= Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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: Dirk Behme The boot mode register is available on Renesas Gen3, too. Use the same driver on Gen3 as on Gen2. Signed-off-by: Dirk Behme --- arch/arm64/Kconfig.platforms | 1 + drivers/misc/boot-mode-reg/rcar.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index fda93a2..591ab8f 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -106,6 +106,7 @@ config ARCH_SHMOBILE config ARCH_RENESAS bool "Renesas SoC Platforms" select ARCH_SHMOBILE + select BOOT_MODE_REG_RCAR select PINCTRL select PM select PM_GENERIC_DOMAINS diff --git a/drivers/misc/boot-mode-reg/rcar.c b/drivers/misc/boot-mode-reg/rcar.c index c3b778fe..e994980 100644 --- a/drivers/misc/boot-mode-reg/rcar.c +++ b/drivers/misc/boot-mode-reg/rcar.c @@ -48,7 +48,9 @@ int __init rcar_init_boot_mode(void) of_machine_is_compatible("renesas,r8a7791") || of_machine_is_compatible("renesas,r8a7792") || of_machine_is_compatible("renesas,r8a7793") || - of_machine_is_compatible("renesas,r8a7794")) + of_machine_is_compatible("renesas,r8a7794") || + of_machine_is_compatible("renesas,r8a7795") || + of_machine_is_compatible("renesas,r8a7796")) return rcar_read_mode_pins(); return 0;