diff options
Diffstat (limited to 'sys/dev/fdt/amlpwm.c')
-rw-r--r-- | sys/dev/fdt/amlpwm.c | 5 |
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; |