From owner-svn-src-head@FreeBSD.ORG Mon Mar 3 11:36:41 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51FB416F; Mon, 3 Mar 2014 11:36:41 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3DE1FD32; Mon, 3 Mar 2014 11:36:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s23BafIm079578; Mon, 3 Mar 2014 11:36:41 GMT (envelope-from ganbold@svn.freebsd.org) Received: (from ganbold@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s23BaeB9079572; Mon, 3 Mar 2014 11:36:40 GMT (envelope-from ganbold@svn.freebsd.org) Message-Id: <201403031136.s23BaeB9079572@svn.freebsd.org> From: Ganbold Tsagaankhuu Date: Mon, 3 Mar 2014 11:36:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262711 - in head/sys: arm/allwinner arm/allwinner/a20 arm/conf boot/fdt/dts/arm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2014 11:36:41 -0000 Author: ganbold Date: Mon Mar 3 11:36:39 2014 New Revision: 262711 URL: http://svnweb.freebsd.org/changeset/base/262711 Log: Add EMAC and SRAM controller entries to FDT. Add EMAC device to kernel config files and enable EMAC, SRAM drivers for build. Approved by: stas (mentor) Modified: head/sys/arm/allwinner/a20/files.a20 head/sys/arm/allwinner/files.a10 head/sys/arm/conf/CUBIEBOARD head/sys/arm/conf/CUBIEBOARD2 head/sys/boot/fdt/dts/arm/cubieboard.dts head/sys/boot/fdt/dts/arm/cubieboard2.dts Modified: head/sys/arm/allwinner/a20/files.a20 ============================================================================== --- head/sys/arm/allwinner/a20/files.a20 Mon Mar 3 11:32:55 2014 (r262710) +++ head/sys/arm/allwinner/a20/files.a20 Mon Mar 3 11:36:39 2014 (r262711) @@ -12,8 +12,10 @@ arm/arm/gic.c standard arm/allwinner/a20/a20_cpu_cfg.c standard arm/allwinner/a10_clk.c standard +arm/allwinner/a10_sramc.c standard arm/allwinner/a10_gpio.c optional gpio arm/allwinner/a10_ehci.c optional ehci +arm/allwinner/if_emac.c optional emac arm/allwinner/a10_wdog.c standard arm/allwinner/timer.c standard arm/arm/bus_space-v6.c standard Modified: head/sys/arm/allwinner/files.a10 ============================================================================== --- head/sys/arm/allwinner/files.a10 Mon Mar 3 11:32:55 2014 (r262710) +++ head/sys/arm/allwinner/files.a10 Mon Mar 3 11:36:39 2014 (r262711) @@ -11,8 +11,10 @@ arm/arm/irq_dispatch.S standard arm/allwinner/a20/a20_cpu_cfg.c standard arm/allwinner/a10_clk.c standard +arm/allwinner/a10_sramc.c standard arm/allwinner/a10_gpio.c optional gpio arm/allwinner/a10_ehci.c optional ehci +arm/allwinner/if_emac.c optional emac arm/allwinner/a10_wdog.c standard arm/allwinner/timer.c standard arm/allwinner/aintc.c standard Modified: head/sys/arm/conf/CUBIEBOARD ============================================================================== --- head/sys/arm/conf/CUBIEBOARD Mon Mar 3 11:32:55 2014 (r262710) +++ head/sys/arm/conf/CUBIEBOARD Mon Mar 3 11:36:39 2014 (r262711) @@ -125,6 +125,8 @@ device smscphy #device cpsw device bpf +device emac + # USB ethernet support, requires miibus device miibus Modified: head/sys/arm/conf/CUBIEBOARD2 ============================================================================== --- head/sys/arm/conf/CUBIEBOARD2 Mon Mar 3 11:32:55 2014 (r262710) +++ head/sys/arm/conf/CUBIEBOARD2 Mon Mar 3 11:36:39 2014 (r262711) @@ -125,6 +125,8 @@ device smscphy #device cpsw device bpf +device emac + # USB ethernet support, requires miibus device miibus Modified: head/sys/boot/fdt/dts/arm/cubieboard.dts ============================================================================== --- head/sys/boot/fdt/dts/arm/cubieboard.dts Mon Mar 3 11:32:55 2014 (r262710) +++ head/sys/boot/fdt/dts/arm/cubieboard.dts Mon Mar 3 11:36:39 2014 (r262711) @@ -61,6 +61,13 @@ reg = < 0x01c20400 0x400 >; }; + sramc@01c00000 { + compatible = "allwinner,sun4i-sramc"; + #address-cells = <1>; + #size-cells = <1>; + reg = < 0x01c00000 0x1000 >; + }; + ccm@01c20000 { compatible = "allwinner,sun4i-ccm"; #address-cells = <1>; @@ -124,6 +131,13 @@ busy-detect = <1>; broken-txfifo = <1>; }; + + emac@01c0b000 { + compatible = "allwinner,sun4i-emac"; + reg = <0x01c0b000 0x1000>; + interrupts = <55>; + interrupt-parent = <&AINTC>; + }; }; chosen { Modified: head/sys/boot/fdt/dts/arm/cubieboard2.dts ============================================================================== --- head/sys/boot/fdt/dts/arm/cubieboard2.dts Mon Mar 3 11:32:55 2014 (r262710) +++ head/sys/boot/fdt/dts/arm/cubieboard2.dts Mon Mar 3 11:36:39 2014 (r262711) @@ -61,6 +61,13 @@ #interrupt-cells = <1>; }; + sramc@01c00000 { + compatible = "allwinner,sun4i-sramc"; + #address-cells = <1>; + #size-cells = <1>; + reg = < 0x01c00000 0x1000 >; + }; + cpu-cfg@01c25c00 { compatible = "allwinner,sun7i-cpu-cfg"; #address-cells = <1>; @@ -130,6 +137,13 @@ busy-detect = <1>; broken-txfifo = <1>; }; + + emac@01c0b000 { + compatible = "allwinner,sun4i-emac"; + reg = <0x01c0b000 0x1000>; + interrupts = <55>; + interrupt-parent = <&GIC>; + }; }; chosen {