Author: Alexander Graf <alex@csgraf.de>

Expose PCI controller information

Linux tries to detect which PCI controller it's supposed to work with.
On PPC32 there is fallback code that doesn't get compiled with
CONFIG_PPC64, so we really have to expose a controller or we don't have
pci config space accessor functions.

Let's expose a un3-agp if we have a mac99 model, as that's what is
supposed to be in there anyways.

Signed-off-by: Alexander Graf <alex@csgraf.de>
Signed-off-by: Laurent Vivier <Laurent@vivier.eu>



git-svn-id: svn://coreboot.org/openbios/openbios-devel@466 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Alexander Graf
2009-03-08 01:06:56 +00:00
committed by Laurent Vivier
parent 4578c8ae20
commit 4702c219f3

View File

@@ -566,6 +566,17 @@ arch_of_init( void )
push_str("system-id");
fword("property");
/* pci info */
if (machine_id == ARCH_MAC99) {
push_str("/pci");
fword("find-device");
push_str("u3-agp");
fword("encode-string");
push_str("compatible");
fword("property");
}
/* memory info */
push_str("/memory");