Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/allwinner fix non-A80 builds



details:   https://anonhg.NetBSD.org/src/rev/e1b2440a19b6
branches:  trunk
changeset: 804906:e1b2440a19b6
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Dec 05 19:06:41 2014 +0000

description:
fix non-A80 builds

diffstat:

 sys/arch/arm/allwinner/awin_io.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 09422f64e24d -r e1b2440a19b6 sys/arch/arm/allwinner/awin_io.c
--- a/sys/arch/arm/allwinner/awin_io.c  Fri Dec 05 18:54:35 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_io.c  Fri Dec 05 19:06:41 2014 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_io.c,v 1.36 2014/12/05 18:54:35 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_io.c,v 1.37 2014/12/05 19:06:41 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -217,6 +217,7 @@
        sc->sc_coherent_dmat = &awin_coherent_dma_tag;
 
        switch (awin_chip_id()) {
+#ifdef ALLWINNER_A80
        case AWIN_CHIP_ID_A80:
                bus_space_subregion(sc->sc_bst, sc->sc_bsh,
                    AWIN_A80_CCU_SCLK_OFFSET, 0x1000, &sc->sc_ccm_bsh);
@@ -225,6 +226,7 @@
                bus_space_map(sc->sc_bst, AWIN_A80_CORE2_PBASE,
                    AWIN_A80_CORE2_SIZE, 0, &sc->sc_a80_core2_bsh);
                break;
+#endif
        default:
                bus_space_subregion(sc->sc_bst, sc->sc_bsh, AWIN_CCM_OFFSET,
                    0x1000, &sc->sc_ccm_bsh);



Home | Main Index | Thread Index | Old Index