mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
PCI: cadence: Add module support for platform controller driver
Add support for building PCI cadence platforms as a module. Signed-off-by: Manikandan K Pillai <mpillai@cadence.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20251108140305.1120117-2-hans.zhang@cixtech.com
This commit is contained in:
parent
3a86608788
commit
611627a4e5
|
|
@ -19,10 +19,10 @@ config PCIE_CADENCE_EP
|
||||||
select PCIE_CADENCE
|
select PCIE_CADENCE
|
||||||
|
|
||||||
config PCIE_CADENCE_PLAT
|
config PCIE_CADENCE_PLAT
|
||||||
bool
|
tristate
|
||||||
|
|
||||||
config PCIE_CADENCE_PLAT_HOST
|
config PCIE_CADENCE_PLAT_HOST
|
||||||
bool "Cadence platform PCIe controller (host mode)"
|
tristate "Cadence platform PCIe controller (host mode)"
|
||||||
depends on OF
|
depends on OF
|
||||||
select PCIE_CADENCE_HOST
|
select PCIE_CADENCE_HOST
|
||||||
select PCIE_CADENCE_PLAT
|
select PCIE_CADENCE_PLAT
|
||||||
|
|
@ -32,7 +32,7 @@ config PCIE_CADENCE_PLAT_HOST
|
||||||
vendors SoCs.
|
vendors SoCs.
|
||||||
|
|
||||||
config PCIE_CADENCE_PLAT_EP
|
config PCIE_CADENCE_PLAT_EP
|
||||||
bool "Cadence platform PCIe controller (endpoint mode)"
|
tristate "Cadence platform PCIe controller (endpoint mode)"
|
||||||
depends on OF
|
depends on OF
|
||||||
depends on PCI_ENDPOINT
|
depends on PCI_ENDPOINT
|
||||||
select PCIE_CADENCE_EP
|
select PCIE_CADENCE_EP
|
||||||
|
|
|
||||||
|
|
@ -177,4 +177,7 @@ static struct platform_driver cdns_plat_pcie_driver = {
|
||||||
.probe = cdns_plat_pcie_probe,
|
.probe = cdns_plat_pcie_probe,
|
||||||
.shutdown = cdns_plat_pcie_shutdown,
|
.shutdown = cdns_plat_pcie_shutdown,
|
||||||
};
|
};
|
||||||
builtin_platform_driver(cdns_plat_pcie_driver);
|
module_platform_driver(cdns_plat_pcie_driver);
|
||||||
|
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
MODULE_DESCRIPTION("Cadence PCIe controller platform driver");
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,7 @@ const struct dev_pm_ops cdns_pcie_pm_ops = {
|
||||||
NOIRQ_SYSTEM_SLEEP_PM_OPS(cdns_pcie_suspend_noirq,
|
NOIRQ_SYSTEM_SLEEP_PM_OPS(cdns_pcie_suspend_noirq,
|
||||||
cdns_pcie_resume_noirq)
|
cdns_pcie_resume_noirq)
|
||||||
};
|
};
|
||||||
|
EXPORT_SYMBOL_GPL(cdns_pcie_pm_ops);
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
MODULE_DESCRIPTION("Cadence PCIe controller driver");
|
MODULE_DESCRIPTION("Cadence PCIe controller driver");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user