summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-06-01 18:25:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-06-01 18:25:18 +0000
commit28d5680d1392837144b6507c6e5110ee8a8e47d4 (patch)
tree5f7524c1c6f0ae7b57f983117555b1b0faff1f05 /sys
parent0f4ac2defb2fa511d113180932eb0b006753d41a (diff)
Restrict DMA to the Rockchip RK3328 and RK3388 for now. There is some
evidence that it doesn't work reliably yet for the Rockchip RK3288 and I can't test that myself right now.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/fdt/dwmmc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/fdt/dwmmc.c b/sys/dev/fdt/dwmmc.c
index 6830fcba20b..a8610b1bba5 100644
--- a/sys/dev/fdt/dwmmc.c
+++ b/sys/dev/fdt/dwmmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwmmc.c,v 1.11 2018/05/28 21:50:38 kettenis Exp $ */
+/* $OpenBSD: dwmmc.c,v 1.12 2018/06/01 18:25:17 kettenis Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis
*
@@ -377,8 +377,9 @@ dwmmc_attach(struct device *parent, struct device *self, void *aux)
if (width >= 4)
saa.caps |= SMC_CAPS_4BIT_MODE;
- /* XXX DMA doesn't work on Samsung Exynos yet. */
- if (!OF_is_compatible(faa->fa_node, "samsung,exynos5420-dw-mshc"))
+ /* XXX DMA doesn't work on all variants yet. */
+ if (OF_is_compatible(faa->fa_node, "rockchip,rk3328-dw-mshc") ||
+ OF_is_compatible(faa->fa_node, "rockchip,rk3399-dw-mshc"))
saa.caps |= SMC_CAPS_DMA;
sc->sc_sdmmc = config_found(self, &saa, NULL);