From 036514a882056df9de17e043062b9c084c3711a2 Mon Sep 17 00:00:00 2001 From: kettenis Date: Tue, 31 Aug 2021 15:21:19 +0000 Subject: [PATCH] Do pinctrl stuff. ok patrick@ --- sys/arch/arm64/dev/aplpcie.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm64/dev/aplpcie.c b/sys/arch/arm64/dev/aplpcie.c index ab8b5a9ed19..10fef4f02ce 100644 --- a/sys/arch/arm64/dev/aplpcie.c +++ b/sys/arch/arm64/dev/aplpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aplpcie.c,v 1.4 2021/07/26 16:47:52 kettenis Exp $ */ +/* $OpenBSD: aplpcie.c,v 1.5 2021/08/31 15:21:19 kettenis Exp $ */ /* * Copyright (c) 2021 Mark Kettenis * @@ -31,6 +31,7 @@ #include #include +#include #include /* @@ -174,6 +175,8 @@ aplpcie_attach(struct device *parent, struct device *self, void *aux) sc->sc_dmat = faa->fa_dmat; sc->sc_node = faa->fa_node; + pinctrl_byname(sc->sc_node, "default"); + sc->sc_msi_doorbell = OF_getpropint64(sc->sc_node, "msi-doorbell", 0xffff000ULL); if (OF_getpropintarray(sc->sc_node, "msi-ranges", sc->sc_msi_range, -- 2.20.1