Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jan 2009 13:24:25 +0000 (UTC)
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186900 - head/sys/dev/uart
Message-ID:  <200901081324.n08DOP1F023598@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: raj
Date: Thu Jan  8 13:24:25 2009
New Revision: 186900
URL: http://svn.freebsd.org/changeset/base/186900

Log:
  De-hard code UART speed setting for Marvell SOCs when hw.uart.console is not
  specified. Instead, let uart(4) fall back to whatever speed firmware has set.

Modified:
  head/sys/dev/uart/uart_cpu_mv.c

Modified: head/sys/dev/uart/uart_cpu_mv.c
==============================================================================
--- head/sys/dev/uart/uart_cpu_mv.c	Thu Jan  8 13:20:28 2009	(r186899)
+++ head/sys/dev/uart/uart_cpu_mv.c	Thu Jan  8 13:24:25 2009	(r186900)
@@ -53,6 +53,7 @@ bus_space_tag_t uart_bus_space_mem;
 int
 uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2)
 {
+
 	return ((b1->bsh == b2->bsh && b1->bst == b2->bst) ? 1 : 0);
 }
 
@@ -77,7 +78,7 @@ uart_cpu_getdev(int devtype, struct uart
 	    0, &di->bas.bsh) != 0)
 		return (ENXIO);
 
-	di->baudrate = 115200;
+	di->baudrate = 0;
 	di->bas.regshft = 2;
 	di->bas.rclk = get_tclk();
 	di->databits = 8;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901081324.n08DOP1F023598>