summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-12-29 16:04:28 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-12-29 16:04:28 +0000
commit5ea0276f97f6b2639b206953cf348b533ac8d4b4 (patch)
tree26cee86004e2c552685e110f488393e68be8cb65 /sys/dev
parent88720561b01694387c6917fd6c32f3fae4b9aa4b (diff)
Handle pinctrl.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fdt/amlpwm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/fdt/amlpwm.c b/sys/dev/fdt/amlpwm.c
index 9a30899f045..63c46d138b2 100644
--- a/sys/dev/fdt/amlpwm.c
+++ b/sys/dev/fdt/amlpwm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: amlpwm.c,v 1.1 2019/09/30 20:42:45 kettenis Exp $ */
+/* $OpenBSD: amlpwm.c,v 1.2 2020/12/29 16:04:27 kettenis Exp $ */
/*
* Copyright (c) 2019 Mark Kettenis <kettenis@openbsd.org>
*
@@ -26,6 +26,7 @@
#include <dev/ofw/openfirm.h>
#include <dev/ofw/ofw_clock.h>
#include <dev/ofw/ofw_misc.h>
+#include <dev/ofw/ofw_pinctrl.h>
#include <dev/ofw/fdt.h>
#define PWM_PWM_A 0x00
@@ -112,6 +113,8 @@ amlpwm_attach(struct device *parent, struct device *self, void *aux)
printf("\n");
+ pinctrl_byname(faa->fa_node, "default");
+
sc->sc_pd.pd_node = faa->fa_node;
sc->sc_pd.pd_cookie = sc;
sc->sc_pd.pd_get_state = amlpwm_get_state;