From patchwork Sat Jan 10 18:10:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 427392 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AFCB214016B for ; Sun, 11 Jan 2015 05:11:27 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2E5ED2844C5; Sat, 10 Jan 2015 19:07:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id C495B2844A6 for ; Sat, 10 Jan 2015 19:07:15 +0100 (CET) X-policyd-weight: using cached result; rate: -7.6 Received: from fudo.makrotopia.org (fudo.makrotopia.org [5.135.190.93]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 10 Jan 2015 19:07:13 +0100 (CET) Received: from local by fudo.makrotopia.org with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.84) (envelope-from ) id 1YA0TR-0007se-HL; Sat, 10 Jan 2015 19:09:22 +0100 Date: Sat, 10 Jan 2015 19:10:22 +0100 From: Daniel Golle To: openwrt-devel@lists.openwrt.org Message-ID: <20150110181017.GA27591@makrotopia.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Subject: [OpenWrt-Devel] [PATCH 6/7] uboot-sunxi: add support for Lamobo R1 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Seems to be identical with bananapi, however, sdcard image generation scripts currently depend on having u-boot named the same as the profile. Signed-off-by: Daniel Golle --- package/boot/uboot-sunxi/Makefile | 5 +++ .../uboot-sunxi/patches/004-add-lamobo-r1.patch | 37 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 package/boot/uboot-sunxi/patches/004-add-lamobo-r1.patch diff --git a/package/boot/uboot-sunxi/Makefile b/package/boot/uboot-sunxi/Makefile index d61e4a3..6571088 100644 --- a/package/boot/uboot-sunxi/Makefile +++ b/package/boot/uboot-sunxi/Makefile @@ -86,6 +86,10 @@ define uboot/Linksprite_pcDuino3 TITLE:=U-Boot for Linksprite pcDuino3 endef +define uboot/Lamobo-R1 + TITLE:=U-Boot for Lamobo R1 +endef + UBOOTS:= \ A10-OLinuXino-Lime \ A13-OLinuXino \ @@ -101,6 +105,7 @@ UBOOTS:= \ OLIMEX-A13-SOM \ Linksprite_pcDuino \ Linksprite_pcDuino3 \ + Lamobo-R1 \ define Package/uboot/template define Package/uboot-sunxi-$(1) diff --git a/package/boot/uboot-sunxi/patches/004-add-lamobo-r1.patch b/package/boot/uboot-sunxi/patches/004-add-lamobo-r1.patch new file mode 100644 index 0000000..7f52cce --- /dev/null +++ b/package/boot/uboot-sunxi/patches/004-add-lamobo-r1.patch @@ -0,0 +1,37 @@ +Index: u-boot-2015.01-rc4/board/sunxi/Makefile +=================================================================== +--- u-boot-2015.01-rc4.orig/board/sunxi/Makefile ++++ u-boot-2015.01-rc4/board/sunxi/Makefile +@@ -23,6 +23,7 @@ obj-$(CONFIG_TARGET_AUXTEK_T004) += dram + obj-$(CONFIG_TARGET_BA10_TV_BOX) += dram_sun4i_384_1024_iow8.o + obj-$(CONFIG_TARGET_BANANAPI) += dram_bananapi.o + obj-$(CONFIG_TARGET_BANANAPRO) += dram_bananapi.o ++obj-$(CONFIG_TARGET_LAMOBO_R1) += dram_bananapi.o + obj-$(CONFIG_TARGET_CUBIEBOARD) += dram_cubieboard.o + obj-$(CONFIG_TARGET_CUBIEBOARD2) += dram_cubieboard2.o + obj-$(CONFIG_TARGET_CUBIETRUCK) += dram_cubietruck.o +Index: u-boot-2015.01-rc4/board/sunxi/gmac.c +=================================================================== +--- u-boot-2015.01-rc4.orig/board/sunxi/gmac.c ++++ u-boot-2015.01-rc4/board/sunxi/gmac.c +@@ -34,7 +34,7 @@ int sunxi_gmac_initialize(bd_t *bis) + * need to set bits 10-12 GTXDC "GMAC Transmit Clock Delay Chain" + * of the GMAC clk register to 3. + */ +-#ifdef CONFIG_TARGET_BANANAPI ++#if defined(CONFIG_TARGET_BANANAPI) || defined(CONFIG_TARGET_LAMOBO_R1) + setbits_le32(&ccm->gmac_clk_cfg, 0x3 << 10); + #endif + +Index: u-boot-2015.01-rc4/configs/Lamobo-R1_defconfig +=================================================================== +--- /dev/null ++++ u-boot-2015.01-rc4/configs/Lamobo-R1_defconfig +@@ -0,0 +1,7 @@ ++CONFIG_SPL=y ++CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI" ++CONFIG_FDTFILE="sun7i-a20-lamobo-r1.dtb" +++S:CONFIG_ARM=y +++S:CONFIG_ARCH_SUNXI=y +++S:CONFIG_MACH_SUN7I=y +++S:CONFIG_TARGET_LAMOBO_R1=y