Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 01:37:01 +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: r256488 - head/sys/mips/atheros
Message-ID:  <201310150137.r9F1b1KV098871@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Oct 15 01:37:00 2013
New Revision: 256488
URL: http://svnweb.freebsd.org/changeset/base/256488

Log:
  Fix the Atheros MIPS startup path a little.
  
  * Print out the platform frequency the same as the other frequencies.
  * Print out the MDIO frequency.
  * Optionally do GMAC and ethernet switch setup if required.
  
  Tested:
  
  * AR9344

Modified:
  head/sys/mips/atheros/ar71xx_machdep.c

Modified: head/sys/mips/atheros/ar71xx_machdep.c
==============================================================================
--- head/sys/mips/atheros/ar71xx_machdep.c	Tue Oct 15 01:35:48 2013	(r256487)
+++ head/sys/mips/atheros/ar71xx_machdep.c	Tue Oct 15 01:37:00 2013	(r256488)
@@ -233,8 +233,9 @@ platform_start(__register_t a0 __unused,
 	printf("CPU Frequency=%d MHz\n", u_ar71xx_cpu_freq / 1000000);
 	printf("CPU DDR Frequency=%d MHz\n", u_ar71xx_ddr_freq / 1000000);
 	printf("CPU AHB Frequency=%d MHz\n", u_ar71xx_ahb_freq / 1000000);
-	printf("platform frequency: %lld\n", platform_counter_freq);
+	printf("platform frequency: %lld MHz\n", platform_counter_freq / 1000000);
 	printf("CPU reference clock: %d MHz\n", u_ar71xx_refclk / 1000000);
+	printf("CPU MDIO clock: %d MHz\n", u_ar71xx_mdio_freq / 1000000);
 	printf("arguments: \n");
 	printf("  a0 = %08x\n", a0);
 	printf("  a1 = %08x\n", a1);
@@ -279,6 +280,16 @@ platform_start(__register_t a0 __unused,
 	 */
 	ar71xx_init_usb_peripheral();
 
+	/*
+	 * Reset internal ethernet switch, if one exists
+	 */
+	ar71xx_reset_ethernet_switch();
+
+	/*
+	 * Initialise the gmac driver.
+	 */
+	ar71xx_init_gmac();
+
 	kdb_init();
 #ifdef KDB
 	if (boothowto & RB_KDB)



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