devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert+renesas@glider.be>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: Eugeniu Rosca <erosca@de.adit-jv.com>,
	linux-renesas-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	Geert Uytterhoeven <geert+renesas@glider.be>
Subject: [PATCH v2 02/11] soc: renesas: Add ARCH_R8A77960 for existing R-Car M3-W
Date: Wed, 23 Oct 2019 14:33:33 +0200	[thread overview]
Message-ID: <20191023123342.13100-3-geert+renesas@glider.be> (raw)
In-Reply-To: <20191023123342.13100-1-geert+renesas@glider.be>

Add CONFIG_ARCH_R8A77960 as a new config symbol for R-Car M3-W
(R8A77960), to replace CONFIG_ARCH_R8A7796, and avoid confusion with
R-Car M3-W+ (R8A77961), which will use CONFIG_ARCH_R8A77961.

Note that for now, CONFIG_ARCH_R8A7796 is retained, and just selects
CONFIG_ARCH_R8A77960.  This relaxes dependencies of other subsystems on
the SoC configuration symbol, and provides a smooth transition path for
config files through "make oldconfig".

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
v2:
  - New.
---
 drivers/soc/renesas/Kconfig       | 8 ++++++--
 drivers/soc/renesas/renesas-soc.c | 2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/soc/renesas/Kconfig b/drivers/soc/renesas/Kconfig
index 328d7c409202e6a5..ce8e86a037d1d704 100644
--- a/drivers/soc/renesas/Kconfig
+++ b/drivers/soc/renesas/Kconfig
@@ -199,10 +199,14 @@ config ARCH_R8A7795
 	help
 	  This enables support for the Renesas R-Car H3 SoC.
 
-config ARCH_R8A7796
-	bool "Renesas R-Car M3-W SoC Platform"
+config ARCH_R8A77960
+	bool
 	select ARCH_RCAR_GEN3
 	select SYSC_R8A77960
+
+config ARCH_R8A7796
+	bool "Renesas R-Car M3-W SoC Platform"
+	select ARCH_R8A77960
 	help
 	  This enables support for the Renesas R-Car M3-W SoC.
 
diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c
index 45135bc88e277d34..319e47bb1d99cfcf 100644
--- a/drivers/soc/renesas/renesas-soc.c
+++ b/drivers/soc/renesas/renesas-soc.c
@@ -262,7 +262,7 @@ static const struct of_device_id renesas_socs[] __initconst = {
 #ifdef CONFIG_ARCH_R8A7795
 	{ .compatible = "renesas,r8a7795",	.data = &soc_rcar_h3 },
 #endif
-#ifdef CONFIG_ARCH_R8A7796
+#ifdef CONFIG_ARCH_R8A77960
 	{ .compatible = "renesas,r8a7796",	.data = &soc_rcar_m3_w },
 #endif
 #ifdef CONFIG_ARCH_R8A77965
-- 
2.17.1


  parent reply	other threads:[~2019-10-23 12:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 12:33 [PATCH v2 00/11] arm64: renesas: Add r8a77961 support Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH v2 01/11] soc: renesas: Rename SYSC_R8A7796 to SYSC_R8A77960 Geert Uytterhoeven
2019-10-25  2:47   ` Yoshihiro Shimoda
2019-10-23 12:33 ` Geert Uytterhoeven [this message]
2019-10-25  2:48   ` [PATCH v2 02/11] soc: renesas: Add ARCH_R8A77960 for existing R-Car M3-W Yoshihiro Shimoda
2019-10-23 12:33 ` [PATCH v2 03/11] soc: renesas: Add ARCH_R8A77961 for new R-Car M3-W+ Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH v2 04/11] soc: renesas: Identify " Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH v2 05/11] soc: renesas: rcar-rst: Add R8A77961 support Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH v2 06/11] soc: renesas: rcar-sysc: " Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH v2 07/11] arm64: dts: renesas: Prepare for rename of ARCH_R8A7796 to ARCH_R8A77960 Geert Uytterhoeven
2019-10-25  2:52   ` Yoshihiro Shimoda
2019-10-23 12:33 ` [PATCH v2 08/11] arm64: dts: renesas: Add Renesas R8A77961 SoC support Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH v2 09/11] arm64: dts: renesas: Add support for Salvator-XS with R-Car M3-W+ Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH v2 10/11] arm64: defconfig: Enable R8A77961 SoC Geert Uytterhoeven
2019-10-23 12:33 ` [PATCH/LOCAL v2 11/11] arm64: renesas_defconfig: " Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191023123342.13100-3-geert+renesas@glider.be \
    --to=geert+renesas@glider.be \
    --cc=devicetree@vger.kernel.org \
    --cc=erosca@de.adit-jv.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).