barebox PCI support
antonynpavlov at gmail.com
Tue Jul 5 06:19:13 EDT 2011
Qemu can emulate PCI bus, so i decided to add PCI support for qemu-malta board.
I have found that current barebox has no pci support (only one ppc
board has references
to PCI, but there is no common PCI code). Also I found the PCI-related
tasks in the end of TODO file in barebox.git.
Getting PCI support from current linux kernel is not so easy, so, I
got some parts of
lowlevel PCI support from linux-2.6.39 and PCI scan bus function from
very old linux-2.2.
I have disabled any bridging support. Also I didn't get pci resources
(PBARs) reconfiguration code.
My code can register GT64120 PCI controller, scan devices on PCI0 bus
and make chained list of found devices. There is lspci command to show
the chained list.
This is very very draft code.
Please review it or state you consideration on PCI support in barebox.
More information about the barebox