Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add COM_TYPE_BCMAUXUART type for BCM2835 AUX UART.
details: https://anonhg.NetBSD.org/src/rev/621942e5ee12
branches: trunk
changeset: 825801:621942e5ee12
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Jul 31 09:25:14 2017 +0000
description:
Add COM_TYPE_BCMAUXUART type for BCM2835 AUX UART.
diffstat:
sys/dev/ic/com.c | 12 ++++++++++--
sys/dev/ic/comvar.h | 3 ++-
2 files changed, 12 insertions(+), 3 deletions(-)
diffs (50 lines):
diff -r 9968ea9e3d99 -r 621942e5ee12 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Mon Jul 31 06:41:01 2017 +0000
+++ b/sys/dev/ic/com.c Mon Jul 31 09:25:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.339 2016/05/27 20:01:49 bouyer Exp $ */
+/* $NetBSD: com.c,v 1.340 2017/07/31 09:25:14 jmcneill Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.339 2016/05/27 20:01:49 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.340 2017/07/31 09:25:14 jmcneill Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -475,6 +475,14 @@
CSR_WRITE_1(regsp, COM_REG_FIFO,
FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_1);
goto fifodelay;
+
+ case COM_TYPE_BCMAUXUART:
+ sc->sc_fifolen = 8;
+ fifo_msg = "BCM AUX UART, working fifo";
+ SET(sc->sc_hwflags, COM_HW_FIFO);
+ CSR_WRITE_1(regsp, COM_REG_FIFO,
+ FIFO_ENABLE | FIFO_RCV_RST | FIFO_XMT_RST | FIFO_TRIGGER_1);
+ goto fifodelay;
}
sc->sc_fifolen = 1;
diff -r 9968ea9e3d99 -r 621942e5ee12 sys/dev/ic/comvar.h
--- a/sys/dev/ic/comvar.h Mon Jul 31 06:41:01 2017 +0000
+++ b/sys/dev/ic/comvar.h Mon Jul 31 09:25:14 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: comvar.h,v 1.82 2016/05/27 20:01:49 bouyer Exp $ */
+/* $NetBSD: comvar.h,v 1.83 2017/07/31 09:25:14 jmcneill Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -247,6 +247,7 @@
#define COM_TYPE_16550_NOERS 5 /* like a 16550, no ERS */
#define COM_TYPE_INGENIC 6 /* JZ4780 built-in */
#define COM_TYPE_TEGRA 7 /* NVIDIA Tegra built-in */
+#define COM_TYPE_BCMAUXUART 8 /* BCM2835 AUX UART */
/* power management hooks */
int (*enable)(struct com_softc *);
Home |
Main Index |
Thread Index |
Old Index