[OpenWrt-Devel,RFC,5/5] target: mvebu: Add a new board for the Mirabox
diff mbox

Message ID 1418397665-28828-6-git-send-email-maxime.ripard@free-electrons.com
State RFC
Headers show

Commit Message

Maxime Ripard Dec. 12, 2014, 3:21 p.m. UTC
The Mirabox has different NAND options than the one used in the generic board,
mostly because of its 512k page size.

Add a new board for it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 target/linux/mvebu/boards/generic.mk |  1 -
 target/linux/mvebu/boards/mirabox.mk | 13 +++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/mvebu/boards/mirabox.mk

Patch
diff mbox

diff --git a/target/linux/mvebu/boards/generic.mk b/target/linux/mvebu/boards/generic.mk
index e4ac20ecf473..3ec74c877d30 100644
--- a/target/linux/mvebu/boards/generic.mk
+++ b/target/linux/mvebu/boards/generic.mk
@@ -8,7 +8,6 @@ 
 GENERIC_UBI_OPTS = -m 2048 -p 128KiB -s 512 -O 2048
 GENERIC_DTB = \
 	armada-370-db \
-	armada-370-mirabox \
 	armada-370-rd \
 	armada-xp-db \
 	armada-xp-gp \
diff --git a/target/linux/mvebu/boards/mirabox.mk b/target/linux/mvebu/boards/mirabox.mk
new file mode 100644
index 000000000000..23b5bde78bc1
--- /dev/null
+++ b/target/linux/mvebu/boards/mirabox.mk
@@ -0,0 +1,13 @@ 
+#
+# Copyright (C) 2014 Maxime Ripard
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+MIRABOX_UBI_OPTS = -m 4096 -p 512KiB -O 4096
+
+MIRABOX_DTB = \
+	armada-370-mirabox
+
+$(eval $(call Board, MIRABOX))