summaryrefslogtreecommitdiffstats
path: root/sys/mips/atheros
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-10-15 01:37:00 +0000
committeradrian <adrian@FreeBSD.org>2013-10-15 01:37:00 +0000
commit9e755c7d41df0cb7ab51691adeb92045d952814a (patch)
tree3d10727b914d863dcdde839e00ee49e21b79007e /sys/mips/atheros
parent7c9142e3df94d35c0e06b5ebce8e44fc28e37843 (diff)
downloadFreeBSD-src-9e755c7d41df0cb7ab51691adeb92045d952814a.zip
FreeBSD-src-9e755c7d41df0cb7ab51691adeb92045d952814a.tar.gz
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
Diffstat (limited to 'sys/mips/atheros')
-rw-r--r--sys/mips/atheros/ar71xx_machdep.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/mips/atheros/ar71xx_machdep.c b/sys/mips/atheros/ar71xx_machdep.c
index bd44b47..f0b3026 100644
--- a/sys/mips/atheros/ar71xx_machdep.c
+++ b/sys/mips/atheros/ar71xx_machdep.c
@@ -233,8 +233,9 @@ platform_start(__register_t a0 __unused, __register_t a1 __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, __register_t a1 __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)
OpenPOWER on IntegriCloud