diff options
author | 2020-03-11 12:13:47 +0000 | |
---|---|---|
committer | 2020-03-11 12:13:47 +0000 | |
commit | 3cc1f9ef33110a2db666ce794c926b57dc7ff3e1 (patch) | |
tree | 7938369146e94af04aaa383f0864c3f356d775bd /sys/dev/fdt/imxgpc.c | |
parent | Allow alpha boot(8) to read from an ffs2 filesystem and adapt its (diff) | |
download | wireguard-openbsd-3cc1f9ef33110a2db666ce794c926b57dc7ff3e1.tar.xz wireguard-openbsd-3cc1f9ef33110a2db666ce794c926b57dc7ff3e1.zip |
Power domains on i.MX8MQ can reference other power domains, which
need to be enabled first. Notable users are the PCIe domains.
ok kettenis@
Diffstat (limited to 'sys/dev/fdt/imxgpc.c')
-rw-r--r-- | sys/dev/fdt/imxgpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/fdt/imxgpc.c b/sys/dev/fdt/imxgpc.c index ffff9ef5025..0b03e95f0af 100644 --- a/sys/dev/fdt/imxgpc.c +++ b/sys/dev/fdt/imxgpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imxgpc.c,v 1.5 2019/04/01 08:40:37 patrick Exp $ */ +/* $OpenBSD: imxgpc.c,v 1.6 2020/03/11 12:13:47 patrick Exp $ */ /* * Copyright (c) 2016 Mark Kettenis * @@ -103,6 +103,8 @@ imxgpc_enable(void *cookie, uint32_t *cells, int on) struct power_domain_device *pd = cookie; int domain; + power_domain_enable(pd->pd_node); + domain = OF_getpropint(pd->pd_node, "reg", 0); /* Set up power domain */ |