From bd8e17a8f16846bb35a6a2fd07720a5b087e92d8 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 5 Feb 2004 10:00:35 +0000 Subject: [PATCH] enable hpet timer hardware. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1368 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/amd/amd8111/amd8111_lpc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/southbridge/amd/amd8111/amd8111_lpc.c b/src/southbridge/amd/amd8111/amd8111_lpc.c index 437ed2e877..535cbece66 100644 --- a/src/southbridge/amd/amd8111/amd8111_lpc.c +++ b/src/southbridge/amd/amd8111/amd8111_lpc.c @@ -86,6 +86,16 @@ static void setup_ioapic(void) } } +static void enable_hpet(struct device *dev) +{ + unsigned long hpet_address; + + pci_write_config32(dev,0xa0, 0xfed00001); + hpet_address=pci_read_config32(dev,0xa0)& 0xfffffffe; + printk_debug("enabling HPET @0x%x\n", hpet_address); + +} + static void lpc_init(struct device *dev) { uint8_t byte; @@ -117,6 +127,7 @@ static void lpc_init(struct device *dev) byte |= (1 << 5); pci_write_config8(dev, 0x41, byte); + enable_hpet(dev); } static void amd8111_lpc_read_resources(device_t dev)