From d3948f2ad3d7f43d88c8c56781960327cf828688 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Mon, 21 Dec 2015 15:05:07 +1000 Subject: 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 --- .../config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.cfg | 7 +++++++ .../config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.scc | 5 +++++ .../linux/config/xilinx-common/bsp/xilinx/soc/drivers/zynq7.cfg | 3 --- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.cfg create mode 100644 recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx-pcie.scc 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 @@ + +# PCIe +CONFIG_PCI=y +CONFIG_PCI_MSI=y +CONFIG_PCIEPORTBUS=y +CONFIG_PCIE_XILINX=y + 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 @@ +define KFEATURE_DESCRIPTION "Xilinx AXI PCIe Host Bridge" +define KFEATURE_COMPATIBILITY board + +kconfig hardware xilinx-pcie.cfg + 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 CONFIG_USB_OTG=y CONFIG_USB_GADGET=y -# PCIe -CONFIG_PCIE_XILINX=y - # FPGA CONFIG_FPGA=y CONFIG_FPGA_MGR_ZYNQ_FPGA=y -- cgit v1.2.3-54-g00ecf