From 3ccedd259cc3e78666514881b37466a8b977b0d8 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Mon, 5 Aug 2024 10:33:20 +0800 Subject: [PATCH 1/2] riscv: defconfig: sophgo: enable clks for sg2042 Enable clk generators for sg2042 due to many peripherals rely on these clocks. Signed-off-by: Chen Wang Signed-off-by: Conor Dooley --- arch/riscv/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 0d678325444f..d43a028909e5 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -249,6 +249,9 @@ CONFIG_VIRTIO_BALLOON=y CONFIG_VIRTIO_INPUT=y CONFIG_VIRTIO_MMIO=y CONFIG_CLK_SOPHGO_CV1800=y +CONFIG_CLK_SOPHGO_SG2042_PLL=y +CONFIG_CLK_SOPHGO_SG2042_CLKGEN=y +CONFIG_CLK_SOPHGO_SG2042_RPGATE=y CONFIG_SUN8I_DE2_CCU=m CONFIG_RENESAS_OSTM=y CONFIG_SUN50I_IOMMU=y From 72160ec6cb12613663f26d89049b95f8dc9fa000 Mon Sep 17 00:00:00 2001 From: Inochi Amaoto Date: Fri, 30 Aug 2024 16:57:38 +0800 Subject: [PATCH 2/2] riscv: defconfig: Enable pinctrl support for CV18XX Series SoC Enable pinctrl driver for the whole CV18XX series. Signed-off-by: Inochi Amaoto Signed-off-by: Conor Dooley --- arch/riscv/configs/defconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index d43a028909e5..ee978cc74673 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -167,6 +167,10 @@ CONFIG_SPI_RSPI=m CONFIG_SPI_SIFIVE=y CONFIG_SPI_SUN6I=y # CONFIG_PTP_1588_CLOCK is not set +CONFIG_PINCTRL_SOPHGO_CV1800B=y +CONFIG_PINCTRL_SOPHGO_CV1812H=y +CONFIG_PINCTRL_SOPHGO_SG2000=y +CONFIG_PINCTRL_SOPHGO_SG2002=y CONFIG_GPIO_SIFIVE=y CONFIG_POWER_RESET_GPIO_RESTART=y CONFIG_SENSORS_SFCTEMP=m