From patchwork Mon May 9 07:13:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 9041661 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-renesas-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 490959FB96 for ; Mon, 9 May 2016 07:15:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AFAC22011B for ; Mon, 9 May 2016 07:15:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7CBB320145 for ; Mon, 9 May 2016 07:15:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750864AbcEIHPq (ORCPT ); Mon, 9 May 2016 03:15:46 -0400 Received: from smtp6-v.fe.bosch.de ([139.15.237.11]:57394 "EHLO smtp6-v.fe.bosch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751393AbcEIHPo (ORCPT ); Mon, 9 May 2016 03:15:44 -0400 Received: from vsmta13.fe.internet.bosch.com (unknown [10.4.98.53]) by imta24.fe.bosch.de (Postfix) with ESMTP id 1FC8ED80204 for ; Mon, 9 May 2016 09:15:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1462778143; bh=icFWhIfoJDNnmwaL+dfFAXk///0PFS4A/c4xu/CT9nk=; l=10; h=From:From:Reply-To:Sender; b=qdiZ6HZbq7xiTTifrjtTy/hQLuGwyFGauhADd8jLhFePmCrivKJyDS8RP4N7xjjxn SP1fTzRZu3alpp6bReRS2RzL4tTQDjoK9jzX3zf3/H+AbduKYSGRDSjjHlckscAnHq vFTWve6PRiiXqNAbbx2jdTfwoCahAzHJYhGFRc0Y= Received: from SI-HUB1001.de.bosch.com (vsgw22.fe.internet.bosch.com [10.4.98.11]) by vsmta13.fe.internet.bosch.com (Postfix) with ESMTP id CF4BF2E403FF for ; Mon, 9 May 2016 09:15:42 +0200 (CEST) Received: from hi-z08if.hi.de.bosch.com (10.34.209.31) by SI-HUB1001.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 14.3.195.1; Mon, 9 May 2016 09:15:40 +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 91325625E93; Mon, 9 May 2016 09:14:03 +0200 (CEST) From: Dirk Behme To: Geert Uytterhoeven , Simon Horman , CC: Dirk Behme Subject: [PATCH 07/10] arm: renesas: rcar-gen3: Make boot-mode-reg Gen3 compatible Date: Mon, 9 May 2016 09:13:58 +0200 Message-ID: <1462778041-19595-8-git-send-email-dirk.behme@de.bosch.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1462778041-19595-1-git-send-email-dirk.behme@de.bosch.com> References: <1462778041-19595-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-22308.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.9 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;