diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-05-24 18:54:13 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-05-24 18:54:13 +0000 |
commit | 74f00bb05d14b4ab94ac48c0a3690e3870e1f406 (patch) | |
tree | e375ecdd9b046c126e8eaa7bb8dea89a4f16e1de /sys/dev/fdt | |
parent | af1bd44b017e48755e0b0d1072e2b462d9c60a45 (diff) |
Configure pins.
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/fanpwr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/fdt/fanpwr.c b/sys/dev/fdt/fanpwr.c index 115d52f54f6..22ef3058b65 100644 --- a/sys/dev/fdt/fanpwr.c +++ b/sys/dev/fdt/fanpwr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fanpwr.c,v 1.2 2018/07/31 10:07:13 kettenis Exp $ */ +/* $OpenBSD: fanpwr.c,v 1.3 2019/05/24 18:54:12 kettenis Exp $ */ /* * Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org> * @@ -21,6 +21,7 @@ #include <sys/malloc.h> #include <dev/ofw/openfirm.h> +#include <dev/ofw/ofw_pinctrl.h> #include <dev/ofw/ofw_regulator.h> #include <dev/ofw/fdt.h> @@ -92,6 +93,8 @@ fanpwr_attach(struct device *parent, struct device *self, void *aux) uint32_t voltage, ramp_delay; uint8_t id1, id2; + pinctrl_byname(node, "default"); + sc->sc_tag = ia->ia_tag; sc->sc_addr = ia->ia_addr; |