summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-06-10 14:14:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-06-10 14:14:56 +0000
commit4e08a11fb29d73e8aebf2bc5868439643fe4c479 (patch)
tree41cd064ac96de0e7d77d064e4d0b3a5fe0ed519a
parent75c3dfd7cb9d5c62cb09764e0dcbc745f1548161 (diff)
Attach imxesdhc(4) to i.MX7D. Should attach to i.MX6SL as well.
Needs the same quirk as i.MX6SX and i.MX8M.
-rw-r--r--sys/dev/fdt/imxesdhc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/fdt/imxesdhc.c b/sys/dev/fdt/imxesdhc.c
index 4f499e47330..093bd7da9c0 100644
--- a/sys/dev/fdt/imxesdhc.c
+++ b/sys/dev/fdt/imxesdhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imxesdhc.c,v 1.7 2018/06/04 10:33:51 patrick Exp $ */
+/* $OpenBSD: imxesdhc.c,v 1.8 2018/06/10 14:14:55 kettenis Exp $ */
/*
* Copyright (c) 2009 Dale Rahn <drahn@openbsd.org>
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -284,6 +284,7 @@ imxesdhc_match(struct device *parent, void *match, void *aux)
struct fdt_attach_args *faa = aux;
return OF_is_compatible(faa->fa_node, "fsl,imx6q-usdhc") ||
+ OF_is_compatible(faa->fa_node, "fsl,imx6sl-usdhc") ||
OF_is_compatible(faa->fa_node, "fsl,imx6sx-usdhc") ||
OF_is_compatible(faa->fa_node, "fsl,imx8mq-usdhc");
}
@@ -332,7 +333,8 @@ imxesdhc_attach(struct device *parent, struct device *self, void *aux)
/* Determine host capabilities. */
caps = HREAD4(sc, SDHC_HOST_CTRL_CAP);
- if (OF_is_compatible(sc->sc_node, "fsl,imx6sx-usdhc") ||
+ if (OF_is_compatible(sc->sc_node, "fsl,imx6sl-usdhc") ||
+ OF_is_compatible(sc->sc_node, "fsl,imx6sx-usdhc") ||
OF_is_compatible(sc->sc_node, "fsl,imx8mq-usdhc"))
caps &= 0xffff0000;