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 Add #ifdef VERBOSE_INIT_ARM



details:   https://anonhg.NetBSD.org/src/rev/cf78ac4290ba
branches:  trunk
changeset: 789759:cf78ac4290ba
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Sep 07 02:09:23 2013 +0000

description:
Add #ifdef VERBOSE_INIT_ARM

diffstat:

 sys/arch/arm/allwinner/awin_board.c |  12 ++++++++++--
 sys/arch/arm/allwinner/awin_gpio.c  |   6 +++++-
 2 files changed, 15 insertions(+), 3 deletions(-)

diffs (73 lines):

diff -r 52a73145875e -r cf78ac4290ba sys/arch/arm/allwinner/awin_board.c
--- a/sys/arch/arm/allwinner/awin_board.c       Sat Sep 07 02:08:56 2013 +0000
+++ b/sys/arch/arm/allwinner/awin_board.c       Sat Sep 07 02:09:23 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: awin_board.c,v 1.3 2013/09/07 00:35:52 matt Exp $      */
+/*     $NetBSD: awin_board.c,v 1.4 2013/09/07 02:09:23 matt Exp $      */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.3 2013/09/07 00:35:52 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.4 2013/09/07 02:09:23 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -146,13 +146,21 @@
                    __func__, "io", error);
        KASSERT(awin_core_bsh == iobase);
 
+#ifdef VERBOSE_INIT_ARM
        printf("CPU Speed is");
+#endif
        awin_cpu_clk();
+#ifdef VERBOSE_INIT_ARM
        printf(" %"PRIu64"\n", curcpu()->ci_data.cpu_cc_freq);
+#endif
 
+#ifdef VERBOSE_INIT_ARM
        printf("Determining GPIO configuration");
+#endif
        awin_gpio_init();
+#ifdef VERBOSE_INIT_ARM
        printf("\n");
+#endif
 }
 
 #ifdef MULTIPROCESSOR
diff -r 52a73145875e -r cf78ac4290ba sys/arch/arm/allwinner/awin_gpio.c
--- a/sys/arch/arm/allwinner/awin_gpio.c        Sat Sep 07 02:08:56 2013 +0000
+++ b/sys/arch/arm/allwinner/awin_gpio.c        Sat Sep 07 02:09:23 2013 +0000
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.2 2013/09/07 00:35:52 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.3 2013/09/07 02:09:23 matt Exp $");
 
 #include <sys/bus.h>
 #include <sys/device.h>
@@ -162,7 +162,9 @@
        struct awin_gpio_softc * const sc = &awin_gpio_sc;
        bus_size_t offset = AWIN_PIO_OFFSET;
 
+#ifdef VERBOSE_INIT_ARM
        printf(" free");
+#endif
        for (u_int i = 0;
             i < __arraycount(pin_groups);
             i++, offset += AWIN_PIO_GRP_SIZE) {
@@ -183,8 +185,10 @@
                                grp->grp_pin_inuse_mask |= mask;
                        }
                }
+#ifdef VERBOSE_INIT_ARM
                printf(" P%c=%d", 'A' + i,
                    popcount32(grp->grp_pin_mask & ~grp->grp_pin_inuse_mask));
+#endif
        }
 }
 



Home | Main Index | Thread Index | Old Index