Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/broadcom remove debug printfs, add more compat ...



details:   https://anonhg.NetBSD.org/src/rev/7675804c5b07
branches:  trunk
changeset: 965824:7675804c5b07
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Thu Oct 03 11:24:27 2019 +0000

description:
remove debug printfs, add more compat strings.

diffstat:

 sys/arch/arm/broadcom/bcm2835_gpio.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r 38a6c6bca4b5 -r 7675804c5b07 sys/arch/arm/broadcom/bcm2835_gpio.c
--- a/sys/arch/arm/broadcom/bcm2835_gpio.c      Thu Oct 03 10:53:34 2019 +0000
+++ b/sys/arch/arm/broadcom/bcm2835_gpio.c      Thu Oct 03 11:24:27 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm2835_gpio.c,v 1.14 2019/10/01 23:32:52 jmcneill Exp $       */
+/*     $NetBSD: bcm2835_gpio.c,v 1.15 2019/10/03 11:24:27 mlelstv Exp $        */
 
 /*-
  * Copyright (c) 2013, 2014, 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm2835_gpio.c,v 1.14 2019/10/01 23:32:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm2835_gpio.c,v 1.15 2019/10/03 11:24:27 mlelstv Exp $");
 
 /*
  * Driver for BCM2835 GPIO
@@ -241,7 +241,12 @@
 static int
 bcmgpio_match(device_t parent, cfdata_t cf, void *aux)
 {
-       const char * const compatible[] = { "brcm,bcm2835-gpio", NULL };
+       const char * const compatible[] = {
+               "brcm,bcm2835-gpio",
+               "brcm,bcm2838-gpio",
+               "brcm,bcm2711-gpio",
+               NULL
+       };
        struct fdt_attach_args * const faa = aux;
 
        return of_match_compatible(faa->faa_phandle, compatible);
@@ -815,7 +820,6 @@
                mask = 1 << (pin % BCM2835_GPIO_GPPUD_PINS_PER_REGISTER);
                regid = (pin / BCM2835_GPIO_GPPUD_PINS_PER_REGISTER);
 
-printf("2835: pin=%u, pud=%u, regid=%u, mask=%08x\n",pin,pud,regid,mask);
                bus_space_write_4(sc->sc_iot, sc->sc_ioh,
                    BCM2835_GPIO_GPPUD, pud);
                delay(1);
@@ -841,7 +845,6 @@
                        pud = BCM2838_GPIO_GPPUD_PULLOFF;
                        break;
                }
-printf("2838: pin=%u, pud=%u, regid=%u, mask=%08x\n",pin,pud,regid,mask);
 
                reg = bus_space_read_4(sc->sc_iot, sc->sc_ioh,
                    BCM2838_GPIO_GPPUPPDN(regid));



Home | Main Index | Thread Index | Old Index