From e19c57053997728ebb9afc23ce3f33fc7d05ebcf Mon Sep 17 00:00:00 2001 From: Visa Hankala Date: Thu, 14 Apr 2016 13:51:59 +0000 Subject: Enable UART FIFOs. --- sys/arch/octeon/dev/cn30xxuart.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/arch/octeon/dev/cn30xxuart.c b/sys/arch/octeon/dev/cn30xxuart.c index 8eae942454b..a8b198acf7c 100644 --- a/sys/arch/octeon/dev/cn30xxuart.c +++ b/sys/arch/octeon/dev/cn30xxuart.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cn30xxuart.c,v 1.8 2016/04/14 13:49:27 visa Exp $ */ +/* $OpenBSD: cn30xxuart.c,v 1.9 2016/04/14 13:51:58 visa Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -44,6 +44,8 @@ #include #include +#define OCTEON_UART_FIFO_SIZE 64 + int cn30xxuart_probe(struct device *, void *, void *); void cn30xxuart_attach(struct device *, struct device *, void *); int cn30xxuart_intr(void *); @@ -108,7 +110,8 @@ cn30xxuart_attach(struct device *parent, struct device *self, void *aux) sc->sc_hwflags = 0; sc->sc_swflags = 0; sc->sc_frequency = octeon_ioclock_speed(); - sc->sc_uarttype = COM_UART_16550; + sc->sc_uarttype = COM_UART_16550A; + sc->sc_fifolen = OCTEON_UART_FIFO_SIZE; /* if it's in use as console, it's there. */ if (bus_space_map(sc->sc_iot, sc->sc_iobase, COM_NPORTS, 0, &sc->sc_ioh)) { -- cgit v1.2.3