This fix properly hides the UDC and OTG PCI headers when the cs5536 is

setup as the host on USB port4. In client mode the headers remain
available. Also fixes an outb to 0x80 to use the post_code() function.

Signed-off-by: Marc Jones <marc.jones@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2660 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Marc Jones 2007-05-10 23:53:11 +00:00 committed by Stefan Reinauer
parent deabf510bf
commit d03b7d4289
1 changed files with 3 additions and 3 deletions

View File

@ -487,13 +487,13 @@ static void enable_USB_port4(struct southbridge_amd_cs5536_config *sb)
dev = dev_find_device(PCI_VENDOR_ID_AMD, dev = dev_find_device(PCI_VENDOR_ID_AMD,
PCI_DEVICE_ID_AMD_CS5536_UDC, 0); PCI_DEVICE_ID_AMD_CS5536_UDC, 0);
if (dev) { if (dev) {
pci_write_config8(dev, 0x7C, 0xDEADBEEF); pci_write_config32(dev, 0x7C, 0xDEADBEEF);
} }
dev = dev_find_device(PCI_VENDOR_ID_AMD, dev = dev_find_device(PCI_VENDOR_ID_AMD,
PCI_DEVICE_ID_AMD_CS5536_OTG, 0); PCI_DEVICE_ID_AMD_CS5536_OTG, 0);
if (dev) { if (dev) {
pci_write_config8(dev, 0x7C, 0xDEADBEEF); pci_write_config32(dev, 0x7C, 0xDEADBEEF);
} }
} }
@ -512,7 +512,7 @@ void chipsetinit(void)
(struct southbridge_amd_cs5536_config *)dev->chip_info; (struct southbridge_amd_cs5536_config *)dev->chip_info;
struct msrinit *csi; struct msrinit *csi;
outb(P80_CHIPSET_INIT, 0x80); post_code(P80_CHIPSET_INIT);
/* we hope NEVER to be in linuxbios when S3 resumes /* we hope NEVER to be in linuxbios when S3 resumes
if (! IsS3Resume()) */ if (! IsS3Resume()) */