mb/siemens/mc_apl{1,2,3,5,6}: Use PCI_ALLOW_BUS_MASTER_ANY_DEVICE
Use the Kconfig switch PCI_ALLOW_BUS_MASTER_ANY_DEVICE instead of PCI_ALLOW_BUS_MASTER to enable PCIe bus master bit as requested in CB:56441 during review. Change-Id: I433dbae0d9b15e41d1d0750298868341ce3d6b46 Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56502 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mario Scheithauer <mario.scheithauer@siemens.com>
This commit is contained in:
parent
35e1fca8f2
commit
e8fc8f31b4
|
@ -216,7 +216,7 @@ static void mainboard_final(void *chip_info)
|
||||||
variant_mainboard_final();
|
variant_mainboard_final();
|
||||||
|
|
||||||
/* Set Master Enable for on-board PCI device if allowed. */
|
/* Set Master Enable for on-board PCI device if allowed. */
|
||||||
if (CONFIG(PCI_ALLOW_BUS_MASTER)) {
|
if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE)) {
|
||||||
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403f, 0);
|
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403f, 0);
|
||||||
if (dev) {
|
if (dev) {
|
||||||
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
||||||
|
|
|
@ -10,7 +10,7 @@ void variant_mainboard_final(void)
|
||||||
{
|
{
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
|
||||||
if (CONFIG(PCI_ALLOW_BUS_MASTER)) {
|
if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE)) {
|
||||||
/* Set Master Enable for on-board PCI device if allowed. */
|
/* Set Master Enable for on-board PCI device if allowed. */
|
||||||
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
||||||
if (dev) {
|
if (dev) {
|
||||||
|
|
|
@ -39,7 +39,7 @@ void variant_mainboard_final(void)
|
||||||
/* Set Master Enable for on-board PCI device if allowed. */
|
/* Set Master Enable for on-board PCI device if allowed. */
|
||||||
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
||||||
if (dev) {
|
if (dev) {
|
||||||
if (CONFIG(PCI_ALLOW_BUS_MASTER))
|
if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE))
|
||||||
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
||||||
|
|
||||||
/* Disable clock outputs 0 and 2-4 (CLKOUT) for upstream
|
/* Disable clock outputs 0 and 2-4 (CLKOUT) for upstream
|
||||||
|
|
|
@ -46,7 +46,7 @@ void variant_mainboard_final(void)
|
||||||
/* Set Master Enable for on-board PCI device if allowed. */
|
/* Set Master Enable for on-board PCI device if allowed. */
|
||||||
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
||||||
if (dev) {
|
if (dev) {
|
||||||
if (CONFIG(PCI_ALLOW_BUS_MASTER))
|
if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE))
|
||||||
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
||||||
|
|
||||||
/* Disable clock outputs 0-3 (CLKOUT) for upstream XIO2001 PCIe
|
/* Disable clock outputs 0-3 (CLKOUT) for upstream XIO2001 PCIe
|
||||||
|
|
|
@ -39,7 +39,7 @@ void variant_mainboard_final(void)
|
||||||
/* Set Master Enable for on-board PCI device if allowed. */
|
/* Set Master Enable for on-board PCI device if allowed. */
|
||||||
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
dev = dev_find_device(PCI_VENDOR_ID_SIEMENS, 0x403e, 0);
|
||||||
if (dev) {
|
if (dev) {
|
||||||
if (CONFIG(PCI_ALLOW_BUS_MASTER))
|
if (CONFIG(PCI_ALLOW_BUS_MASTER_ANY_DEVICE))
|
||||||
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER);
|
||||||
|
|
||||||
/* Disable clock outputs 0-3 (CLKOUT) for upstream
|
/* Disable clock outputs 0-3 (CLKOUT) for upstream
|
||||||
|
|
Loading…
Reference in New Issue