From fd4ef4a84a9db7475055e5d82372de61ae9b17fa Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Thu, 17 Apr 2008 16:30:27 +0000 Subject: [PATCH] Add unwanted_vpci parsing to AMD's cs5536 southbridge. Signed-off-by: Ward Vandewege Acked-by: Jordan Crouse git-svn-id: svn://coreboot.org/repository/coreboot-v3@662 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- southbridge/amd/cs5536/cs5536.c | 6 ++++++ southbridge/amd/cs5536/dts | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/southbridge/amd/cs5536/cs5536.c b/southbridge/amd/cs5536/cs5536.c index 8612626ade..a910610f41 100644 --- a/southbridge/amd/cs5536/cs5536.c +++ b/southbridge/amd/cs5536/cs5536.c @@ -617,6 +617,7 @@ static void hide_vpci(u32 vpci_devid) */ 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 @@ static void southbridge_init(struct device *dev) 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); diff --git a/southbridge/amd/cs5536/dts b/southbridge/amd/cs5536/dts index 09b0415fa8..519b115773 100644 --- a/southbridge/amd/cs5536/dts +++ b/southbridge/amd/cs5536/dts @@ -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 >; + };