#include "pci-sh7751.h"
static unsigned int pci_probe = PCI_PROBE_CONF1;
-extern int pci_fixup_pcic(void);
/*
* Direct access to PCI hardware...
}
/*
- * Since SH7751 only does 32bit access we'll have to do a read,
- * mask,write operation.
+ * Since SH7751 only does 32bit access we'll have to do a read,mask,write operation.
* We'll allow an odd byte offset, though it should be illegal.
*/
static int sh7751_pci_write(struct pci_bus *bus, unsigned int devfn,
* Handle bus scanning and fixups ....
*/
-#if !defined(CONFIG_SH_HS7751RVOIP) && !defined(CONFIG_SH_RTS7751R2D)
static void __init pci_fixup_ide_bases(struct pci_dev *d)
{
int i;
}
}
}
-#endif
+
/* Add future fixups here... */
struct pci_fixup pcibios_fixups[] = {
-#if !defined(CONFIG_SH_HS7751RVOIP) && !defined(CONFIG_SH_RTS7751R2D)
{ PCI_FIXUP_HEADER, PCI_ANY_ID, PCI_ANY_ID, pci_fixup_ide_bases },
-#endif
{ 0 }
};
outl(word, PCI_REG(SH7751_PCICLKR));
/*
- * This code is unused for some boards as it is done in the
- * bootloader and doing it here means the MAC addresses loaded
- * by the bootloader get lost.
+ * XXX: This code is unused for the SnapGear boards as it is done in
+ * the bootloader and doing it here means the MAC addresses loaded by
+ * the bootloader get lost.
*/
- if (!(map->flags & SH7751_PCIC_NO_RESET)) {
- /* toggle PCI reset pin */
- word = SH7751_PCICR_PREFIX | SH7751_PCICR_PRST;
- outl(word,PCI_REG(SH7751_PCICR));
- /* Wait for a long time... not 1 sec. but long enough */
- mdelay(100);
- word = SH7751_PCICR_PREFIX;
- outl(word,PCI_REG(SH7751_PCICR));
- }
+#ifndef CONFIG_SH_SECUREEDGE5410
+ /* toggle PCI reset pin */
+ word = SH7751_PCICR_PREFIX | SH7751_PCICR_PRST;
+ outl(word,PCI_REG(SH7751_PCICR));
+ /* Wait for a long time... not 1 sec. but long enough */
+ mdelay(100);
+ word = SH7751_PCICR_PREFIX;
+ outl(word,PCI_REG(SH7751_PCICR));
+#endif
/* set the command/status bits to:
* Wait Cycle Control + Parity Enable + Bus Master +
* DMA interrupts...
*/
-#ifdef CONFIG_SH_RTS7751R2D
- pci_fixup_pcic();
-#endif
-
/* SH7751 init done, set central function init complete */
/* use round robin mode to stop a device starving/overruning */
word = SH7751_PCICR_PREFIX | SH7751_PCICR_CFIN | SH7751_PCICR_ARBM;