diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-07-21 21:50:34 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-07-21 21:50:34 +0000 |
commit | 573f7d40be086b35b25d242818ae0e9c26d05022 (patch) | |
tree | 831bf36c8294b2dd1362af4e6de3b3f0df0fff50 /src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c | |
parent | 71a3d96bc487f66c84ac869a1215b8a4a4499bf2 (diff) | |
download | coreboot-573f7d40be086b35b25d242818ae0e9c26d05022.tar.xz |
Intel ICH7 updates
- code restructuring (move ich7 out of i945)
- ACPI fixes
- major SMI handler updates
- make sure SMBus lives where we expect it
- try to get usb debug working
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4456 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c')
-rw-r--r-- | src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c b/src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c index 39a5799ed9..90ef28ae3a 100644 --- a/src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c +++ b/src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c @@ -31,7 +31,7 @@ static void usb_ehci_init(struct device *dev) { struct resource *res; - u8 *base; + u32 base; u32 reg32; u8 reg8; @@ -52,9 +52,9 @@ static void usb_ehci_init(struct device *dev) /* Clear any pending port changes */ res = find_resource(dev, 0x10); - base =(u8 *)res->base; - reg32 = readl(base + 0x24) | (1 << 2); - writel(base + 0x24, reg32); + base = res->base; + reg32 = readl((u8 *)base + 0x24) | (1 << 2); + writel(reg32, (u8 *)base + 0x24); /* workaround */ reg8 = pci_read_config8(dev, 0x84); @@ -115,7 +115,7 @@ static struct pci_operations lops_pci = { static struct device_operations usb_ehci_ops = { .read_resources = pci_dev_read_resources, - .set_resources = pci_dev_set_resources, + .set_resources = usb_ehci_set_resources, .enable_resources = pci_dev_enable_resources, .init = usb_ehci_init, .scan_bus = 0, |