From owner-svn-src-head@FreeBSD.ORG Sat Apr 26 20:27:59 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79BE4129; Sat, 26 Apr 2014 20:27:59 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6653B1215; Sat, 26 Apr 2014 20:27:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3QKRxHG031867; Sat, 26 Apr 2014 20:27:59 GMT (envelope-from ian@svn.freebsd.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3QKRx8w031866; Sat, 26 Apr 2014 20:27:59 GMT (envelope-from ian@svn.freebsd.org) Message-Id: <201404262027.s3QKRx8w031866@svn.freebsd.org> From: Ian Lepore Date: Sat, 26 Apr 2014 20:27:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264985 - head/sys/dev/uart X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2014 20:27:59 -0000 Author: ian Date: Sat Apr 26 20:27:58 2014 New Revision: 264985 URL: http://svnweb.freebsd.org/changeset/base/264985 Log: Reword a comment block a bit; no functional changes. Modified: head/sys/dev/uart/uart_dev_imx.c Modified: head/sys/dev/uart/uart_dev_imx.c ============================================================================== --- head/sys/dev/uart/uart_dev_imx.c Sat Apr 26 20:27:54 2014 (r264984) +++ head/sys/dev/uart/uart_dev_imx.c Sat Apr 26 20:27:58 2014 (r264985) @@ -131,13 +131,14 @@ imx_uart_init(struct uart_bas *bas, int /* * The hardware has an extremely flexible baud clock: it allows setting * both the numerator and denominator of the divider, as well as a - * separate pre-divider. We simplify that problem by assuming a - * pre-divider and numerator of one because our base clock is so fast we - * can reach virtually any reasonable speed with a simple divisor. The - * numerator value actually includes the 16x over-sampling; the register - * value is the numerator-1, so we have a hard-coded 15. Note that a - * quirk of the hardware requires that both UBIR and UBMR be set back to - * back in order for the change to take effect. + * separate pre-divider. We simplify the problem of coming up with a + * workable pair of numbers by assuming a pre-divider and numerator of + * one because our base clock is so fast we can reach virtually any + * reasonable speed with a simple divisor. The numerator value actually + * includes the 16x over-sampling (so a value of 16 means divide by 1); + * the register value is the numerator-1, so we have a hard-coded 15. + * Note that a quirk of the hardware requires that both UBIR and UBMR be + * set back to back in order for the change to take effect. */ if (baudrate > 0) { baseclk = imx_ccm_uart_hz();