From 02235cc00f7f836ec284ce5745d7a7a05f3eacb2 Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Tue, 28 Apr 2020 17:22:54 +0000 Subject: Enable all clocks referenced by the imxesdhc(4) device tree node. Usually those are already on, since on those machines we mostly boot from SD/MMC and U-Boot prepares them for us. On machines with a WiFi on imxesdhc(4), U-Boot isn't necessarily configured to do so. Enabling the clocks is the right thing to do anyway. ok kettenis@ --- sys/dev/fdt/imxesdhc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/dev/fdt/imxesdhc.c b/sys/dev/fdt/imxesdhc.c index 33383002503..8306ebcf0ad 100644 --- a/sys/dev/fdt/imxesdhc.c +++ b/sys/dev/fdt/imxesdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxesdhc.c,v 1.15 2020/04/27 11:37:23 ians Exp $ */ +/* $OpenBSD: imxesdhc.c,v 1.16 2020/04/28 17:22:53 patrick Exp $ */ /* * Copyright (c) 2009 Dale Rahn * Copyright (c) 2006 Uwe Stuehler @@ -315,6 +315,7 @@ imxesdhc_attach(struct device *parent, struct device *self, void *aux) pinctrl_byname(faa->fa_node, "default"); clock_set_assigned(faa->fa_node); + clock_enable_all(faa->fa_node); sc->sc_ih = fdt_intr_establish(faa->fa_node, IPL_SDMMC, imxesdhc_intr, sc, sc->sc_dev.dv_xname); -- cgit v1.2.3