[MIPS] IP27: misc fixes
- fix PCI interrupt assignment by emulating ioc3 interrupt pin register - use pci_probe_only mode - select correct page size in bridge - remove no longer needed ioc3_sio_init() code [Ralf: Fix for 64kB or larger pagesizes] Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
b32bb803fb
commit
96173a6c4e
@@ -161,27 +161,6 @@ cnodeid_t get_compact_nodeid(void)
|
||||
return NASID_TO_COMPACT_NODEID(get_nasid());
|
||||
}
|
||||
|
||||
/* Extracted from the IOC3 meta driver. FIXME. */
|
||||
static inline void ioc3_sio_init(void)
|
||||
{
|
||||
struct ioc3 *ioc3;
|
||||
nasid_t nid;
|
||||
long loops;
|
||||
|
||||
nid = get_nasid();
|
||||
ioc3 = (struct ioc3 *) KL_CONFIG_CH_CONS_INFO(nid)->memory_base;
|
||||
|
||||
ioc3->sscr_a = 0; /* PIO mode for uarta. */
|
||||
ioc3->sscr_b = 0; /* PIO mode for uartb. */
|
||||
ioc3->sio_iec = ~0;
|
||||
ioc3->sio_ies = (SIO_IR_SA_INT | SIO_IR_SB_INT);
|
||||
|
||||
loops=1000000; while(loops--);
|
||||
ioc3->sregs.uarta.iu_fcr = 0;
|
||||
ioc3->sregs.uartb.iu_fcr = 0;
|
||||
loops=1000000; while(loops--);
|
||||
}
|
||||
|
||||
static inline void ioc3_eth_init(void)
|
||||
{
|
||||
struct ioc3 *ioc3;
|
||||
@@ -234,7 +213,6 @@ void __init plat_mem_setup(void)
|
||||
panic("Kernel compiled for N mode.");
|
||||
#endif
|
||||
|
||||
ioc3_sio_init();
|
||||
ioc3_eth_init();
|
||||
per_cpu_init();
|
||||
|
||||
|
Reference in New Issue
Block a user