From 4e08a11fb29d73e8aebf2bc5868439643fe4c479 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 10 Jun 2018 14:14:56 +0000 Subject: Attach imxesdhc(4) to i.MX7D. Should attach to i.MX6SL as well. Needs the same quirk as i.MX6SX and i.MX8M. --- sys/dev/fdt/imxesdhc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/fdt') 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 * Copyright (c) 2006 Uwe Stuehler @@ -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; -- cgit v1.2.3