soc: sifive: ccache: Add StarFive JH7110 support
authorEmil Renner Berthing <kernel@esmil.dk>
Tue, 5 Apr 2022 22:38:05 +0000 (00:38 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 31 Jan 2023 15:43:41 +0000 (16:43 +0100)
This adds support for the StarFive JH7110 SoC which also
features this SiFive cache controller.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
arch/riscv/Kconfig.socs
drivers/soc/Makefile
drivers/soc/sifive/Kconfig
drivers/soc/sifive/sifive_ccache.c

index 69774bb..5a40e05 100644 (file)
@@ -22,6 +22,7 @@ config SOC_STARFIVE
        bool "StarFive SoCs"
        select PINCTRL
        select RESET_CONTROLLER
+       select SIFIVE_CCACHE
        select SIFIVE_PLIC
        help
          This enables support for StarFive SoC platform hardware.
index 69ba650..5346698 100644 (file)
@@ -26,7 +26,7 @@ obj-y                         += qcom/
 obj-y                          += renesas/
 obj-y                          += rockchip/
 obj-$(CONFIG_SOC_SAMSUNG)      += samsung/
-obj-$(CONFIG_SOC_SIFIVE)       += sifive/
+obj-y                          += sifive/
 obj-y                          += sunxi/
 obj-$(CONFIG_ARCH_TEGRA)       += tegra/
 obj-y                          += ti/
index ed4c571..e86870b 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
-if SOC_SIFIVE
+if SOC_SIFIVE || SOC_STARFIVE
 
 config SIFIVE_CCACHE
        bool "Sifive Composable Cache controller"
index 3684f5b..c3022e0 100644 (file)
@@ -107,6 +107,7 @@ static const struct of_device_id sifive_ccache_ids[] = {
        { .compatible = "sifive,fu540-c000-ccache" },
        { .compatible = "sifive,fu740-c000-ccache" },
        { .compatible = "sifive,ccache0" },
+       { .compatible = "starfive,jh7110-ccache" },
        { /* end of table */ }
 };