From: patrick Date: Mon, 22 Feb 2021 18:55:23 +0000 (+0000) Subject: Disable double-data rate modes if 1.8V signalling is not possible. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=31704d1e9bff6915c7dd1ebe134a4d20debd6601;p=openbsd Disable double-data rate modes if 1.8V signalling is not possible. ok kettenis@ --- 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;