]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: Allow PCI drivers to be used in SPL
authorSimon Glass <sjg@chromium.org>
Mon, 16 Jan 2017 14:03:30 +0000 (07:03 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 6 Feb 2017 03:38:46 +0000 (11:38 +0800)
Add a new Kconfig option to allow PCI drivers to be used in SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/spl/Kconfig
drivers/Makefile

index bf5339332fb27ba215d64f881048fc1c1de22381..b7e316f051044458204c89db008bedc15372f696 100644 (file)
@@ -435,6 +435,15 @@ config SYS_OS_BASE
 
 endif # SPL_OS_BOOT
 
+config SPL_PCI_SUPPORT
+       bool "Support PCI drivers"
+       depends on SPL
+       help
+         Enable support for PCI in SPL. For platforms that need PCI to boot,
+         or must perform some init using PCI in SPL, this provides the
+         necessary driver support. This enables the drivers in drivers/pci
+         as part of an SPL build.
+
 config SPL_POST_MEM_SUPPORT
        bool "Support POST drivers"
        depends on SPL
index 4ced2bbb6c520260c5e73d009a3b5a417c003afe..553577acad5a719cdd4cb5376d636a978098cfbc 100644 (file)
@@ -33,6 +33,7 @@ obj-$(CONFIG_SPL_DMA_SUPPORT) += dma/
 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
 obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
+obj-$(CONFIG_SPL_PCI_SUPPORT) += pci/
 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
 obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/
 obj-$(CONFIG_SPL_USB_GADGET_SUPPORT) += usb/gadget/udc/