PCI: dwc: eswin: proposal for a separate EGC-series driver
Hello PCI maintainers,
ESWIN Computing is preparing support for a new EGC series of SoCs. The PCIe controllers in these SoCs are still based on the Synopsys DesignWare core, but the SoC integration around the core differs considerably from the EIC7700 controller supported by drivers/pci/controller/dwc/pcie-eswin.c. Reusing the existing driver would require a large amount of per-SoC conditional code, so we would prefer to keep the new support in a separate driver.
Before posting the full series, could you confirm the preferred upstream structure?
a) Add a new host-only driver in drivers/pci/controller/dwc/pcie-eswin-egc.c, with a separate CONFIG_PCIE_ESWIN_EGC Kconfig symbol and Makefile entry, while reusing the common DesignWare host code.
b) Extend pcie-eswin.c with additional of_device_id data and per-SoC operations, so that a single ESWIN driver covers both controller generations.
If (a) is acceptable, is pcie-eswin-egc.c the preferred file name? The differences from EIC7700 are at the SoC-integration level rather than in the DesignWare core programming; a detailed list will be included in the cover letter of the full series.
We will follow up with the driver, the DT binding and the MAINTAINERS update as a complete series once the direction is agreed.
Thanks,
Donghui Zhao