This fix properly hides the UDC and OTG PCI headers when the cs5536 is
authorMarc Jones <marc.jones@amd.com>
Thu, 10 May 2007 23:53:11 +0000 (23:53 +0000)
committerStefan Reinauer <stepan@openbios.org>
Thu, 10 May 2007 23:53:11 +0000 (23:53 +0000)
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

src/southbridge/amd/cs5536/cs5536.c

index 653323619b46ea5d45475a73543755e84358802e..69427f5494b2c48b9e9ba2268d9fe4b06e2cce35 100644 (file)
@@ -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()) */