From: kettenis Date: Sun, 23 Jul 2023 11:16:36 +0000 (+0000) Subject: Enable power domain. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=db862112cd96310e666d5dc80d2d49dd669c3868;p=openbsd Enable power domain. ok patrick@ --- diff --git a/sys/dev/fdt/exuart.c b/sys/dev/fdt/exuart.c index 34d5df59907..a48060eb794 100644 --- a/sys/dev/fdt/exuart.c +++ b/sys/dev/fdt/exuart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exuart.c,v 1.11 2022/07/02 08:50:42 visa Exp $ */ +/* $OpenBSD: exuart.c,v 1.12 2023/07/23 11:16:36 kettenis Exp $ */ /* * Copyright (c) 2005 Dale Rahn * @@ -40,6 +40,7 @@ #include #include +#include #include #define DEVUNIT(x) (minor(x) & 0x7f) @@ -210,6 +211,10 @@ exuart_attach(struct device *parent, struct device *self, void *aux) printf(": console"); } + printf("\n"); + + power_domain_enable(faa->fa_node); + if (OF_is_compatible(faa->fa_node, "apple,s5l-uart")) { sc->sc_type = EXUART_TYPE_S5L; sc->sc_rx_fifo_cnt_mask = EXUART_S5L_UFSTAT_RX_FIFO_CNT_MASK; @@ -270,8 +275,6 @@ exuart_attach(struct device *parent, struct device *self, void *aux) if(sc->sc_si == NULL) panic("%s: can't establish soft interrupt.", sc->sc_dev.dv_xname); - - printf("\n"); } void