Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Add "snps,dwc3" to the list of compatible string...



details:   https://anonhg.NetBSD.org/src/rev/ab9b1616be2e
branches:  trunk
changeset: 970505:ab9b1616be2e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Mar 26 00:21:27 2020 +0000

description:
Add "snps,dwc3" to the list of compatible strings we match against.
The code already handles "snps,dwc3" not being a subordinate of
an SoC-specific node, but the string was missing from the match
routine.

Necessitated by the sun50i-h6 device tree update on Jan 3 2020, which
elimiated the "allwinner,sun50i-h6-dwc3" node and placed all of the
clocks, resets, etc. directly under the "snps,dwc3" node.

diffstat:

 sys/dev/fdt/dwc3_fdt.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 8d30e3a08ca1 -r ab9b1616be2e sys/dev/fdt/dwc3_fdt.c
--- a/sys/dev/fdt/dwc3_fdt.c    Wed Mar 25 23:31:19 2020 +0000
+++ b/sys/dev/fdt/dwc3_fdt.c    Thu Mar 26 00:21:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc3_fdt.c,v 1.9 2020/01/15 01:09:57 jmcneill Exp $ */
+/* $NetBSD: dwc3_fdt.c,v 1.10 2020/03/26 00:21:27 thorpej Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc3_fdt.c,v 1.9 2020/01/15 01:09:57 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc3_fdt.c,v 1.10 2020/03/26 00:21:27 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -212,6 +212,7 @@
                "rockchip,rk3328-dwc3",
                "rockchip,rk3399-dwc3",
                "samsung,exynos5250-dwusb3",
+               "snps,dwc3",
                NULL
        };
        struct fdt_attach_args * const faa = aux;



Home | Main Index | Thread Index | Old Index