soc: renesas: Identify R-Car S4-8
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 1 Dec 2021 07:33:01 +0000 (16:33 +0900)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 7 Dec 2021 15:47:54 +0000 (16:47 +0100)
Add support for identifying the R-Car S4-8 (R8A779F0) SoC.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20211201073308.1003945-8-yoshihiro.shimoda.uh@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/soc/renesas/Kconfig
drivers/soc/renesas/renesas-soc.c

index 59a4106a66e98ab47defcba08c3d5bc6d61f2f28..2cbd03db2cc719ec24b2e6854795a3097173c406 100644 (file)
@@ -235,6 +235,13 @@ config ARCH_R8A77961
          This enables support for the Renesas R-Car M3-W+ SoC.
          This includes different gradings like R-Car M3e and M3e-2G.
 
+config ARCH_R8A779F0
+       bool "ARM64 Platform support for R-Car S4-8"
+       select ARCH_RCAR_GEN3
+       select SYSC_R8A779F0
+       help
+         This enables support for the Renesas R-Car S4-8 SoC.
+
 config ARCH_R8A77980
        bool "ARM64 Platform support for R-Car V3H"
        select ARCH_RCAR_GEN3
index dff90f5049632b0eea07b68055379f0f624cb637..62540ffc581a4a602724e36b60848ce40f906227 100644 (file)
@@ -33,6 +33,10 @@ static const struct renesas_family fam_rcar_gen3 __initconst __maybe_unused = {
        .reg    = 0xfff00044,           /* PRR (Product Register) */
 };
 
+static const struct renesas_family fam_rcar_gen4 __initconst __maybe_unused = {
+       .name   = "R-Car Gen4",
+};
+
 static const struct renesas_family fam_rmobile __initconst __maybe_unused = {
        .name   = "R-Mobile",
        .reg    = 0xe600101c,           /* CCCR (Common Chip Code Register) */
@@ -214,6 +218,11 @@ static const struct renesas_soc soc_rcar_v3u __initconst __maybe_unused = {
        .id     = 0x59,
 };
 
+static const struct renesas_soc soc_rcar_s4 __initconst __maybe_unused = {
+       .family = &fam_rcar_gen4,
+       .id     = 0x5a,
+};
+
 static const struct renesas_soc soc_shmobile_ag5 __initconst __maybe_unused = {
        .family = &fam_shmobile,
        .id     = 0x37,
@@ -319,6 +328,9 @@ static const struct of_device_id renesas_socs[] __initconst = {
 #ifdef CONFIG_ARCH_R8A779A0
        { .compatible = "renesas,r8a779a0",     .data = &soc_rcar_v3u },
 #endif
+#ifdef CONFIG_ARCH_R8A779F0
+       { .compatible = "renesas,r8a779f0",     .data = &soc_rcar_s4 },
+#endif
 #if defined(CONFIG_ARCH_R9A07G044)
        { .compatible = "renesas,r9a07g044",    .data = &soc_rz_g2l },
 #endif