Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbarm/iq80310 No point in setting the ATU Subsys v...



details:   https://anonhg.NetBSD.org/src/rev/bd6621fa41cb
branches:  trunk
changeset: 521903:bd6621fa41cb
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Feb 08 02:31:12 2002 +0000

description:
No point in setting the ATU Subsys vendor/dev ID on boards that
can't plug into a PCI host.

diffstat:

 sys/arch/evbarm/iq80310/i80312_mainbus.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r 34f7dcf5b60f -r bd6621fa41cb sys/arch/evbarm/iq80310/i80312_mainbus.c
--- a/sys/arch/evbarm/iq80310/i80312_mainbus.c  Fri Feb 08 02:30:12 2002 +0000
+++ b/sys/arch/evbarm/iq80310/i80312_mainbus.c  Fri Feb 08 02:31:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i80312_mainbus.c,v 1.4 2002/02/07 21:34:24 thorpej Exp $       */
+/*     $NetBSD: i80312_mainbus.c,v 1.5 2002/02/08 02:31:12 thorpej Exp $       */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -126,12 +126,8 @@
        /* Some boards are always considered "host". */
 #if defined(IOP310_TEAMASA_NPWR)
        sc->sc_is_host = 1;
-#else
+#else /* Default to stock IQ80310 */
        sc->sc_is_host = CPLD_READ(IQ80310_BACKPLANE_DET) & 1;
-#endif
-
-       printf(": i80312 Companion I/O, acting as PCI %s\n",
-           sc->sc_is_host ? "host" : "slave");
 
        /*
         * Set the subsystem vendor/device IDs to "Cyclone" "PCI-700",
@@ -140,6 +136,10 @@
        bus_space_write_4(sc->sc_st, sc->sc_sh,
            I80312_ATU_BASE + PCI_SUBSYS_ID_REG,
            PCI_ID_CODE(PCI_VENDOR_CYCLONE, PCI_PRODUCT_CYCLONE_PCI_700));
+#endif
+
+       printf(": i80312 Companion I/O, acting as PCI %s\n",
+           sc->sc_is_host ? "host" : "slave");
 
        i80312_sdram_bounds(sc->sc_st, sc->sc_mem_sh, &memstart, &memsize);
 



Home | Main Index | Thread Index | Old Index