From 61ebeff43c560a5564c2cf82c8a605670e2a7879 Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Mon, 21 Sep 2015 03:17:41 +0000 Subject: [PATCH] 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. --- sys/arm/conf/A20 | 5 +++-- sys/boot/fdt/dts/arm/cubieboard2.dts | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/arm/conf/A20 b/sys/arm/conf/A20 index 00cdb8f41cd..3bac4551858 100644 --- a/sys/arm/conf/A20 +++ b/sys/arm/conf/A20 @@ -47,7 +47,7 @@ options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed #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 diff --git a/sys/boot/fdt/dts/arm/cubieboard2.dts b/sys/boot/fdt/dts/arm/cubieboard2.dts index 700952a81ea..480df660e73 100644 --- a/sys/boot/fdt/dts/arm/cubieboard2.dts +++ b/sys/boot/fdt/dts/arm/cubieboard2.dts @@ -67,6 +67,10 @@ status = "okay"; }; + gmac@01c50000 { + status = "okay"; + }; + ahci: sata@01c18000 { status = "okay"; };