summaryrefslogtreecommitdiffstats
path: root/drivers/pci_auto.c
diff options
context:
space:
mode:
authorPeter Pearse <peter.pearse@arm.com>2007-09-07 13:26:51 +0100
committerPeter Pearse <peter.pearse@arm.com>2007-09-07 13:26:51 +0100
commit470ffef72cf565c4db59352c23bd06cbfb763128 (patch)
tree8f175868f568e7f535436407f72f56198928ea7e /drivers/pci_auto.c
parent80767a6cead9990d9e77e62be947843c2c72f469 (diff)
parenta89cbbd27a60e6740772000fd0688ffba1c2576a (diff)
downloadblackbird-obmc-uboot-470ffef72cf565c4db59352c23bd06cbfb763128.tar.gz
blackbird-obmc-uboot-470ffef72cf565c4db59352c23bd06cbfb763128.zip
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'drivers/pci_auto.c')
-rw-r--r--drivers/pci_auto.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/pci_auto.c b/drivers/pci_auto.c
index 2378553be5..acfda83ba5 100644
--- a/drivers/pci_auto.c
+++ b/drivers/pci_auto.c
@@ -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);
}
OpenPOWER on IntegriCloud