aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Dembicki <paweldembicki@gmail.com>2019-02-15 16:08:53 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2019-02-17 19:22:39 +0100
commitd5f615bf2a0434c15d13943b566d46f25da579bb (patch)
treef6114499cb2f0e7bea48c727b506ab3f3c2c2c6e
parent155968275796eeade487a1bd6b8fefe832da44f3 (diff)
downloadupstream-d5f615bf2a0434c15d13943b566d46f25da579bb.tar.gz
upstream-d5f615bf2a0434c15d13943b566d46f25da579bb.tar.bz2
upstream-d5f615bf2a0434c15d13943b566d46f25da579bb.zip
sunxi: add support for Sinovoip Banana Pi M2 Plus
CPU: H3 Quad-core Cortex-A7 H.265/HEVC 4K @ 1.2 Ghz GPU: Mali400MP2 GPU @ 600MHz (supports OpenGL ES 2.0) Memory: 1GB DDR3 (shared with GPU) Onboard: Storage TF card (Max. 64GB) / MMC card slot Onboard: Network 10/100M Ethernet RJ45 (Realtek RTL8211E) Onboard: Network BT4.0/WiFi 802.11 b/g/n (Ampak AP6212) Onboard header: SPI, I2C, GPIO, UART USB 2.0: Two USB 2.0 HOST, One USB 2.0 OTG Untested: Audio, Video Not working: Bluetooth Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
-rw-r--r--package/boot/uboot-sunxi/Makefile7
l---------target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac43430a0-sdio.txt1
-rw-r--r--target/linux/sunxi/image/cortex-a7.mk12
3 files changed, 19 insertions, 1 deletions
diff --git a/package/boot/uboot-sunxi/Makefile b/package/boot/uboot-sunxi/Makefile
index 59aa4f0277..1d920507c7 100644
--- a/package/boot/uboot-sunxi/Makefile
+++ b/package/boot/uboot-sunxi/Makefile
@@ -204,6 +204,12 @@ define U-Boot/pine64_plus
UENV:=a64
endef
+define U-Boot/Sinovoip_BPI_M2_Plus
+ BUILD_SUBTARGET:=cortexa7
+ NAME:=Bananapi M2 Plus
+ BUILD_DEVICES:=sun8i-h3-bananapi-m2-plus
+endef
+
define U-Boot/sopine_baseboard
BUILD_SUBTARGET:=cortexa53
NAME:=Sopine Baseboard
@@ -260,6 +266,7 @@ UBOOT_TARGETS := \
orangepi_pc2 \
pangolin \
pine64_plus \
+ Sinovoip_BPI_M2_Plus \
sopine_baseboard \
orangepi_zero_plus
diff --git a/target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac43430a0-sdio.txt b/target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac43430a0-sdio.txt
new file mode 120000
index 0000000000..2ed6689828
--- /dev/null
+++ b/target/linux/sunxi/base-files/lib/firmware/brcm/brcmfmac43430a0-sdio.txt
@@ -0,0 +1 @@
+brcmfmac43430-sdio.txt \ No newline at end of file
diff --git a/target/linux/sunxi/image/cortex-a7.mk b/target/linux/sunxi/image/cortex-a7.mk
index 969864bb76..58c3b6fc40 100644
--- a/target/linux/sunxi/image/cortex-a7.mk
+++ b/target/linux/sunxi/image/cortex-a7.mk
@@ -1,5 +1,5 @@
#
-# Copyright (C) 2013-2016 OpenWrt.org
+# Copyright (C) 2013-2019 OpenWrt.org
# Copyright (C) 2016 Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
@@ -127,6 +127,16 @@ endef
TARGET_DEVICES += sun8i-h2-plus-orangepi-r1
+define Device/sun8i-h3-bananapi-m2-plus
+ DEVICE_TITLE:=Sinovoip Banana Pi M2 Plus
+ DEVICE_PACKAGES:=kmod-rtc-sunxi \
+ kmod-leds-gpio kmod-ledtrig-heartbeat \
+ kmod-brcmfmac brcmfmac-firmware-43430a0-sdio wpad-basic
+ SUPPORTED_DEVICES:=sinovoip,bananapi-m2-plus
+ SUNXI_DTS:=sun8i-h3-bananapi-m2-plus
+endef
+
+TARGET_DEVICES += sun8i-h3-bananapi-m2-plus
define Device/sun8i-h3-nanopi-m1-plus
DEVICE_TITLE:=FriendlyArm NanoPi M1 Plus