Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2013 03:54:40 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253509 - head/sys/mips/atheros
Message-ID:  <201307210354.r6L3sesJ057255@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Jul 21 03:54:39 2013
New Revision: 253509
URL: http://svnweb.freebsd.org/changeset/base/253509

Log:
  Use the UART frequency when programming the UART clock.
  
  This allows the 16550 support to work correctly on the upcoming
  AR934x support.

Modified:
  head/sys/mips/atheros/uart_bus_ar71xx.c
  head/sys/mips/atheros/uart_bus_ar933x.c
  head/sys/mips/atheros/uart_cpu_ar71xx.c
  head/sys/mips/atheros/uart_cpu_ar933x.c

Modified: head/sys/mips/atheros/uart_bus_ar71xx.c
==============================================================================
--- head/sys/mips/atheros/uart_bus_ar71xx.c	Sun Jul 21 03:52:52 2013	(r253508)
+++ head/sys/mips/atheros/uart_bus_ar71xx.c	Sun Jul 21 03:54:39 2013	(r253509)
@@ -70,7 +70,7 @@ uart_ar71xx_probe(device_t dev)
 	struct uart_softc *sc;
 	uint64_t freq;
 
-	freq = ar71xx_ahb_freq();
+	freq = ar71xx_uart_freq();
 
 	sc = device_get_softc(dev);
 	sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);

Modified: head/sys/mips/atheros/uart_bus_ar933x.c
==============================================================================
--- head/sys/mips/atheros/uart_bus_ar933x.c	Sun Jul 21 03:52:52 2013	(r253508)
+++ head/sys/mips/atheros/uart_bus_ar933x.c	Sun Jul 21 03:54:39 2013	(r253509)
@@ -72,7 +72,7 @@ uart_ar933x_probe(device_t dev)
 	struct uart_softc *sc;
 	uint64_t freq;
 
-	freq = ar71xx_refclk();
+	freq = ar71xx_uart_freq();
 
 	sc = device_get_softc(dev);
 	sc->sc_sysdev = SLIST_FIRST(&uart_sysdevs);

Modified: head/sys/mips/atheros/uart_cpu_ar71xx.c
==============================================================================
--- head/sys/mips/atheros/uart_cpu_ar71xx.c	Sun Jul 21 03:52:52 2013	(r253508)
+++ head/sys/mips/atheros/uart_cpu_ar71xx.c	Sun Jul 21 03:54:39 2013	(r253509)
@@ -56,7 +56,7 @@ uart_cpu_getdev(int devtype, struct uart
 {
 	uint64_t freq;
 
-	freq = ar71xx_ahb_freq();
+	freq = ar71xx_uart_freq();
 
 	di->ops = uart_getops(&uart_ns8250_class);
 	di->bas.chan = 0;

Modified: head/sys/mips/atheros/uart_cpu_ar933x.c
==============================================================================
--- head/sys/mips/atheros/uart_cpu_ar933x.c	Sun Jul 21 03:52:52 2013	(r253508)
+++ head/sys/mips/atheros/uart_cpu_ar933x.c	Sun Jul 21 03:54:39 2013	(r253509)
@@ -58,7 +58,7 @@ uart_cpu_getdev(int devtype, struct uart
 {
 	uint64_t freq;
 
-	freq = ar71xx_refclk();
+	freq = ar71xx_uart_freq();
 
 	di->ops = uart_getops(&uart_ar933x_class);
 	di->bas.chan = 0;



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