summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/amldwusb.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-05-18 10:41:29 +0000
committerkettenis <kettenis@openbsd.org>2020-05-18 10:41:29 +0000
commitbbd419271bcdf1cbeca8ad195f3d91aaf4b631a8 (patch)
treef1cfdc6c7c564e801393645764859ee5bb01927f /sys/dev/fdt/amldwusb.c
parentAdd some comments. (diff)
downloadwireguard-openbsd-bbd419271bcdf1cbeca8ad195f3d91aaf4b631a8.tar.xz
wireguard-openbsd-bbd419271bcdf1cbeca8ad195f3d91aaf4b631a8.zip
Turn power domain on. Makes OpenBSD boot on the odroid c4.
Diffstat (limited to 'sys/dev/fdt/amldwusb.c')
-rw-r--r--sys/dev/fdt/amldwusb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/fdt/amldwusb.c b/sys/dev/fdt/amldwusb.c
index a13dedd0fd1..d78752c5e28 100644
--- a/sys/dev/fdt/amldwusb.c
+++ b/sys/dev/fdt/amldwusb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: amldwusb.c,v 1.1 2019/08/29 17:20:03 kettenis Exp $ */
+/* $OpenBSD: amldwusb.c,v 1.2 2020/05/18 10:41:29 kettenis Exp $ */
/*
* Copyright (c) 2019 Mark kettenis <kettenis@openbsd.org>
*
@@ -28,6 +28,7 @@
#include <dev/ofw/openfirm.h>
#include <dev/ofw/ofw_clock.h>
#include <dev/ofw/ofw_misc.h>
+#include <dev/ofw/ofw_power.h>
#include <dev/ofw/ofw_regulator.h>
#include <dev/ofw/fdt.h>
@@ -160,6 +161,7 @@ amldwusb_attach(struct device *parent, struct device *self, void *aux)
return;
}
+ power_domain_enable(faa->fa_node);
clock_enable_all(faa->fa_node);
reset_assert_all(faa->fa_node);