From: Dirk Behme <dirk.be...@gmail.com>

The boot mode register is available on Renesas Gen3, too.
Use the same driver on Gen3 as on Gen2.

Signed-off-by: Dirk Behme <dirk.be...@gmail.com>
---
 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;
-- 
2.8.0

Reply via email to