All of lore.kernel.org
 help / color / mirror / Atom feed
From: biju.das@bp.renesas.com (Biju Das)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH 04/18] soc: renesas: Identify RZ/G2M
Date: Thu, 21 Mar 2019 14:24:02 +0000	[thread overview]
Message-ID: <1553178256-6293-5-git-send-email-biju.das@bp.renesas.com> (raw)
In-Reply-To: <1553178256-6293-1-git-send-email-biju.das@bp.renesas.com>

This patch adds support for identifying the RZ/G2M (r8a774a1) SoC.
It corrects the original RZ/G SoC family name to RZ/G1 and also
adds support for the new RZ/G2 SoC family.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Chris Paterson <chris.paterson2@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
(cherry picked from commit 2a4056a759e26745f3a19431f5428c581fd8f347)
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 drivers/soc/renesas/renesas-soc.c | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c
index d44d0e6..5691618 100644
--- a/drivers/soc/renesas/renesas-soc.c
+++ b/drivers/soc/renesas/renesas-soc.c
@@ -50,11 +50,16 @@ static const struct renesas_family fam_rza __initconst __maybe_unused = {
 	.name	= "RZ/A",
 };
 
-static const struct renesas_family fam_rzg __initconst __maybe_unused = {
-	.name	= "RZ/G",
+static const struct renesas_family fam_rzg1 __initconst __maybe_unused = {
+	.name	= "RZ/G1",
 	.reg	= 0xff000044,		/* PRR (Product Register) */
 };
 
+static const struct renesas_family fam_rzg2 __initconst __maybe_unused = {
+	.name	= "RZ/G2",
+	.reg	= 0xfff00044,		/* PRR (Product Register) */
+};
+
 static const struct renesas_family fam_shmobile __initconst __maybe_unused = {
 	.name	= "SH-Mobile",
 	.reg	= 0xe600101c,		/* CCCR (Common Chip Code Register) */
@@ -81,30 +86,35 @@ static const struct renesas_soc soc_rmobile_a1 __initconst __maybe_unused = {
 };
 
 static const struct renesas_soc soc_rz_g1h __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x45,
 };
 
 static const struct renesas_soc soc_rz_g1m __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x47,
 };
 
 static const struct renesas_soc soc_rz_g1n __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x4b,
 };
 
 static const struct renesas_soc soc_rz_g1e __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x4c,
 };
 
 static const struct renesas_soc soc_rz_g1c __initconst __maybe_unused = {
-	.family	= &fam_rzg,
+	.family	= &fam_rzg1,
 	.id	= 0x53,
 };
 
+static const struct renesas_soc soc_rz_g2m __initconst __maybe_unused = {
+	.family	= &fam_rzg2,
+	.id	= 0x52,
+};
+
 static const struct renesas_soc soc_rcar_m1a __initconst __maybe_unused = {
 	.family	= &fam_rcar_gen1,
 };
@@ -205,6 +215,9 @@ static const struct of_device_id renesas_socs[] __initconst = {
 #ifdef CONFIG_ARCH_R8A77470
 	{ .compatible = "renesas,r8a77470",	.data = &soc_rz_g1c },
 #endif
+#ifdef CONFIG_ARCH_R8A774A1
+	{ .compatible = "renesas,r8a774a1",	.data = &soc_rz_g2m },
+#endif
 #ifdef CONFIG_ARCH_R8A7778
 	{ .compatible = "renesas,r8a7778",	.data = &soc_rcar_m1a },
 #endif
-- 
2.7.4

  parent reply	other threads:[~2019-03-21 14:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 14:23 [cip-dev] [PATCH 00/18] Add RZ/G2[ME] SoC Identification/SYSC/RST support Biju Das
2019-03-21 14:23 ` [cip-dev] [PATCH 01/18] dt-bindings: arm: Document RZ/G2M SoC DT bindings Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 02/18] dt-bindings: arm: Document RZ/G2E " Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 03/18] dt-bindings: arm: Fix RZ/G2E part number Biju Das
2019-03-21 14:24 ` Biju Das [this message]
2019-03-21 14:24 ` [cip-dev] [PATCH 05/18] soc: renesas: Identify RZ/G2E Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 06/18] arm64: Add Renesas R8A774A1 support Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 07/18] arm64: Add Renesas R8A774C0 support Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 08/18] arm64: defconfig: enable R8A774A1 SoC Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 09/18] arm64: defconfig: enable R8A774C0 SoC Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 10/18] dt-bindings: power: Add r8a774a1 SYSC power domain definitions Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 11/18] dt-bindings: power: Add r8a774c0 " Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 12/18] soc: renesas: rcar-sysc: Add r8a774a1 support Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 13/18] dt-bindings: power: rcar-sysc: Document r8a774c0 sysc Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 14/18] soc: renesas: rcar-sysc: Add r8a774c0 support Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 15/18] soc: renesas: r8a774c0-sysc: Fix initialization order of 3DG-{A, B} Biju Das
2019-04-09 19:49   ` Pavel Machek
2019-03-21 14:24 ` [cip-dev] [PATCH 16/18] soc: renesas: rcar-rst: Add support for RZ/G2M Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 17/18] dt-bindings: reset: rcar-rst: Document r8a774c0 rst Biju Das
2019-03-21 14:24 ` [cip-dev] [PATCH 18/18] soc: renesas: rcar-rst: Add support for RZ/G2E Biju Das

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=1553178256-6293-5-git-send-email-biju.das@bp.renesas.com \
    --to=biju.das@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.