Skip to content

Commit

Permalink
Merge branch 'remotes/lorenzo/pci/meson'
Browse files Browse the repository at this point in the history
- Add pci-meson module support and enable by default on ARCH_MESON (Kevin
  Hilman)

* remotes/lorenzo/pci/meson:
  PCI: meson: Build as module by default
  • Loading branch information
bjorn-helgaas committed Oct 21, 2020
2 parents 1f287b5 + a98d218 commit 92f27db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/pci/controller/dwc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ config PCIE_HISI_STB
Say Y here if you want PCIe controller support on HiSilicon STB SoCs

config PCI_MESON
bool "MESON PCIe controller"
tristate "MESON PCIe controller"
depends on PCI_MSI_IRQ_DOMAIN
default m if ARCH_MESON
select PCIE_DW_HOST
help
Say Y here if you want to enable PCI controller support on Amlogic
Expand Down
8 changes: 7 additions & 1 deletion drivers/pci/controller/dwc/pci-meson.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <linux/resource.h>
#include <linux/types.h>
#include <linux/phy/phy.h>
#include <linux/module.h>

#include "pcie-designware.h"

Expand Down Expand Up @@ -507,6 +508,7 @@ static const struct of_device_id meson_pcie_of_match[] = {
},
{},
};
MODULE_DEVICE_TABLE(of, meson_pcie_of_match);

static struct platform_driver meson_pcie_driver = {
.probe = meson_pcie_probe,
Expand All @@ -516,4 +518,8 @@ static struct platform_driver meson_pcie_driver = {
},
};

builtin_platform_driver(meson_pcie_driver);
module_platform_driver(meson_pcie_driver);

MODULE_AUTHOR("Yue Wang <[email protected]>");
MODULE_DESCRIPTION("Amlogic PCIe Controller driver");
MODULE_LICENSE("GPL v2");

0 comments on commit 92f27db

Please sign in to comment.