[OpenWrt-Devel] [PATCH 6/7] uboot-sunxi: add support for Lamobo R1
Daniel Golle
daniel at makrotopia.org
Sat Jan 10 13:10:22 EST 2015
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 <daniel at makrotopia.org>
---
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
--
2.2.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list