Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2015 03:17:41 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288056 - in head/sys: arm/conf boot/fdt/dts/arm
Message-ID:  <201509210317.t8L3HfWY058507@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: loos
Date: Mon Sep 21 03:17:41 2015
New Revision: 288056
URL: https://svnweb.freebsd.org/changeset/base/288056

Log:
  Enable if_dwc for Allwinner A20 based boards.
  
  This enables the gigabit ethernet on cubieboard2 and banana pi.
  
  A special thanks to Netgate who gently provided me with a banana pi almost
  a year ago.

Modified:
  head/sys/arm/conf/A20
  head/sys/boot/fdt/dts/arm/cubieboard2.dts

Modified: head/sys/arm/conf/A20
==============================================================================
--- head/sys/arm/conf/A20	Mon Sep 21 03:03:57 2015	(r288055)
+++ head/sys/arm/conf/A20	Mon Sep 21 03:17:41 2015	(r288056)
@@ -47,7 +47,7 @@ options 	WITNESS_SKIPSPIN	# Don't run wi
 #options 	BOOTP_NFSROOT
 #options 	BOOTP_COMPAT
 #options 	BOOTP_NFSV3
-#options 	BOOTP_WIRED_TO=cpsw0
+#options 	BOOTP_WIRED_TO=dwc0
 
 # Boot device is 2nd slice on MMC/SD card
 options 	ROOTDEVNAME=\"ufs:/dev/da0s2\"
@@ -102,7 +102,8 @@ device		ether
 device		mii
 device		bpf
 
-device		emac
+#device		emac			# 10/100 integrated EMAC controller
+device		dwc			# 10/100/1000 integrated GMAC controller
 
 # USB ethernet support, requires miibus
 device		miibus

Modified: head/sys/boot/fdt/dts/arm/cubieboard2.dts
==============================================================================
--- head/sys/boot/fdt/dts/arm/cubieboard2.dts	Mon Sep 21 03:03:57 2015	(r288055)
+++ head/sys/boot/fdt/dts/arm/cubieboard2.dts	Mon Sep 21 03:17:41 2015	(r288056)
@@ -67,6 +67,10 @@
 			status = "okay";
 		};
 
+		gmac@01c50000 {
+			status = "okay";
+		};
+
 		ahci: sata@01c18000 {
 			status = "okay";
 		};



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