mediatek: convert mt7988a-rfb to keep bl31/uboot in UBI
[openwrt/openwrt.git] / package / boot / uboot-mediatek / patches / 105-configs-add-usefull-stuff-to-mt7988-rfb.patch
index 311a828a9370b7c3b50c1cae9215c50a4e755d19..535af4fa0956a62b9826169286477bf773dab86b 100644 (file)
  CONFIG_MMC_HS200_SUPPORT=y
  CONFIG_MMC_MTK=y
  CONFIG_MTD=y
+--- a/arch/arm/dts/mt7988-rfb.dts
++++ b/arch/arm/dts/mt7988-rfb.dts
+@@ -144,6 +144,23 @@
+               compatible = "spi-nand";
+               reg = <0>;
+               spi-max-frequency = <52000000>;
++
++              partitions {
++                      compatible = "fixed-partitions";
++                      #address-cells = <1>;
++                      #size-cells = <1>;
++
++                      partition@0 {
++                              label = "bl2";
++                              reg = <0x0 0x200000>;
++                      };
++
++                      partition@200000 {
++                              label = "ubi";
++                              reg = <0x200000 0x7e00000>;
++                              compatible = "linux,ubi";
++                      };
++              };
+       };
+ };