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_TEGRA
details: https://anonhg.NetBSD.org/src/rev/0dc0eca91bc9
branches: trunk
changeset: 337923:0dc0eca91bc9
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun May 03 17:22:54 2015 +0000
description:
add COM_TYPE_TEGRA
diffstat:
sys/dev/ic/com.c | 9 +++++++--
sys/dev/ic/comvar.h | 3 ++-
2 files changed, 9 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 08b88d09dcd1 -r 0dc0eca91bc9 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Sun May 03 16:40:12 2015 +0000
+++ b/sys/dev/ic/com.c Sun May 03 17:22:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.333 2015/04/13 16:33:24 riastradh Exp $ */
+/* $NetBSD: com.c,v 1.334 2015/05/03 17:22:54 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.333 2015/04/13 16:33:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.334 2015/05/03 17:22:54 jmcneill Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -466,6 +466,11 @@
SET(sc->sc_hwflags, COM_HW_FIFO);
SET(sc->sc_hwflags, COM_HW_NOIEN);
goto fifodelay;
+
+ case COM_TYPE_TEGRA:
+ sc->sc_fifolen = 1;
+ fifo_msg = "Tegra UART, broken fifo";
+ goto fifodelay;
}
sc->sc_fifolen = 1;
diff -r 08b88d09dcd1 -r 0dc0eca91bc9 sys/dev/ic/comvar.h
--- a/sys/dev/ic/comvar.h Sun May 03 16:40:12 2015 +0000
+++ b/sys/dev/ic/comvar.h Sun May 03 17:22:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: comvar.h,v 1.80 2015/04/13 16:33:24 riastradh Exp $ */
+/* $NetBSD: comvar.h,v 1.81 2015/05/03 17:22:54 jmcneill Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
@@ -234,6 +234,7 @@
#define COM_TYPE_OMAP 4 /* TI OMAP processor built-in */
#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 */
/* power management hooks */
int (*enable)(struct com_softc *);
Home |
Main Index |
Thread Index |
Old Index