1
0

400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 7d87d3dafc4b1ea5659eb71ee6c5fd5308490d1f Mon Sep 17 00:00:00 2001
  2. From: Oskari Lemmela <oskari@lemmela.net>
  3. Date: Mon, 31 Dec 2018 07:44:49 +0200
  4. Subject: [PATCH] arm64: allwinner: a64-sopine: Add Sopine flash partitions.
  5. First 896kB to u-boot. Enough space for SPL, u-boot and ATF.
  6. Next 128kB to u-boot environment and rest to firmware.
  7. Firmware partition is compatible FIT image dynamic splitting.
  8. Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
  9. ---
  10. .../boot/dts/allwinner/sun50i-a64-sopine.dtsi | 22 +++++++++++++++++++
  11. 1 file changed, 22 insertions(+)
  12. --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
  13. +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
  14. @@ -84,6 +84,28 @@
  15. compatible = "jedec,spi-nor";
  16. reg = <0>;
  17. spi-max-frequency = <40000000>;
  18. +
  19. + partitions {
  20. + compatible = "fixed-partitions";
  21. + #address-cells = <1>;
  22. + #size-cells = <1>;
  23. +
  24. + partition@0 {
  25. + label = "u-boot";
  26. + reg = <0x000000 0x0E0000>;
  27. + };
  28. +
  29. + partition@e0000 {
  30. + label = "u-boot-env";
  31. + reg = <0x0E0000 0x020000>;
  32. + };
  33. +
  34. + partition@100000 {
  35. + compatible = "denx,fit";
  36. + label = "firmware";
  37. + reg = <0x100000 0xF00000>;
  38. + };
  39. + };
  40. };
  41. };