aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-4.19
diff options
context:
space:
mode:
authorOskari Lemmela <oskari@lemmela.net>2019-01-14 19:54:23 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-01-26 23:11:49 +0100
commit538127cf981e0f7f71a75b365d95575b0f7263e1 (patch)
tree2f4a14f6cb4e40ae44aa9626c0cb8dda4aa515f1 /target/linux/sunxi/patches-4.19
parent72102b11b819c2b76237376f0688a8bd068afba9 (diff)
downloadupstream-538127cf981e0f7f71a75b365d95575b0f7263e1.tar.gz
upstream-538127cf981e0f7f71a75b365d95575b0f7263e1.tar.bz2
upstream-538127cf981e0f7f71a75b365d95575b0f7263e1.zip
sunxi: spi flash dts changes
Backport A64 SPI flash DTS changes to 4.14 kernel. Add Openwrt specific flash partitions to Sopine. Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Diffstat (limited to 'target/linux/sunxi/patches-4.19')
-rw-r--r--target/linux/sunxi/patches-4.19/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.19/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch b/target/linux/sunxi/patches-4.19/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch
new file mode 100644
index 0000000000..200cf9555e
--- /dev/null
+++ b/target/linux/sunxi/patches-4.19/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch
@@ -0,0 +1,51 @@
+From 7d87d3dafc4b1ea5659eb71ee6c5fd5308490d1f Mon Sep 17 00:00:00 2001
+From: Oskari Lemmela <oskari@lemmela.net>
+Date: Mon, 31 Dec 2018 07:44:49 +0200
+Subject: [PATCH] arm64: allwinner: a64-sopine: Add Sopine flash partitions.
+
+First 896kB to u-boot. Enough space for SPL, u-boot and ATF.
+Next 128kB to u-boot environment and rest to firmware.
+
+Firmware partition is compatible FIT image dynamic splitting.
+
+Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
+---
+ .../boot/dts/allwinner/sun50i-a64-sopine.dtsi | 22 +++++++++++++++++++
+ 1 file changed, 22 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
+index 6723b8695e0b..3e879fefe3d5 100644
+--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
+@@ -78,6 +78,28 @@
+ compatible = "jedec,spi-nor";
+ reg = <0>;
+ spi-max-frequency = <40000000>;
++
++ partitions {
++ compatible = "fixed-partitions";
++ #address-cells = <1>;
++ #size-cells = <1>;
++
++ partition@0 {
++ label = "u-boot";
++ reg = <0x000000 0x0E0000>;
++ };
++
++ partition@e0000 {
++ label = "u-boot-env";
++ reg = <0x0E0000 0x020000>;
++ };
++
++ partition@100000 {
++ compatible = "denx,fit";
++ label = "firmware";
++ reg = <0x100000 0xF00000>;
++ };
++ };
+ };
+ };
+
+--
+2.17.1
+