diff options
author | phk <phk@FreeBSD.org> | 2002-09-04 19:43:22 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-04 19:43:22 +0000 |
commit | e4b26c3c82341dd5ddf18a750f8eecaa4bab1b7b (patch) | |
tree | 89a7641522eb24371492fc57874d496b248794fc /sys/i386/pci | |
parent | d608e476ab7c8f534cc4aaef110272580d77e5ca (diff) | |
download | FreeBSD-src-e4b26c3c82341dd5ddf18a750f8eecaa4bab1b7b.zip FreeBSD-src-e4b26c3c82341dd5ddf18a750f8eecaa4bab1b7b.tar.gz |
Change the support for AMDs ElanSC520 CPU from being a device driver to
be
options CPU_ELAN
(NB: Soekris.com users!)
It is cleaner this way. We still recognize the cpu on the host-pci bridge.
Diffstat (limited to 'sys/i386/pci')
-rw-r--r-- | sys/i386/pci/pci_bus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c index 1053766..4bab5d1 100644 --- a/sys/i386/pci/pci_bus.c +++ b/sys/i386/pci/pci_bus.c @@ -44,6 +44,8 @@ #include <machine/pc/bios.h> #include <machine/md_var.h> +#include "opt_cpu.h" + #include "pcib_if.h" static int @@ -179,7 +181,12 @@ nexus_pcib_is_host_bridge(int bus, int slot, int func, /* AMD -- vendor 0x1022 */ case 0x30001022: s = "AMD Elan SC520 host to PCI bridge"; +#ifdef CPU_ELAN init_AMD_Elan_sc520(); +#else + printf("*** WARNING: kernel option CPU_ELAN missing"); + printf("-- timekeeping may be wrong\n"); +#endif break; case 0x70061022: s = "AMD-751 host to PCI bridge"; |