Skip to contentSkip to conversation

pci: ftpci100: add new driver implementation

PATCH In review Sergei Antonov 2 participants 2 messages Jul 30, 2023 – Aug 15, 2023 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pci: ftpci100: add new driver implementation

Add a new DM driver supporting FTPCI100 IP used in SoC designs. This implementation is not based on the old non-DM ftpci100 code dropped from U-Boot.

Enable the driver in sandbox_defconfig to test compilability.

---
 configs/sandbox_defconfig  |  1 +
 drivers/pci/Kconfig        |  6 +++
 drivers/pci/Makefile       |  1 +
 drivers/pci/pci_ftpci100.c | 95 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 103 insertions(+)
 create mode 100644 drivers/pci/pci_ftpci100.c
configs/sandbox_defconfig +1 -0
index b6c4f735f2bd..c8538d4a193c 100644
@@ -233,6 +233,7 @@ CONFIG_MUX_MMIO=y
 CONFIG_NVME_PCI=y
 CONFIG_PCI_REGION_MULTI_ENTRY=y
 CONFIG_PCI_SANDBOX=y
+CONFIG_PCI_FTPCI100=y
 CONFIG_PHY=y
 CONFIG_PHY_SANDBOX=y
 CONFIG_PINCTRL=y
drivers/pci/Kconfig +6 -0
index aca439d92139..f0678921e99d 100644
@@ -125,6 +125,12 @@ config PCIE_APPLE
 	  Say Y here if you want to enable PCIe controller support on
 	  Apple SoCs.
 
+config PCI_FTPCI100
+	bool "Enable Faraday FTPCI100 PCI Bridge Controller driver"
+	help
+	  Say Y here if you want to enable Faraday FTPCI100 PCI.
+	  FTPCI100 IP is used in SoC chip designs.
+
 config PCI_GT64120
 	bool "GT64120 PCI support"
 	depends on MIPS
drivers/pci/Makefile +1 -0
index 11f60c6991d9..033dce98a4e1 100644
@@ -14,6 +14,7 @@ obj-$(CONFIG_PCI) += pci_auto_common.o pci_common.o
 obj-$(CONFIG_PCIE_ECAM_GENERIC) += pcie_ecam_generic.o
 obj-$(CONFIG_PCIE_ECAM_SYNQUACER) += pcie_ecam_synquacer.o
 obj-$(CONFIG_PCIE_APPLE) += pcie_apple.o
+obj-$(CONFIG_PCI_FTPCI100) += pci_ftpci100.o
 obj-$(CONFIG_PCI_GT64120) += pci_gt64120.o
 obj-$(CONFIG_PCI_MPC85XX) += pci_mpc85xx.o
 obj-$(CONFIG_PCI_MSC01) += pci_msc01.o
drivers/pci/pci_ftpci100.c new file +95 -0

95 lines not on this page · raw message

Signature · 1 line
2.37.2
#1 lore raw
Quoted 7 lines · Sergei Antonov

Add a new DM driver supporting FTPCI100 IP used in SoC designs. This implementation is not based on the old non-DM ftpci100 code dropped from U-Boot.

Enable the driver in sandbox_defconfig to test compilability.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom