]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_SYS_USB_FAT_BOOT_PARTITION to Kconfig
authorTom Rini <trini@konsulko.com>
Mon, 13 Jun 2022 00:02:05 +0000 (20:02 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jun 2022 21:11:48 +0000 (17:11 -0400)
This converts the following to Kconfig:
   CONFIG_SYS_USB_FAT_BOOT_PARTITION

Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/Kconfig
include/configs/am43xx_evm.h
include/configs/am64x_evm.h
include/configs/am65x_evm.h

index 42f2c95228a6f7279eab315d1b1480571cc129d2..3fd564480061dad50112cb386b9d69addb1eb16a 100644 (file)
@@ -1317,6 +1317,13 @@ config SPL_USB_STORAGE
          config options. This enables loading from USB using a configured
          device.
 
+config SYS_USB_FAT_BOOT_PARTITION
+       int "Partition on USB to use to load U-Boot from"
+       depends on SPL_USB_STORAGE
+       default 1
+       help
+         Partition on the USB storage device to load U-Boot from
+
 config SPL_USB_GADGET
        bool "Suppport USB Gadget drivers"
        help
index e0138fe1db83b4dbd758e901f19c28c93545e116..e3a01adae971823acd5a8f620873e2bdfeb7bd78 100644 (file)
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550_COM1                0x44e09000      /* Base EVM has UART0 */
 
-/* SPL USB Support */
-
-#if defined(CONFIG_SPL_USB_HOST) || !defined(CONFIG_SPL_BUILD)
-#define CONFIG_SYS_USB_FAT_BOOT_PARTITION              1
-#endif
-
 #ifndef CONFIG_SPL_BUILD
 /* USB Device Firmware Update support */
 #define DFUARGS \
index 6da11b86c4b174500412ef0e2b0bc624c10b92c1..140940730d0ef8706645339b483bbc4a3fa77c3a 100644 (file)
 /* Now for the remaining common defines */
 #include <configs/ti_armv7_common.h>
 
-#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1
-
 #endif /* __CONFIG_AM642_EVM_H */
index db35af98d9aa1e029a7a5903f5ffba15c0e60f13..65b0a576a6f4f4190f2ddb3e7077c6065d1e5bb3 100644 (file)
        EXTRA_ENV_DFUARGS                                               \
        BOOTENV
 
-#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1
-
 /* Now for the remaining common defines */
 #include <configs/ti_armv7_common.h>