soc: renesas: Identify RZ/G2H
authorMarian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Tue, 7 Jul 2020 16:18:01 +0000 (17:18 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 13 Jul 2020 08:34:41 +0000 (10:34 +0200)
This patch adds support for identifying the RZ/G2H (r8a774e1) SoC.

Signed-off-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/1594138692-16816-2-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/soc/renesas/renesas-soc.c

index 35dba8b..f815a6a 100644 (file)
@@ -126,6 +126,11 @@ static const struct renesas_soc soc_rz_g2e __initconst __maybe_unused = {
        .id     = 0x57,
 };
 
+static const struct renesas_soc soc_rz_g2h __initconst __maybe_unused = {
+       .family = &fam_rzg2,
+       .id     = 0x4f,
+};
+
 static const struct renesas_soc soc_rcar_m1a __initconst __maybe_unused = {
        .family = &fam_rcar_gen1,
 };
@@ -238,6 +243,9 @@ static const struct of_device_id renesas_socs[] __initconst = {
 #ifdef CONFIG_ARCH_R8A774C0
        { .compatible = "renesas,r8a774c0",     .data = &soc_rz_g2e },
 #endif
+#ifdef CONFIG_ARCH_R8A774E1
+       { .compatible = "renesas,r8a774e1",     .data = &soc_rz_g2h },
+#endif
 #ifdef CONFIG_ARCH_R8A7778
        { .compatible = "renesas,r8a7778",      .data = &soc_rcar_m1a },
 #endif