summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2021-06-13 02:56:49 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2021-06-13 02:56:49 +0000
commite9ccaca4eab0654e5907571030e5c37419e20b46 (patch)
tree7bfde137c9e86dfb6679ec05d0bb4144fee82ce6 /sys/dev/fdt
parentec2e076ff6c252863e31925430ab3b2e80d21844 (diff)
Match sifive,fu740-c000-gem so that device is detected on Unmatched.
pointed out by jsg@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/if_cad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fdt/if_cad.c b/sys/dev/fdt/if_cad.c
index 49757098bfc..d8cbb706d4a 100644
--- a/sys/dev/fdt/if_cad.c
+++ b/sys/dev/fdt/if_cad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cad.c,v 1.1 2021/05/28 15:52:11 visa Exp $ */
+/* $OpenBSD: if_cad.c,v 1.2 2021/06/13 02:56:48 drahn Exp $ */
/*
* Copyright (c) 2021 Visa Hankala
@@ -345,7 +345,8 @@ cad_match(struct device *parent, void *match, void *aux)
{
struct fdt_attach_args *faa = aux;
- return OF_is_compatible(faa->fa_node, "cdns,gem");
+ return (OF_is_compatible(faa->fa_node, "cdns,gem") ||
+ OF_is_compatible(faa->fa_node, "sifive,fu740-c000-gem"));
}
void