From: Paul M. <pm...@mv...> - 2001-07-06 01:29:29
|
On Thu, Jul 05, 2001 at 05:57:17PM -0700, Pete Popov wrote: > One of the things I would like to add to the mips tree is generic pci= =20 > code. Jun recently ported the PPC pci_auto.c and pci.c code to one of=20 > the DDB NEC boards. Now I've taken that code and made it mips generic.= =20 > I've tested it on one mips board so far; I will soon have it tested on= =20 > a couple of more boards.The code has two components: pci_auto.c and=20 > pci.c. The pci_auto (if enabled) scans the bus(es) and assigns all the= =20 > resources. Thus, you don't need boot code to do that anymore. This code= =20 > has been tested pretty well on PPC on some pretty complex CPCI systems=20 > with multiple P2P bridges and devices behind the bridges. pci.c is the= =20 > second part and that's just generic pci handling code that all boards=20 > should be able to use. >=20 > We've modified the code somewhat from the PPC and it certainly needs a=20 > lot of testing. However, it's only enabled in arch/mips/config.in for=20 > boards that are tested so other boards can take their time moving over=20 > to this code. I think this code is badly needed in the mips tree=20 > because right now every board is doing its own pci thing. Add to that=20 > different boot codes on different boards which don't necessarily=20 > initialize the bus correctly, and you've got a real mess. >=20 Very nice! Speaking of supported boards.. have you had a chance to test it out on the ITE IT8172? If not, I'll give it a try tomorrow and let you know my results. Regards, --=20 Paul Mundt <pm...@mv...> MontaVista Software, Inc. |