|
@@ -28,6 +28,11 @@
|
|
|
|
|
|
#define PCIAUTO_IDE_MODE_MASK 0x05
|
|
|
|
|
|
+/* the user can define CFG_PCI_CACHE_LINE_SIZE to avoid problems */
|
|
|
+#ifndef CFG_PCI_CACHE_LINE_SIZE
|
|
|
+#define CFG_PCI_CACHE_LINE_SIZE 8
|
|
|
+#endif
|
|
|
+
|
|
|
/*
|
|
|
*
|
|
|
*/
|
|
@@ -150,7 +155,8 @@ void pciauto_setup_device(struct pci_controller *hose,
|
|
|
}
|
|
|
|
|
|
pci_hose_write_config_dword(hose, dev, PCI_COMMAND, cmdstat);
|
|
|
- pci_hose_write_config_byte(hose, dev, PCI_CACHE_LINE_SIZE, 0x08);
|
|
|
+ pci_hose_write_config_byte(hose, dev, PCI_CACHE_LINE_SIZE,
|
|
|
+ CFG_PCI_CACHE_LINE_SIZE);
|
|
|
pci_hose_write_config_byte(hose, dev, PCI_LATENCY_TIMER, 0x80);
|
|
|
}
|
|
|
|