diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-28 17:22:54 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-28 17:22:54 +0000 |
commit | 02235cc00f7f836ec284ce5745d7a7a05f3eacb2 (patch) | |
tree | 25e75cd559325afaab2005e32c9c6d091db88ed2 | |
parent | aedbad6cc6a5d1f64bcc7b74cb6d6883ab941688 (diff) |
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@
-rw-r--r-- | sys/dev/fdt/imxesdhc.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <drahn@openbsd.org> * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -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); |