Author: ward Date: 2008-04-17 18:30:27 +0200 (Thu, 17 Apr 2008) New Revision: 662
Modified: coreboot-v3/southbridge/amd/cs5536/cs5536.c coreboot-v3/southbridge/amd/cs5536/dts Log:
Add unwanted_vpci parsing to AMD's cs5536 southbridge.
Signed-off-by: Ward Vandewege ward@gnu.org Acked-by: Jordan Crouse jordan.crouse@amd.com
Modified: coreboot-v3/southbridge/amd/cs5536/cs5536.c =================================================================== --- coreboot-v3/southbridge/amd/cs5536/cs5536.c 2008-04-17 16:13:58 UTC (rev 661) +++ coreboot-v3/southbridge/amd/cs5536/cs5536.c 2008-04-17 16:30:27 UTC (rev 662) @@ -617,6 +617,7 @@ */ static void southbridge_init(struct device *dev) { + int i; struct southbridge_amd_cs5536_dts_config *sb = (struct southbridge_amd_cs5536_dts_config *)dev->device_configuration;
@@ -648,6 +649,11 @@
enable_USB_port4(sb);
+ /* disable unwanted virtual PCI devices */ + for (i = 0; 0 != sb->unwanted_vpci[i]; i++) { + hide_vpci(sb->unwanted_vpci[i]); + } + if (sb->enable_ide) ide_init(dev);
Modified: coreboot-v3/southbridge/amd/cs5536/dts =================================================================== --- coreboot-v3/southbridge/amd/cs5536/dts 2008-04-17 16:13:58 UTC (rev 661) +++ coreboot-v3/southbridge/amd/cs5536/dts 2008-04-17 16:30:27 UTC (rev 662) @@ -64,4 +64,9 @@ * probably not what you want. */ power_button = "0"; + + /* Vpci devices to be disabled. Put device locations here, and always end the + * array with a zero element. */ + unwanted_vpci = < 0 >; + };