summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-02-22 18:55:24 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-02-22 18:55:24 +0000
commit137c194bfb8e4797a36a6f6ebdb4eae345b53884 (patch)
tree9e4695c767656a51647330fbe29de263b97d2724 /sys/dev/fdt
parent9f0e1f085e9d2e487b1d692a5e5f79059cc0aef7 (diff)
Disable double-data rate modes if 1.8V signalling is not possible.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/sdhc_fdt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/fdt/sdhc_fdt.c b/sys/dev/fdt/sdhc_fdt.c
index c65f3bbd7ee..56bf15c46fa 100644
--- a/sys/dev/fdt/sdhc_fdt.c
+++ b/sys/dev/fdt/sdhc_fdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdhc_fdt.c,v 1.13 2021/02/22 18:53:26 patrick Exp $ */
+/* $OpenBSD: sdhc_fdt.c,v 1.14 2021/02/22 18:55:23 patrick Exp $ */
/*
* Copyright (c) 2017 Mark Kettenis
*
@@ -275,8 +275,10 @@ sdhc_fdt_attach(struct device *parent, struct device *self, void *aux)
SDHC_CAPABILITIES);
if (OF_getpropint(faa->fa_node, "bus-width", 1) != 8)
cap &= ~SDHC_8BIT_MODE_SUPP;
- if (OF_getproplen(faa->fa_node, "no-1-8-v") == 0)
+ if (OF_getproplen(faa->fa_node, "no-1-8-v") == 0) {
cap &= ~SDHC_VOLTAGE_SUPP_1_8V;
+ sc->sc.sc_flags |= SDHC_F_NODDR50;
+ }
if (OF_getproplen(faa->fa_node,
"marvell,xenon-phy-slow-mode") == 0)
sc->sc_slow_mode = 1;