diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-02-22 18:53:27 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-02-22 18:53:27 +0000 |
commit | 9f0e1f085e9d2e487b1d692a5e5f79059cc0aef7 (patch) | |
tree | 37e8db2f988e5a0cd08e0ec07606bdbffede73b9 /sys/dev/fdt | |
parent | 2582b63e3d54c47e593bc44086e14f2653fcf5ab (diff) |
Slow mode is only relevant for legacy and high speed timings.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/sdhc_fdt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fdt/sdhc_fdt.c b/sys/dev/fdt/sdhc_fdt.c index 234515b2a6c..c65f3bbd7ee 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.12 2020/05/31 11:47:09 kettenis Exp $ */ +/* $OpenBSD: sdhc_fdt.c,v 1.13 2021/02/22 18:53:26 patrick Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -428,8 +428,8 @@ phy_init: XENON_EMMC_PHY_TIMING_ADJUST); reg |= XENON_EMMC_PHY_TIMING_ADJUST_SAMPL_INV_QSP_PHASE_SELECT; reg &= ~XENON_EMMC_PHY_TIMING_ADJUST_SLOW_MODE; - if (timing == SDMMC_TIMING_LEGACY || - timing == SDMMC_TIMING_HIGHSPEED || sc->sc_slow_mode) + if ((timing == SDMMC_TIMING_LEGACY || + timing == SDMMC_TIMING_HIGHSPEED) && sc->sc_slow_mode) reg |= XENON_EMMC_PHY_TIMING_ADJUST_SLOW_MODE; bus_space_write_4(sc->sc_iot, sc->sc_ioh, XENON_EMMC_PHY_TIMING_ADJUST, reg); |