aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/pci/pci_bus.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-09-04 19:43:22 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-09-04 19:43:22 +0000
commitbd8add3d61ac242f0d0790dc19dcf2325c5bbfc6 (patch)
tree89a7641522eb24371492fc57874d496b248794fc /sys/i386/pci/pci_bus.c
parente46eeb89b947339c2418590abb61a35b3432da32 (diff)
downloadsrc-bd8add3d61ac242f0d0790dc19dcf2325c5bbfc6.tar.gz
src-bd8add3d61ac242f0d0790dc19dcf2325c5bbfc6.zip
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.
Notes
Notes: svn path=/head/; revision=102934
Diffstat (limited to 'sys/i386/pci/pci_bus.c')
-rw-r--r--sys/i386/pci/pci_bus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c
index 1053766b7a4a..4bab5d1265f1 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";