diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-06-10 14:14:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-06-10 14:14:56 +0000 |
commit | 4e08a11fb29d73e8aebf2bc5868439643fe4c479 (patch) | |
tree | 41cd064ac96de0e7d77d064e4d0b3a5fe0ed519a /sys/dev/fdt | |
parent | 75c3dfd7cb9d5c62cb09764e0dcbc745f1548161 (diff) |
Attach imxesdhc(4) to i.MX7D. Should attach to i.MX6SL as well.
Needs the same quirk as i.MX6SX and i.MX8M.
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/imxesdhc.c | 6 |
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; |