summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2016-04-14 13:51:59 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2016-04-14 13:51:59 +0000
commite19c57053997728ebb9afc23ce3f33fc7d05ebcf (patch)
treef2575753f7896b48f55bace7bbf426ff55688cd4 /sys
parentf391e3c21cafdf6008377148fb58cf93405aeba0 (diff)
Enable UART FIFOs.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/octeon/dev/cn30xxuart.c7
1 files changed, 5 insertions, 2 deletions
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 <octeon/dev/uartbusvar.h>
#include <octeon/dev/cn30xxuartreg.h>
+#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)) {