Removing device driver code in mainboard.c for Tyan boards?

Eric W. Biederman ebiederman at lnxi.com
Thu Nov 4 21:57:00 CET 2004


YhLu <YhLu at tyan.com> writes:

> and
> 
> Mainboard on
> .....
> End
> 
> Mainboard on
> ...
> End
> 
> To put them into dev_root links

At which point the code would need to be implemented in the mainboard
which is something I want to avoid except for mainboard specific code.

I can see doing something like:

chip northbridge/amd/amk8/root_complex
        device pci_domain 0 on 
		chip northbridge/amd/amdk8
			device pci 18.0 on end # LDT 0
			device pci 18.0 on end # LDT1
			device pci 18.0 on end # LDT2
			device pci 18.1 on end
			device pci 18.2 on end
			device pci 18.3 on end
                end
		chip northbridge/amd/amdk8
			device pci 19.0 on end
			device pci 19.0 on end
			device pci 19.0 on end
			device pci 19.1 on end
			device pci 19.2 on end
			device pci 19.3 on end
		end
	end
	device apic_cluster 0 on
		chip cpu/amd/socket_940
			device apic 0 on end
		end
		chip cpu/amd/socket_940
			device apic 1 on end
		end
	end
end

And leaving all of the code for the root_complex in
northbridge/amd/amdk8/northbridge.c

Eric



More information about the coreboot mailing list