summaryrefslogtreecommitdiff
path: root/sys/dev/fdt
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2024-10-17 17:58:59 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2024-10-17 17:58:59 +0000
commit45a89f3cf66db252366b9d2b81586a8450cc1cb9 (patch)
tree06990e559feaf8a0b4e1734ddfa58fcd6990799a /sys/dev/fdt
parenta8e9c761d94ee1b1c7c81d5770fa38b8d39b4668 (diff)
Add pinctrl support.
ok patrick@, phessler@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r--sys/dev/fdt/qciic_fdt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/fdt/qciic_fdt.c b/sys/dev/fdt/qciic_fdt.c
index acafcc67753..588d7c96127 100644
--- a/sys/dev/fdt/qciic_fdt.c
+++ b/sys/dev/fdt/qciic_fdt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qciic_fdt.c,v 1.1 2022/11/06 15:36:13 patrick Exp $ */
+/* $OpenBSD: qciic_fdt.c,v 1.2 2024/10/17 17:58:58 kettenis Exp $ */
/*
* Copyright (c) 2022 Mark Kettenis <kettenis@openbsd.org>
*
@@ -25,6 +25,7 @@
#include <dev/ofw/openfirm.h>
#include <dev/ofw/ofw_gpio.h>
+#include <dev/ofw/ofw_pinctrl.h>
#include <dev/ofw/fdt.h>
#define _I2C_PRIVATE
@@ -109,6 +110,8 @@ qciic_fdt_attach(struct device *parent, struct device *self, void *aux)
printf("\n");
+ pinctrl_byname(sc->sc_node, "default");
+
sc->sc_ic.ic_cookie = sc;
sc->sc_ic.ic_acquire_bus = qciic_fdt_acquire_bus;
sc->sc_ic.ic_release_bus = qciic_fdt_release_bus;