diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-27 20:07:40 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2020-04-27 20:07:40 +0000 |
commit | 8c3f9286125c0d9647c7b9de5b09c432c57f19d5 (patch) | |
tree | 423335553c88c61eb0c855c8b6e7961a7b27f14a /sys/dev/fdt | |
parent | 1305a4e8c5dbe777c7b30ba0af407bfc53293667 (diff) |
Enable the power domain and set the assigned clocks on imxehci(4)'s USB
controller and its nop-PHYs. This is needed on the i.MX8MM.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/imxehci.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/fdt/imxehci.c b/sys/dev/fdt/imxehci.c index 04bc6593ba7..0df6e702a9e 100644 --- a/sys/dev/fdt/imxehci.c +++ b/sys/dev/fdt/imxehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxehci.c,v 1.1 2020/04/23 22:14:49 patrick Exp $ */ +/* $OpenBSD: imxehci.c,v 1.2 2020/04/27 20:07:39 patrick Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se> * @@ -36,6 +36,7 @@ #include <dev/ofw/ofw_gpio.h> #include <dev/ofw/ofw_misc.h> #include <dev/ofw/ofw_pinctrl.h> +#include <dev/ofw/ofw_power.h> #include <dev/ofw/ofw_regulator.h> #include <dev/ofw/fdt.h> @@ -170,6 +171,8 @@ imxehci_attach(struct device *parent, struct device *self, void *aux) printf("\n"); pinctrl_byname(faa->fa_node, "default"); + power_domain_enable(faa->fa_node); + clock_set_assigned(faa->fa_node); clock_enable(faa->fa_node, NULL); delay(1000); @@ -391,5 +394,6 @@ nop_xceiv_init(struct imxehci_softc *sc, uint32_t *cells) node = OF_getnodebyphandle(cells[0]); KASSERT(node != 0); + clock_set_assigned(node); clock_enable(node, NULL); } |