
Siflower SF21A6826/SF21H8898 are a family of RISC-V SoCs with: * Quad-core T-Head C908 (1.125G for SF21A6826, 1.25G for SF21H8898) * DDR3/DDR4 memory controller * 1 QSGMII 4x1G * 1 SGMII/2500Base-X 2.5G * 1 additional RGMII on SF21H8898 * Network offloading engine for L2 switching and L3 NAT * 2 PCIE Gen2 lanes, operating in either one PCIE Gen2x2 or two PCIE Gen2x1 mode * 1 USB2.0 Link: https://github.com/openwrt/openwrt/pull/17115 Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
From: Chuanhong Guo <gch981213@gmail.com>
|
|
Date: Fri, 29 Nov 2024 16:34:49 +0800
|
|
Subject: [PATCH 18/20] pci: dw-pcie add support for sf21 pcie
|
|
|
|
Add support for the PCIE controller found on Siflower SF21A6826
|
|
and SF21H8898.
|
|
|
|
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
|
|
---
|
|
drivers/pci/controller/dwc/Kconfig | 9 +++++++++
|
|
drivers/pci/controller/dwc/Makefile | 1 +
|
|
2 files changed, 10 insertions(+)
|
|
|
|
--- a/drivers/pci/controller/dwc/Kconfig
|
|
+++ b/drivers/pci/controller/dwc/Kconfig
|
|
@@ -317,6 +317,15 @@ config PCIE_FU740
|
|
Say Y here if you want PCIe controller support for the SiFive
|
|
FU740.
|
|
|
|
+config PCIE_SF21
|
|
+ bool "Siflower SF21A6826/SF21H8898 PCIe controller"
|
|
+ depends on ARCH_SIFLOWER || COMPILE_TEST
|
|
+ depends on PCI_MSI
|
|
+ select PCIE_DW_HOST
|
|
+ help
|
|
+ Say Y here to enable support of the Siflower SF21A6826/SF21H8898
|
|
+ PCIe controller.
|
|
+
|
|
config PCIE_UNIPHIER
|
|
bool "Socionext UniPhier PCIe controller (host mode)"
|
|
depends on ARCH_UNIPHIER || COMPILE_TEST
|
|
--- a/drivers/pci/controller/dwc/Makefile
|
|
+++ b/drivers/pci/controller/dwc/Makefile
|
|
@@ -22,6 +22,7 @@ obj-$(CONFIG_PCIE_KEEMBAY) += pcie-keemb
|
|
obj-$(CONFIG_PCIE_KIRIN) += pcie-kirin.o
|
|
obj-$(CONFIG_PCIE_HISI_STB) += pcie-histb.o
|
|
obj-$(CONFIG_PCI_MESON) += pci-meson.o
|
|
+obj-$(CONFIG_PCIE_SF21) += pcie-sf21.o
|
|
obj-$(CONFIG_PCIE_TEGRA194) += pcie-tegra194.o
|
|
obj-$(CONFIG_PCIE_UNIPHIER) += pcie-uniphier.o
|
|
obj-$(CONFIG_PCIE_UNIPHIER_EP) += pcie-uniphier-ep.o
|