summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/imxgpc.c
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2018-03-30 09:31:05 +0000
committerpatrick <patrick@openbsd.org>2018-03-30 09:31:05 +0000
commit2c00674cb9dcf6732d1ff1e776feb5b35a8b25b1 (patch)
tree5398953a69d9b7721b80f1471fe3d688a54e1f9e /sys/dev/fdt/imxgpc.c
parentEnable imxgpc(4). (diff)
downloadwireguard-openbsd-2c00674cb9dcf6732d1ff1e776feb5b35a8b25b1.tar.xz
wireguard-openbsd-2c00674cb9dcf6732d1ff1e776feb5b35a8b25b1.zip
Attach imxgpc(4) to i.MX8M as well.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt/imxgpc.c')
-rw-r--r--sys/dev/fdt/imxgpc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fdt/imxgpc.c b/sys/dev/fdt/imxgpc.c
index 0ddc493d36f..9c3398febea 100644
--- a/sys/dev/fdt/imxgpc.c
+++ b/sys/dev/fdt/imxgpc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxgpc.c,v 1.1 2018/03/30 09:26:14 patrick Exp $ */
+/* $OpenBSD: imxgpc.c,v 1.2 2018/03/30 09:31:05 patrick Exp $ */
/*
* Copyright (c) 2016 Mark Kettenis
*
@@ -44,7 +44,8 @@ imxgpc_match(struct device *parent, void *match, void *aux)
{
struct fdt_attach_args *faa = aux;
- return OF_is_compatible(faa->fa_node, "fsl,imx6q-gpc");
+ return (OF_is_compatible(faa->fa_node, "fsl,imx6q-gpc") ||
+ OF_is_compatible(faa->fa_node, "fsl,imx8mq-gpc"));
}
void