]> git.sur5r.net Git - u-boot/commitdiff
spl: move FDT_FIXUP_PARTITIONS to Kconfig
authorHeiko Schocher <hs@denx.de>
Thu, 6 Oct 2016 05:31:45 +0000 (07:31 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 15 Oct 2016 12:12:46 +0000 (08:12 -0400)
Move FDT_FIXUP_PARTITIONS to Kconfig and cleanup existing
uses.

Signed-off-by: Heiko Schocher <hs@denx.de>
29 files changed:
configs/BSC9131RDB_NAND_SYSCLK100_defconfig
configs/BSC9131RDB_NAND_defconfig
configs/BSC9131RDB_SPIFLASH_SYSCLK100_defconfig
configs/BSC9131RDB_SPIFLASH_defconfig
configs/BSC9132QDS_NAND_DDRCLK100_SECURE_defconfig
configs/BSC9132QDS_NAND_DDRCLK100_defconfig
configs/BSC9132QDS_NAND_DDRCLK133_SECURE_defconfig
configs/BSC9132QDS_NAND_DDRCLK133_defconfig
configs/BSC9132QDS_NOR_DDRCLK100_SECURE_defconfig
configs/BSC9132QDS_NOR_DDRCLK100_defconfig
configs/BSC9132QDS_NOR_DDRCLK133_SECURE_defconfig
configs/BSC9132QDS_NOR_DDRCLK133_defconfig
configs/BSC9132QDS_SDCARD_DDRCLK100_SECURE_defconfig
configs/BSC9132QDS_SDCARD_DDRCLK100_defconfig
configs/BSC9132QDS_SDCARD_DDRCLK133_SECURE_defconfig
configs/BSC9132QDS_SDCARD_DDRCLK133_defconfig
configs/BSC9132QDS_SPIFLASH_DDRCLK100_SECURE_defconfig
configs/BSC9132QDS_SPIFLASH_DDRCLK100_defconfig
configs/BSC9132QDS_SPIFLASH_DDRCLK133_SECURE_defconfig
configs/BSC9132QDS_SPIFLASH_DDRCLK133_defconfig
configs/cm_fx6_defconfig
configs/gwventana_defconfig
configs/pdm360ng_defconfig
include/configs/BSC9131RDB.h
include/configs/BSC9132QDS.h
include/configs/cm_fx6.h
include/configs/gw_ventana.h
include/configs/pdm360ng.h
lib/Kconfig

index babcdd593e7f8dfbe1afc352e0f0ff7ca35bc589..9a697855c09ae9c5155a0daf01412979ef12937a 100644 (file)
@@ -28,3 +28,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index ad0062284b443bee16fb4db855cd0b8cd763f1ed..46b5b8e64e6405c07534f58537a0ffb911b052df 100644 (file)
@@ -28,3 +28,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 904556718ffe2f1329014931c9df4277249d189a..9a50d0c307c62343d2a82539f204c6347ea2c153 100644 (file)
@@ -25,3 +25,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 178618c209a94452d55d7295357be90283ffba48..ebb41d21f5dcfcd64fd6df23bfe252f472ececb8 100644 (file)
@@ -25,3 +25,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index e678144f20f928b5c819c840346915643d730310..5bed9aabe145cb936904b8ce25e51b9031edad37 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index e6fde47b8d1ebe1f7649e825ea98e7ae918af6fc..defeee14f3bdddfe1a42c5a8f0719844634cd64e 100644 (file)
@@ -29,3 +29,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 1d9b54174d51c1e67108c6ee82f4cc3264daae65..3a695fc868f2bb8d39a19a7fdbb3614685b7e492 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 235f304c1a9e58b4f2fd37bdda4c37597c1eb595..6600d1e543186b63d01f40aa17aa38d02d98208e 100644 (file)
@@ -29,3 +29,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index f193c4b51c2aa8e4558a14e6a6382bad455cbff4..8d26cc53ca348a3e5a44a183df5121dccfe9406b 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 4c9c955b9f7cc811d88b7d523fc2c9f199acc789..eb1c1de37b3577a79492198e0176c3d36ce0625b 100644 (file)
@@ -26,3 +26,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 74c3385c31cd86ce76aef13f1d996bd7716b6734..5359109617ff9b22aea420f6430baffc7603cb81 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 4bc83ef967f9876239438c1dba2600b1d937e968..83a9840372490b307092d25a3edf525a8741c864 100644 (file)
@@ -26,3 +26,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 0bea345f38b92fcb46060142c5172959f3f9a88b..f50c833e260bc9c4f91f7b2d4530399a11b76740 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index f16b1b117775ae8e1e279e31eb1635a887e02301..2f28087d1b4f0ad58cfbf19f6cd12207433fc729 100644 (file)
@@ -26,3 +26,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index d24f21626e2e67e8e6aa3434f30170f6f7f4996c..596ebad45c8e84131f3a56c29b9accbb791f9cb8 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index a9555db150c3b78886c3183847f37764995c039c..cc12251280adccec601615a415c089959bdcd6ed 100644 (file)
@@ -26,3 +26,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 06a1770c1cc87b0534110b1fcd498d81eb205844..c56f9d204e63a3ee6ed3172a5ab45be68a83c14e 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index c86ce6f5351b71021c1c50926d71a2116949ade8..86f5b87a64be4a9e8be3a2325c21375e7d550077 100644 (file)
@@ -26,3 +26,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 6f6f2dc787e254f10a1449f8688161c46010a1a3..f9f671e99019fe49c72a0770fa48439a5fd704e0 100644 (file)
@@ -30,3 +30,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_RSA=y
 CONFIG_SPL_RSA=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index da71c54663c3ab1968c8422d234c67b45bf881f2..8594ff32cf75a343c4066ed254601d88dd5b27c5 100644 (file)
@@ -26,3 +26,4 @@ CONFIG_FSL_ESPI=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 998bc0542b6051e58cf57fc30b0b59f4101dd337..7c413d5efdfd7a246626611e1a1a51f529c53cd1 100644 (file)
@@ -53,3 +53,4 @@ CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index ee823d26e1df3f36b1714c1f9a183c5e94a07c01..c0904b194dbe6f79b63dc6bd270dabb7d4e42b31 100644 (file)
@@ -55,3 +55,4 @@ CONFIG_G_DNL_MANUFACTURER="Gateworks"
 CONFIG_G_DNL_VENDOR_NUM=0x0525
 CONFIG_G_DNL_PRODUCT_NUM=0xa4a5
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index f3de685392c8ecbf0aed7fdc052f3d7af52ff46d..9b8aa2f03ab972c63cb913070fcb7850761a33b1 100644 (file)
@@ -13,3 +13,4 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FDT_FIXUP_PARTITIONS=y
index 81021ba5a33e552668e54d5ba0937b90d9150ea7..057a3cfc933ec80c6c7be50fc8dc87f16340fb8f 100644 (file)
@@ -367,13 +367,6 @@ extern unsigned long get_sdram_size(void);
 #define MTDIDS_DEFAULT "nand0=ff800000.flash,"
 #define MTDPARTS_DEFAULT "mtdparts=ff800000.flash:1m(uboot)," \
                        "8m(kernel),512k(dtb),-(fs)"
-/*
- * Override partitions in device tree using info
- * in "mtdparts" environment variable
- */
-#ifdef CONFIG_CMD_MTDPARTS
-#define CONFIG_FDT_FIXUP_PARTITIONS
-#endif
 
 /*
  * Environment Configuration
index 6c5c172144892239d1c8a607c3bbf4ff72c1ddcc..1c8a77baba9554375c3cef5544a3cbc83ddbb3de 100644 (file)
@@ -604,14 +604,6 @@ combinations. this should be removed later
                        "55m(fs),1m(uboot);ff800000.flash:1m(uboot)," \
                        "8m(kernel),512k(dtb),-(fs)"
 #endif
-/*
- * Override partitions in device tree using info
- * in "mtdparts" environment variable
- */
-#ifdef CONFIG_CMD_MTDPARTS
-#define CONFIG_FDT_FIXUP_PARTITIONS
-#endif
-
 /*
  * Environment Configuration
  */
index 46584fdf746ab5b4489ebe423f18c35d39a6bed8..b0d8c5f3ab4751a2502011678e0ecf646a8c0200 100644 (file)
@@ -56,7 +56,6 @@
 
 /* MTD support */
 #ifndef CONFIG_SPL_BUILD
-#define CONFIG_FDT_FIXUP_PARTITIONS
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
 #define CONFIG_SPI_FLASH_MTD
index 882d2138d21fd7c3f068ff841752d72b54a0241f..0b0587662409dde8171820e846cfcfe756a41ed8 100644 (file)
                "if run ${btype}_boot; then; fi; " \
        "done"
 
-/* Device Tree Support */
-#define CONFIG_FDT_FIXUP_PARTITIONS
-
 #endif                        /* __CONFIG_H */
index 3c86b25267acc9201541b21b8f2c26baa25bd1a3..2e72889b477263dcae16b74cff5cbcd3327eff4f 100644 (file)
                                        "f8000000.flash:-(unused);"     \
                                        "MPC5121 NAND:1024m(extended-userfs)"
 
-/*
- * Override partitions in device tree using info
- * in "mtdparts" environment variable
- */
-#ifdef CONFIG_CMD_MTDPARTS
-#define CONFIG_FDT_FIXUP_PARTITIONS
-#endif
-
 #define CONFIG_SYS_MONITOR_BASE                CONFIG_SYS_TEXT_BASE    /* Start of monitor */
 #define CONFIG_SYS_MONITOR_LEN         (512 * 1024)    /* 512 kB for monitor */
 #ifdef CONFIG_FSL_DIU_FB
index 16ff01a2cd37490e131924bf6c0d04b5f88823d0..0e0d8efd33f045719ccde573ec30928f0ee66a56 100644 (file)
@@ -154,6 +154,15 @@ config SPL_OF_LIBFDT
          particular compatible nodes. The library operates on a flattened
          version of the device tree.
 
+config FDT_FIXUP_PARTITIONS
+       bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
+       depends on OF_LIBFDT
+       default n
+       help
+         Allow overwriting defined partitions in the device tree blob
+         using partition info defined in the 'mtdparts' environment
+         variable.
+
 source lib/efi/Kconfig
 source lib/efi_loader/Kconfig