OSDN Git Service

soc: renesas: Kconfig: For ARCH_R9A07G043 select the required configs if dependencies...
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 1 Sep 2023 11:09:36 +0000 (12:09 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 8 Sep 2023 18:25:29 +0000 (11:25 -0700)
To prevent randconfig build issues when enabling the RZ/Five SoC, consider
selecting specific configurations only when their dependencies are
satisfied.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308311610.ec6bm2G8-lkp@intel.com/
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fixes: 484861e09f3e ("soc: renesas: Kconfig: Select the required configs for RZ/Five SoC")
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20230901110936.313171-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
drivers/soc/renesas/Kconfig

index 67604f2..5a75ab6 100644 (file)
@@ -334,10 +334,11 @@ if RISCV
 config ARCH_R9A07G043
        bool "RISC-V Platform support for RZ/Five"
        select ARCH_RZG2L
-       select AX45MP_L2_CACHE
+       select AX45MP_L2_CACHE if RISCV_DMA_NONCOHERENT
        select DMA_GLOBAL_POOL
-       select ERRATA_ANDES
-       select ERRATA_ANDES_CMO
+       select ERRATA_ANDES if RISCV_SBI
+       select ERRATA_ANDES_CMO if ERRATA_ANDES
+
        help
          This enables support for the Renesas RZ/Five SoC.