From 2f5354efbe847e9e496c1d334734dcef692863ca Mon Sep 17 00:00:00 2001 From: kettenis Date: Fri, 12 Aug 2016 16:09:37 +0000 Subject: [PATCH] Call pinctrl_byname() such that ports left unconfiguraed by u-boot will work as well. ok deraadt@, millert@ --- sys/arch/armv7/sunxi/sxiuart.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/armv7/sunxi/sxiuart.c b/sys/arch/armv7/sunxi/sxiuart.c index 9702cb41457..269af78ca4b 100644 --- a/sys/arch/armv7/sunxi/sxiuart.c +++ b/sys/arch/armv7/sunxi/sxiuart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sxiuart.c,v 1.11 2016/08/09 16:52:42 mglocker Exp $ */ +/* $OpenBSD: sxiuart.c,v 1.12 2016/08/12 16:09:37 kettenis Exp $ */ /* * Copyright (c) 2005 Dale Rahn * Copyright (c) 2013 Artturi Alm @@ -45,8 +45,9 @@ #include #include -#include #include +#include +#include #define DEVUNIT(x) (minor(x) & 0x7f) #define DEVCUA(x) (minor(x) & 0x80) @@ -178,6 +179,8 @@ sxiuart_attach(struct device *parent, struct device *self, void *aux) if (faa->fa_nreg < 1) return; + pinctrl_byname(faa->fa_node, "default"); + sc->sc_iot = iot = faa->fa_iot; if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr, faa->fa_reg[0].size, 0, &sc->sc_ioh)) -- 2.20.1