diff options
author | Stefan Reinauer <stepan@openbios.org> | 2004-02-05 10:00:35 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2004-02-05 10:00:35 +0000 |
commit | bd8e17a8f16846bb35a6a2fd07720a5b087e92d8 (patch) | |
tree | 53e15d5d9c75c90211add06fb5de9d338cf53efe | |
parent | b8a7578a120f70470a733292908b97261e9c518a (diff) | |
download | coreboot-bd8e17a8f16846bb35a6a2fd07720a5b087e92d8.tar.xz |
enable hpet timer hardware.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1368 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/southbridge/amd/amd8111/amd8111_lpc.c | 11 |
1 files changed, 11 insertions, 0 deletions
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) |