[OpenWrt-Devel,7/9] sunxi: Added profile for HAOYU Electronics Marsboard A10

Message ID 1508703687-25650-8-git-send-email-wigyori@uid0.hu
State New
Headers show
Series
  • merge: add missing devices / commits into LEDE
Related show

Commit Message

Zoltan HERPAI Oct. 22, 2017, 8:21 p.m.
From: Kayo Phoenix <kayo@illumium.org>

The MarsBoard was a short-lived credit-card sized, extendable board with an Allwinner A10 SoC.
http://linux-sunxi.org/MarsBoard_A10

Signed-off-by: Kayo Phoenix <kayo@illumium.org>
[Forward-ported to new target layout:]
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
---
 package/boot/uboot-sunxi/Makefile     |  6 ++++++
 target/linux/sunxi/image/cortex-a8.mk | 10 ++++++++++
 2 files changed, 16 insertions(+)

Patch

diff --git a/package/boot/uboot-sunxi/Makefile b/package/boot/uboot-sunxi/Makefile
index 50c6b06..d986f62 100644
--- a/package/boot/uboot-sunxi/Makefile
+++ b/package/boot/uboot-sunxi/Makefile
@@ -96,6 +96,12 @@  define U-Boot/Hummingbird_A31
   NAME:=Hummingbird A31 board
 endef
 
+define U-Boot/Marsboard
+  BUILD_SUBTARGET:=cortexa8
+  NAME:=Marsboard
+  BUILD_DEVICES:=sun4i-a10-marsboard
+endef
+
 define U-Boot/Mele_M9
   BUILD_SUBTARGET:=cortexa7
   NAME:=Mele M9 (A31)
diff --git a/target/linux/sunxi/image/cortex-a8.mk b/target/linux/sunxi/image/cortex-a8.mk
index 97e033d..564a66f 100644
--- a/target/linux/sunxi/image/cortex-a8.mk
+++ b/target/linux/sunxi/image/cortex-a8.mk
@@ -56,4 +56,14 @@  endef
 
 TARGET_DEVICES += sun4i-a10-pcduino
 
+
+define Device/sun4i-a10-marsboard
+  DEVICE_TITLE:=HAOYU Electronics Marsboard A10
+  DEVICE_PACKAGES:=mod-ata-core kmod-ata-sunxi kmod-sun4i-emac kmod-rtc-sunxi sound-soc-sunxi
+  SUPPORTED_DEVICES:=marsboard,a10-marsboard
+  SUNXI_DTS:=sun4i-a10-marsboard
+endef
+
+TARGET_DEVICES += sun4i-a10-marsboard
+
 endif