diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2015-12-21 15:05:07 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2015-12-21 15:05:07 +1000 |
commit | d3948f2ad3d7f43d88c8c56781960327cf828688 (patch) | |
tree | fed4534fbb0039a67416590173c43344c6ffb50e | |
parent | 8602cf10aca71d5af786ed9872a71786dc7faf05 (diff) | |
download | meta-xilinx-d3948f2ad3d7f43d88c8c56781960327cf828688.tar.gz |
linux/configs: Split PCIe drivers off from zynq7 config fragment
The PCIe drivers for the Xilinx AXI PCIe bridge are only available on
Zynq targets when have the soft core loaded, for all other targets this
driver is not required.
To optimized the kernel for general use make the PCIe driver a seperate
fragment which can be enabled by adding
'bsp/xilinx/soc/drivers/xilinx-pcie.scc' to KERNEL_FEATURES.
Also add to the config fragment the required kernel options to enable
PCI.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
3 files changed, 12 insertions, 3 deletions
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.cfg new file mode 100644 index 00000000..df88fce7 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.cfg | |||
@@ -0,0 +1,7 @@ | |||
1 | |||
2 | # PCIe | ||
3 | CONFIG_PCI=y | ||
4 | CONFIG_PCI_MSI=y | ||
5 | CONFIG_PCIEPORTBUS=y | ||
6 | CONFIG_PCIE_XILINX=y | ||
7 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.scc b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.scc new file mode 100644 index 00000000..8438b335 --- /dev/null +++ b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.scc | |||
@@ -0,0 +1,5 @@ | |||
1 | define KFEATURE_DESCRIPTION "Xilinx AXI PCIe Host Bridge" | ||
2 | define KFEATURE_COMPATIBILITY board | ||
3 | |||
4 | kconfig hardware xilinx-pcie.cfg | ||
5 | |||
diff --git a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/zynq7.cfg b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/zynq7.cfg index 78b6beab..6a554f81 100644 --- a/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/zynq7.cfg +++ b/recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/zynq7.cfg | |||
@@ -54,9 +54,6 @@ CONFIG_NOP_USB_XCEIV=y | |||
54 | CONFIG_USB_OTG=y | 54 | CONFIG_USB_OTG=y |
55 | CONFIG_USB_GADGET=y | 55 | CONFIG_USB_GADGET=y |
56 | 56 | ||
57 | # PCIe | ||
58 | CONFIG_PCIE_XILINX=y | ||
59 | |||
60 | # FPGA | 57 | # FPGA |
61 | CONFIG_FPGA=y | 58 | CONFIG_FPGA=y |
62 | CONFIG_FPGA_MGR_ZYNQ_FPGA=y | 59 | CONFIG_FPGA_MGR_ZYNQ_FPGA=y |