Module Name:    src
Committed By:   rin
Date:           Sun Jul 21 15:57:24 UTC 2019

Modified Files:
        src/sys/dev/fdt: dw_apb_uart.c

Log Message:
The device cannot recognize break signal. Use +++++ (five plus signs) as
cnmagic in the same manner with bcm2835_com.c.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/fdt/dw_apb_uart.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/fdt/dw_apb_uart.c
diff -u src/sys/dev/fdt/dw_apb_uart.c:1.4 src/sys/dev/fdt/dw_apb_uart.c:1.5
--- src/sys/dev/fdt/dw_apb_uart.c:1.4	Sat Dec  8 17:46:13 2018
+++ src/sys/dev/fdt/dw_apb_uart.c	Sun Jul 21 15:57:23 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: dw_apb_uart.c,v 1.4 2018/12/08 17:46:13 thorpej Exp $ */
+/* $NetBSD: dw_apb_uart.c,v 1.5 2019/07/21 15:57:23 rin Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcne...@invisible.ca>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: dw_apb_uart.c,v 1.4 2018/12/08 17:46:13 thorpej Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dw_apb_uart.c,v 1.5 2019/07/21 15:57:23 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -182,6 +182,8 @@ dw_apb_uart_console_consinit(struct fdt_
 
 	if (comcnattach(bst, addr, speed, uart_freq, COM_TYPE_DW_APB, flags))
 		panic("Cannot initialize dw-apb-uart console");
+
+	cn_set_magic("+++++");
 }
 
 static const struct fdt_console dw_apb_uart_console = {

Reply via email to