From 799a5102b8ea08995fff75a432b2653acee86122 Mon Sep 17 00:00:00 2001 From: kaloz Date: Thu, 5 Feb 2015 11:29:56 +0000 Subject: [PATCH] mvebu: add the Armada 385 Reference Design support Signed-off-by: Maxime Ripard Signed-off-by: Imre Kaloz git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44265 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/mvebu/image/Makefile | 3 +++ .../207-armada-385-rd-mtd-partitions.patch | 19 +++++++++++++++++++ .../207-armada-385-rd-mtd-partitions.patch | 19 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 target/linux/mvebu/patches-3.18/207-armada-385-rd-mtd-partitions.patch create mode 100644 target/linux/mvebu/patches-3.19/207-armada-385-rd-mtd-partitions.patch diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile index c8ec72e87c..19d7069b67 100644 --- a/target/linux/mvebu/image/Makefile +++ b/target/linux/mvebu/image/Makefile @@ -138,6 +138,9 @@ $(eval $(call NANDProfile,Mamba,armada-xp-mamba,128KiB,2048,512)) # Boards with large NOR, where we want to use UBI $(eval $(call UBINORProfile,OpenBlocks-AX-3-4,armada-xp-openblocks-ax3-4,128KiB)) +# Boards with small NOR, where UBI doesn't make sense +$(eval $(call NORProfile,385-RD,armada-385-rd,256KiB)) + define Image/Build/Profile/Mamba/squashfs $(call Image/Build/UbinizeImage,armada-xp-mamba,,squashfs, -p 128KiB -m 2048 -s 512) ( \ diff --git a/target/linux/mvebu/patches-3.18/207-armada-385-rd-mtd-partitions.patch b/target/linux/mvebu/patches-3.18/207-armada-385-rd-mtd-partitions.patch new file mode 100644 index 0000000000..80cec30649 --- /dev/null +++ b/target/linux/mvebu/patches-3.18/207-armada-385-rd-mtd-partitions.patch @@ -0,0 +1,19 @@ +--- a/arch/arm/boot/dts/armada-385-rd.dts ++++ b/arch/arm/boot/dts/armada-385-rd.dts +@@ -42,6 +42,16 @@ + compatible = "st,m25p128"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; ++ ++ partition@0 { ++ label = "uboot"; ++ reg = <0 0x400000>; ++ }; ++ ++ partition@1 { ++ label = "firmware"; ++ reg = <0x400000 0xc00000>; ++ }; + }; + }; + diff --git a/target/linux/mvebu/patches-3.19/207-armada-385-rd-mtd-partitions.patch b/target/linux/mvebu/patches-3.19/207-armada-385-rd-mtd-partitions.patch new file mode 100644 index 0000000000..80cec30649 --- /dev/null +++ b/target/linux/mvebu/patches-3.19/207-armada-385-rd-mtd-partitions.patch @@ -0,0 +1,19 @@ +--- a/arch/arm/boot/dts/armada-385-rd.dts ++++ b/arch/arm/boot/dts/armada-385-rd.dts +@@ -42,6 +42,16 @@ + compatible = "st,m25p128"; + reg = <0>; /* Chip select 0 */ + spi-max-frequency = <108000000>; ++ ++ partition@0 { ++ label = "uboot"; ++ reg = <0 0x400000>; ++ }; ++ ++ partition@1 { ++ label = "firmware"; ++ reg = <0x400000 0xc00000>; ++ }; + }; + }; + -- 2.11.0