]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
MPC5200: Set PCI retry counter to 0 = infinite retry;
authorWolfgang Denk <wd@pollux.(none)>
Fri, 16 Dec 2005 14:14:18 +0000 (15:14 +0100)
committerWolfgang Denk <wd@pollux.(none)>
Fri, 16 Dec 2005 14:14:18 +0000 (15:14 +0100)
The default of 255 is too short for slow devices.
Patch by Martin Nykodym, 12 Dec 2005

CHANGELOG
cpu/mpc5xxx/pci_mpc5200.c

index ac3be077d14a6c39a3aff439695ecd6bad1e7abb..16b7c550af44a05ba005092583089a7cce0aefd4 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,10 @@
 Changes for U-Boot 1.1.4:
 ======================================================================
 
+* MPC5200:  Set PCI retry counter to 0 = infinite retry;
+  The default of 255 is too short for slow devices.
+  Patch by Martin Nykodym, 12 Dec 2005
+
 * Change port configuration for O2DNT (CODEC1 on PSC1).
 
 * Fix register for PCI async mode on PPC440EP
index 2cfa11ce272e50e154dc42930a86679e83662dac..1d903459e0a746a39a9535cd3b13c830b61bf8a1 100644 (file)
@@ -145,7 +145,11 @@ void pci_mpc5xxx_init (struct pci_controller *hose)
 
        /* Disable interrupts from PCI controller */
        *(vu_long *)MPC5XXX_PCI_GSCR &= ~(7 << 12);
-       *(vu_long *)MPC5XXX_PCI_ICR &= ~(7 << 24);
+       *(vu_long *)MPC5XXX_PCI_ICR  &= ~(7 << 24);
+
+       /* Set PCI retry counter to 0 = infinite retry. */
+       /* The default of 255 is too short for slow devices. */
+       *(vu_long *)MPC5XXX_PCI_ICR &= 0xFFFFFF00;
 
        /* Disable initiator windows */
        *(vu_long *)MPC5XXX_PCI_IWCR = 0;