diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-27 20:15:42 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-27 20:15:42 +0000 |
commit | 3adfbe855f104a77465723dba3e420e04a8e2e7a (patch) | |
tree | 8677b580a8184cb10a0d483e9d7112a033a21e7a /sys/dev | |
parent | 10a1e97204b3e5c9ebdd46f1cc4788f5afbe6db9 (diff) |
While i.MX6Q and i.MX7D's USB controller nodes claim to be compatible
to i.MX27, they actually need different bits to be set than the i.MX27.
The i.MX8MM's node instead rightfully only claims to be compatible to
i.MX7D, since it's the same implementation. Thus change imxehci(4) to
also match the i.MX7D compatible.
ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/fdt/imxehci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fdt/imxehci.c b/sys/dev/fdt/imxehci.c index 4c565aeb299..81e149a54b6 100644 --- a/sys/dev/fdt/imxehci.c +++ b/sys/dev/fdt/imxehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxehci.c,v 1.3 2020/04/27 20:09:55 patrick Exp $ */ +/* $OpenBSD: imxehci.c,v 1.4 2020/04/27 20:15:41 patrick Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se> * @@ -110,7 +110,8 @@ imxehci_match(struct device *parent, void *match, void *aux) { struct fdt_attach_args *faa = aux; - return OF_is_compatible(faa->fa_node, "fsl,imx27-usb"); + return (OF_is_compatible(faa->fa_node, "fsl,imx27-usb") || + OF_is_compatible(faa->fa_node, "fsl,imx7d-usb")); } void |