mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Factor out Geode LX VPCI device disabling into a separate function which
consumes one device at a time. This helps avoid array handling in the dts and allows us to use generic disabling infrastructure. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Corey Osgood <corey.osgood@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@600 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
c764701a53
commit
31b60b34ec
1 changed files with 9 additions and 10 deletions
|
@ -570,6 +570,15 @@ static void ide_init(struct device *dev)
|
|||
}
|
||||
|
||||
|
||||
static void hide_vpci(u32 vpci_devid)
|
||||
{
|
||||
/* Hide unwanted virtual PCI device. */
|
||||
printk(BIOS_DEBUG, "Hiding VPCI device: 0x%08X\n",
|
||||
vpci_devid);
|
||||
outl(vpci_devid + 0x7C, 0xCF8);
|
||||
outl(0xDEADBEEF, 0xCFC);
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO.
|
||||
*
|
||||
|
@ -608,16 +617,6 @@ static void southbridge_init(struct device *dev)
|
|||
if (sb->enable_ide)
|
||||
ide_init(dev);
|
||||
|
||||
#warning Add back in unwanted VPCI support
|
||||
#if 0
|
||||
/* Disable unwanted virtual PCI devices. */
|
||||
for (i = 0; (i < MAX_UNWANTED_VPCI) && (0 != sb->unwanted_vpci[i]); i++) {
|
||||
printk(BIOS_DEBUG, "Disabling VPCI device: 0x%08X\n",
|
||||
sb->unwanted_vpci[i]);
|
||||
outl(sb->unwanted_vpci[i] + 0x7C, 0xCF8);
|
||||
outl(0xDEADBEEF, 0xCFC);
|
||||
}
|
||||
#endif
|
||||
printk(BIOS_SPEW, "cs5536: %s() Exit\n", __FUNCTION__);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue