fix hanging PCI memory writes

This commit is contained in:
Markus Fröschle
2021-01-08 13:37:10 +01:00
parent ab430fd97b
commit d868021f86
2 changed files with 3 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
// Add predefined macros for your project here. For example:
// #define THE_ANSWER 42
#define MACHINE_FIREBEE
//#define MACHINE_FIREBEE
#define MACHINE_M5484LITE

View File

@@ -974,7 +974,7 @@ static void pci_bridge_config(uint16_t bus, uint16_t device, uint16_t function)
pci_write_config_longword(handle, PCIBISTR, MCF_PCI_PCICR1_CACHELINESIZE(8) |
MCF_PCI_PCICR1_LATTIMER(0x20));
pci_write_config_longword(handle, PCIBAR0, swpl(0x80000000));
pci_write_config_longword(handle, PCIBAR0, swpl(0x00000000));
pci_write_config_longword(handle, PCIBAR1, 0x0);
pci_write_config_word(handle, PCI_LANESWAP_W(PCICR), swpw(
(1 << 1) /* memory space */