From d03b7d428978ce53dc9aa5e7df6ada2f78c96c61 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Thu, 10 May 2007 23:53:11 +0000 Subject: [PATCH] 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 Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2660 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/amd/cs5536/cs5536.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/southbridge/amd/cs5536/cs5536.c b/src/southbridge/amd/cs5536/cs5536.c index 653323619b..69427f5494 100644 --- a/src/southbridge/amd/cs5536/cs5536.c +++ b/src/southbridge/amd/cs5536/cs5536.c @@ -487,13 +487,13 @@ static void enable_USB_port4(struct southbridge_amd_cs5536_config *sb) dev = dev_find_device(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_UDC, 0); if (dev) { - pci_write_config8(dev, 0x7C, 0xDEADBEEF); + pci_write_config32(dev, 0x7C, 0xDEADBEEF); } dev = dev_find_device(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_OTG, 0); 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 msrinit *csi; - outb(P80_CHIPSET_INIT, 0x80); + post_code(P80_CHIPSET_INIT); /* we hope NEVER to be in linuxbios when S3 resumes if (! IsS3Resume()) */