]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - common/spl/Kconfig
spl: separate SPL_FRAMEWORK config for spl and tpl
[thirdparty/u-boot.git] / common / spl / Kconfig
index 282d246ea3896d087035f6a77782386afd8bfbe1..1f122833a777ea813ebb8e7a251fb1bc0fef7e37 100644 (file)
@@ -353,6 +353,28 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_TYPE
          Partition Type on the MMC to load U-Boot from, when the MMC is being
          used in raw mode.
 
+config SUPPORT_EMMC_BOOT_OVERRIDE_PART_CONFIG
+       bool "Override eMMC EXT_CSC_PART_CONFIG by user defined partition"
+       depends on SUPPORT_EMMC_BOOT
+       help
+         eMMC boot partition is normally configured by the bits of the EXT_CSD
+         register (EXT_CSC_PART_CONFIG), BOOT_PARTITION_ENABLE field. In some
+         cases it might be required in SPL to load the image from different
+         partition than the partition selected by EXT_CSC_PART_CONFIG register.
+         Enable this option if you intend to use an eMMC boot partition other
+         then selected via EXT_CSC_PART_CONFIG register and specify the custom
+         partition number by the CONFIG_SYS_MMCSD_RAW_MODE_EMMC_BOOT_PARTITION
+         option.
+
+config SYS_MMCSD_RAW_MODE_EMMC_BOOT_PARTITION
+       int "Number of the eMMC boot partition to use"
+       depends on SUPPORT_EMMC_BOOT_OVERRIDE_PART_CONFIG
+       default 1
+       help
+         eMMC boot partition number to use when the eMMC in raw mode and
+         the eMMC EXT_CSC_PART_CONFIG selection should be overridden in SPL
+         by user defined partition number.
+
 config SPL_CRC32_SUPPORT
        bool "Support CRC32"
        default y if SPL_LEGACY_IMAGE_SUPPORT
@@ -691,6 +713,13 @@ config SPL_UBI
          Enable support for loading payloads from UBI. See
          README.ubispl for more info.
 
+if SPL_DM
+config SPL_DM_SPI
+       bool "Support SPI DM drivers in SPL"
+       help
+         Enable support for SPI DM drivers in SPL.
+
+endif
 if SPL_UBI
 config SPL_UBI_LOAD_BY_VOLNAME
        bool "Support loading volumes by name"
@@ -985,8 +1014,19 @@ config SPL_SERIAL_SUPPORT
          unless there are space reasons not to. Even then, consider
          enabling SPL_USE_TINY_PRINTF which is a small printf() version.
 
+config SPL_SPI_SUPPORT
+       bool "Support SPI drivers"
+       help
+         Enable support for using SPI in SPL. This is used for connecting
+         to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
+         more details on that. The SPI driver provides the transport for
+         data between the SPI flash and the CPU. This option can be used to
+         enable SPI drivers that are needed for other purposes also, such
+         as a SPI PMIC.
+
 config SPL_SPI_FLASH_SUPPORT
        bool "Support SPI flash drivers"
+       depends on SPL_SPI_SUPPORT
        help
          Enable support for using SPI flash in SPL, and loading U-Boot from
          SPI flash. SPI flash (Serial Peripheral Bus flash) is named after
@@ -1031,16 +1071,6 @@ config SYS_SPI_U_BOOT_OFFS
         Address within SPI-Flash from where the u-boot payload is fetched
         from.
 
-config SPL_SPI_SUPPORT
-       bool "Support SPI drivers"
-       help
-         Enable support for using SPI in SPL. This is used for connecting
-         to SPI flash for loading U-Boot. See SPL_SPI_FLASH_SUPPORT for
-         more details on that. The SPI driver provides the transport for
-         data between the SPI flash and the CPU. This option can be used to
-         enable SPI drivers that are needed for other purposes also, such
-         as a SPI PMIC.
-
 config SPL_THERMAL
        bool "Driver support for thermal devices"
        help
@@ -1203,6 +1233,22 @@ config TPL
 
 if TPL
 
+config TPL_SIZE_LIMIT
+       hex "Maximum size of TPL image"
+       depends on TPL
+       default 0
+       help
+         Specifies the maximum length of the U-Boot TPL image.
+         If this value is zero, it is ignored.
+
+config TPL_FRAMEWORK
+       bool "Support TPL based upon the common SPL framework"
+       default y if SPL_FRAMEWORK
+       help
+         Enable the SPL framework under common/spl/ for TPL builds.
+         This framework supports MMC, NAND and YMODEM and other methods
+         loading of U-Boot's SPL stage. If unsure, say Y.
+
 config TPL_HANDOFF
        bool "Pass hand-off information from TPL to SPL and U-Boot proper"
        depends on HANDOFF && TPL_BLOBLIST