From 3d9fa08bf128ecef5aa795c04443f1cd9a76603d Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 7 Sep 2020 13:57:49 +0200 Subject: device: Rework bus master option As an intermediate step for CB:45150, add an additional Kconfig option which is used to configure bus mastering for any devices and use PCI_ALLOW_BUS_MASTER to allow coreboot setting the bus mastering bit in general. Change-Id: I33b37a79022007a16e97350db61575b63fa8256b Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/45149 Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- src/device/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/device') diff --git a/src/device/Kconfig b/src/device/Kconfig index cbe970f170..777f3f50d3 100644 --- a/src/device/Kconfig +++ b/src/device/Kconfig @@ -532,6 +532,17 @@ config PCI_ALLOW_BUS_MASTER instance, for libpayload based payloads as the drivers don't enable bus mastering for PCI bridges. +if PCI_ALLOW_BUS_MASTER + +config PCI_ALLOW_BUS_MASTER_ANY_DEVICE + bool "Any devices" + default y + help + Allow coreboot to enable PCI bus mastering for any device. The actual + selection of devices depends on the various PCI drivers in coreboot. + +endif # PCI_ALLOW_BUS_MASTER + endif # PCI if PCIEXP_PLUGIN_SUPPORT -- cgit v1.2.3