From 5495fe7d45a33beef39db9cb86e5ac55c6e1de58 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 8 Apr 2023 05:40:54 +0000 Subject: [PATCH] add missing write to XENON_EMMC_PHY_PAD_CONTROL2 ok patrick@ --- sys/dev/fdt/sdhc_fdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/fdt/sdhc_fdt.c b/sys/dev/fdt/sdhc_fdt.c index 67b4015b0e1..e71e00cb85e 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.19 2022/01/18 11:36:21 patrick Exp $ */ +/* $OpenBSD: sdhc_fdt.c,v 1.20 2023/04/08 05:40:54 jsg Exp $ */ /* * Copyright (c) 2017 Mark Kettenis * @@ -402,6 +402,8 @@ sdhc_fdt_xenon_bus_clock_post(struct sdhc_softc *ssc, int freq, int timing) XENON_EMMC_PHY_PAD_CONTROL2_ZNR_SHIFT); reg |= sc->sc_zpr << XENON_EMMC_PHY_PAD_CONTROL2_ZPR_SHIFT | sc->sc_znr << XENON_EMMC_PHY_PAD_CONTROL2_ZNR_SHIFT; + bus_space_write_4(sc->sc_iot, sc->sc_ioh, + XENON_EMMC_PHY_PAD_CONTROL2, reg); reg = bus_space_read_2(sc->sc_iot, sc->sc_ioh, SDHC_CLOCK_CTL); reg &= ~SDHC_SDCLK_ENABLE; -- 2.20.1