Merge tag 'xilinx-for-v2020.10' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[platform/kernel/u-boot.git] / common / spl / Kconfig
index b03a476..3eae65e 100644 (file)
@@ -139,7 +139,7 @@ config SPL_HANDOFF
 
 config SPL_LDSCRIPT
        string "Linker script for the SPL stage"
-       default "arch/$(ARCH)/cpu/u-boot-spl.lds"
+       default "arch/\$(ARCH)/cpu/u-boot-spl.lds"
        help
          The SPL stage will usually require a different linker-script
          (as it runs from a different memory region) than the regular
@@ -308,7 +308,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
                     ARCH_MX6 || ARCH_MX7 || \
                     ARCH_ROCKCHIP || ARCH_MVEBU ||  ARCH_SOCFPGA || \
                     ARCH_AT91 || ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || \
-                    OMAP44XX || OMAP54XX || AM33XX || AM43XX
+                    OMAP44XX || OMAP54XX || AM33XX || AM43XX || TARGET_SIFIVE_FU540
        help
          Use sector number for specifying U-Boot location on MMC/SD in
          raw mode.
@@ -325,6 +325,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
        default 0x300 if ARCH_ZYNQ || ARCH_KEYSTONE || OMAP34XX || OMAP44XX || \
                         OMAP54XX || AM33XX || AM43XX || ARCH_K3
        default 0x4000 if ARCH_ROCKCHIP
+       default 0x822 if TARGET_SIFIVE_FU540
        help
          Address on the MMC to load U-Boot from, when the MMC is being used
          in raw mode. Units: MMC sectors (1 sector = 512 bytes).
@@ -411,7 +412,7 @@ config SPL_MD5_SUPPORT
          secure as it is possible (with a brute-force attack) to adjust the
          image while still retaining the same MD5 hash value. For secure
          applications where images may be changed maliciously, you should
-         consider SHA1 or SHA256.
+         consider SHA256 or SHA384.
 
 config SPL_SHA1_SUPPORT
        bool "Support SHA1"
@@ -423,7 +424,7 @@ config SPL_SHA1_SUPPORT
          image contents have not been corrupted or maliciously altered.
          While SHA1 is fairly secure it is coming to the end of its life
          due to the expanding computing power available to brute-force
-         attacks. For more security, consider SHA256.
+         attacks. For more security, consider SHA256 or SHA384.
 
 config SPL_SHA256_SUPPORT
        bool "Support SHA256"
@@ -432,12 +433,28 @@ config SPL_SHA256_SUPPORT
        help
          Enable this to support SHA256 in FIT images within SPL. A SHA256
          checksum is a 256-bit (32-byte) hash value used to check that the
-         image contents have not been corrupted. SHA256 is recommended for
-         use in secure applications since (as at 2016) there is no known
-         feasible attack that could produce a 'collision' with differing
-         input data. Use this for the highest security. Note that only the
-         SHA256 variant is supported: SHA512 and others are not currently
-         supported in U-Boot.
+         image contents have not been corrupted.
+
+config SPL_SHA384_SUPPORT
+       bool "Support SHA384"
+       depends on SPL_FIT
+       select SHA384
+       select SHA512_ALGO
+       help
+         Enable this to support SHA384 in FIT images within SPL. A SHA384
+         checksum is a 384-bit (48-byte) hash value used to check that the
+         image contents have not been corrupted. Use this for the highest
+         security.
+
+config SPL_SHA512_SUPPORT
+       bool "Support SHA512"
+       depends on SPL_FIT
+       select SHA512
+       select SHA512_ALGO
+       help
+         Enable this to support SHA512 in FIT images within SPL. A SHA512
+         checksum is a 512-bit (64-byte) hash value used to check that the
+         image contents have not been corrupted.
 
 config SPL_FIT_IMAGE_TINY
        bool "Remove functionality from SPL FIT loading to reduce size"
@@ -508,12 +525,6 @@ config SPL_DMA
          the CPU moving the data. Enable this option to build the drivers
          in drivers/dma as part of an SPL build.
 
-config SPL_DM_GPIO
-       bool "Support Driver Model GPIO drivers"
-       depends on SPL_GPIO_SUPPORT && DM_GPIO
-       help
-         Enable support for Driver Model based GPIO drivers in SPL.
-
 config SPL_DRIVERS_MISC_SUPPORT
        bool "Support misc drivers"
        help
@@ -669,15 +680,6 @@ config SPL_MMC_SUPPORT
          this option to build the drivers in drivers/mmc as part of an SPL
          build.
 
-config SPL_FORCE_MMC_BOOT
-       bool "Force SPL booting from MMC"
-       depends on SPL_MMC_SUPPORT
-       default n
-       help
-         Force SPL to use MMC device for Linux kernel booting even when the
-         SoC ROM recognized boot medium is not eMMC/SD. This is crucial for
-         factory or 'falcon mode' booting.
-
 config SPL_MMC_TINY
        bool "Tiny MMC framework in SPL"
        depends on SPL_MMC_SUPPORT
@@ -985,7 +987,7 @@ config SPL_POWER_DOMAIN
 
 config SPL_RAM_SUPPORT
        bool "Support booting from RAM"
-       default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
+       default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
        help
          Enable booting of an image in RAM. The image can be preloaded or
          it can be loaded by SPL directly into RAM (e.g. using USB).
@@ -993,7 +995,7 @@ config SPL_RAM_SUPPORT
 config SPL_RAM_DEVICE
        bool "Support booting from preloaded image in RAM"
        depends on SPL_RAM_SUPPORT
-       default y if MICROBLAZE || ARCH_SOCFPGA || TEGRA || ARCH_ZYNQ
+       default y if MICROBLAZE || ARCH_SOCFPGA || ARCH_TEGRA || ARCH_ZYNQ
        help
          Enable booting of an image already loaded in RAM. The image has to
          be already in memory when SPL takes over, e.g. loaded by the boot
@@ -1187,6 +1189,14 @@ config SPL_USB_SDP_SUPPORT
          Enable Serial Download Protocol (SDP) device support in SPL. This
          allows to download images into memory and execute (jump to) them
          using the same protocol as implemented by the i.MX family's boot ROM.
+
+config SPL_SDP_USB_DEV
+       int "SDP USB controller index"
+       default 0
+       depends on SPL_USB_SDP_SUPPORT
+       help
+         Some boards have USB controller other than 0. Define this option
+         so it can be used in compiled environment.
 endif
 
 config SPL_WATCHDOG_SUPPORT
@@ -1306,7 +1316,7 @@ config TPL_LDSCRIPT
         string "Linker script for the TPL stage"
        depends on TPL
        default "arch/arm/cpu/armv8/u-boot-spl.lds" if ARM64
-       default "arch/$(ARCH)/cpu/u-boot-spl.lds"
+       default "arch/\$(ARCH)/cpu/u-boot-spl.lds"
        help
          The TPL stage will usually require a different linker-script
          (as it runs from a different memory region) than the regular