From: Pete P. <pp...@pa...> - 2001-07-06 00:58:33
|
One of the things I would like to add to the mips tree is generic pci code. Jun recently ported the PPC pci_auto.c and pci.c code to one of the DDB NEC boards. Now I've taken that code and made it mips generic. I've tested it on one mips board so far; I will soon have it tested on a couple of more boards.The code has two components: pci_auto.c and pci.c. The pci_auto (if enabled) scans the bus(es) and assigns all the resources. Thus, you don't need boot code to do that anymore. This code has been tested pretty well on PPC on some pretty complex CPCI systems with multiple P2P bridges and devices behind the bridges. pci.c is the second part and that's just generic pci handling code that all boards should be able to use. We've modified the code somewhat from the PPC and it certainly needs a lot of testing. However, it's only enabled in arch/mips/config.in for boards that are tested so other boards can take their time moving over to this code. I think this code is badly needed in the mips tree because right now every board is doing its own pci thing. Add to that different boot codes on different boards which don't necessarily initialize the bus correctly, and you've got a real mess. Comments? Pete |