ubispl: introduce separate CONFIG_UBI_SPL_SILENCE_MSG
[platform/kernel/u-boot.git] / common / spl / Kconfig
index 206c240..8021661 100644 (file)
@@ -25,6 +25,63 @@ config SPL_FRAMEWORK
          supports MMC, NAND and YMODEM and other methods loading of U-Boot
          and the Linux Kernel.  If unsure, say Y.
 
+config SPL_SIZE_LIMIT
+       int "Maximum size of SPL image"
+       depends on SPL
+       default 69632 if ARCH_MX6
+       default 0
+       help
+         Specifies the maximum length of the U-Boot SPL image.
+         If this value is zero, it is ignored.
+
+config SPL_SIZE_LIMIT_SUBTRACT_GD
+       bool "SPL image size check: provide space for global data"
+       depends on SPL_SIZE_LIMIT > 0
+       help
+         If enabled, aligned size of global data is reserved in
+         SPL_SIZE_LIMIT check to ensure such an image does not overflow SRAM
+         if SPL_SIZE_LIMIT describes the size of SRAM available for SPL when
+         pre-reloc global data is put into this SRAM, too.
+
+config SPL_SIZE_LIMIT_SUBTRACT_MALLOC
+       bool "SPL image size check: provide space for malloc() pool before relocation"
+       depends on SPL_SIZE_LIMIT > 0
+       help
+         If enabled, SPL_SYS_MALLOC_F_LEN is reserved in SPL_SIZE_LIMIT check
+         to ensure such an image does not overflow SRAM if SPL_SIZE_LIMIT
+         describes the size of SRAM available for SPL when pre-reloc malloc
+         pool is put into this SRAM, too.
+
+config SPL_SIZE_LIMIT_PROVIDE_STACK
+       hex "SPL image size check: provide stack space before relocation"
+       depends on SPL_SIZE_LIMIT > 0
+       default 0
+       help
+         If set, this size is reserved in SPL_SIZE_LIMIT check to ensure such
+         an image does not overflow SRAM if SPL_SIZE_LIMIT describes the size
+         of SRAM available for SPL when the stack required before reolcation
+         uses this SRAM, too.
+
+menu "PowerPC SPL Boot options"
+       depends on PPC && (SUPPORT_SPL && !SPL_FRAMEWORK)
+
+config SPL_NAND_BOOT
+       bool "Load SPL from NAND flash"
+
+config SPL_MMC_BOOT
+       bool "Load SPL from SD Card / eMMC"
+
+config SPL_SPI_BOOT
+       bool "Load SPL from SPI flash"
+
+config SPL_FSL_PBL
+       bool "Create SPL in Freescale PBI format"
+       help
+         Create boot binary having SPL binary in PBI format concatenated with
+         u-boot binary.
+
+endmenu
+
 config HANDOFF
        bool "Pass hand-off information from SPL to U-Boot proper"
        depends on BLOBLIST
@@ -56,6 +113,13 @@ config SPL_LDSCRIPT
          U-Boot stage.  Set this to the path of the linker-script to
          be used for SPL.
 
+config SPL_TEXT_BASE
+       hex "SPL Text Base"
+       default ISW_ENTRY_ADDR if AM43XX || AM33XX || OMAP54XX || ARCH_KEYSTONE
+       default 0x0
+       help
+         The address in memory that SPL will be running from.
+
 config SPL_BOARD_INIT
        bool "Call board-specific initialization in SPL"
        help
@@ -275,7 +339,7 @@ config SPL_SHA1_SUPPORT
          checksum is a 160-bit (20-byte) hash value used to check that the
          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 avaiable to brute-force
+         due to the expanding computing power available to brute-force
          attacks. For more security, consider SHA256.
 
 config SPL_SHA256_SUPPORT
@@ -549,6 +613,104 @@ config SPL_NAND_SUPPORT
          This enables the drivers in drivers/mtd/nand/raw as part of an SPL
          build.
 
+config SPL_UBI
+       bool "Support UBI"
+       help
+         Enable support for loading payloads from UBI. See
+         README.ubispl for more info.
+
+if SPL_UBI
+config SPL_UBI_LOAD_BY_VOLNAME
+       bool "Support loading volumes by name"
+       help
+         This enables support for loading UBI volumes by name. When this
+         is set, CONFIG_SPL_UBI_LOAD_MONITOR_VOLNAME can be used to
+         configure the volume name from which to load U-Boot.
+
+config SPL_UBI_MAX_VOL_LEBS
+       int "Maximum number of LEBs per volume"
+       depends on SPL_UBI
+       help
+         The maximum number of logical eraseblocks which a static volume
+         to load can contain. Used for sizing the scan data structure.
+
+config SPL_UBI_MAX_PEB_SIZE
+       int "Maximum PEB size"
+       depends on SPL_UBI
+       help
+         The maximum physical erase block size.
+
+config SPL_UBI_MAX_PEBS
+       int "Maximum number of PEBs"
+       depends on SPL_UBI
+       help
+         The maximum physical erase block size. If not overridden by
+         board code, this value will be used as the actual number of PEBs.
+
+config SPL_UBI_PEB_OFFSET
+       int "Offset to first UBI PEB"
+       depends on SPL_UBI
+       help
+         The offset in number of PEBs from the start of flash to the first
+         PEB part of the UBI image.
+
+config SPL_UBI_VID_OFFSET
+       int "Offset to VID header"
+       depends on SPL_UBI
+
+config SPL_UBI_LEB_START
+       int "Offset to LEB in PEB"
+       depends on SPL_UBI
+       help
+         The offset in bytes to the LEB within a PEB.
+
+config SPL_UBI_INFO_ADDR
+       hex "Address to place UBI scan info"
+       depends on SPL_UBI
+       help
+         Address for ubispl to place the scan info. Read README.ubispl to
+         determine the required size
+
+config SPL_UBI_VOL_IDS
+       int "Maximum volume id"
+       depends on SPL_UBI
+       help
+         The maximum volume id which can be loaded. Used for sizing the
+         scan data structure.
+
+config SPL_UBI_LOAD_MONITOR_ID
+       int "id of U-Boot volume"
+       depends on SPL_UBI
+       help
+         The UBI volume id from which to load U-Boot
+
+config SPL_UBI_LOAD_MONITOR_VOLNAME
+       string "volume name of U-Boot volume"
+       depends on SPL_UBI_LOAD_BY_VOLNAME
+       help
+         The UBI volume name from which to load U-Boot
+
+config SPL_UBI_LOAD_KERNEL_ID
+       int "id of kernel volume"
+       depends on SPL_OS_BOOT && SPL_UBI
+       help
+         The UBI volume id from which to load the kernel
+
+config SPL_UBI_LOAD_ARGS_ID
+       int "id of kernel args volume"
+       depends on SPL_OS_BOOT && SPL_UBI
+       help
+         The UBI volume id from which to load the device tree
+
+config UBI_SPL_SILENCE_MSG
+       bool "silence UBI SPL messages"
+       default n
+       help
+         Disable messages from UBI SPL. This leaves warnings
+         and errors enabled.
+
+endif   # if SPL_UBI
+
 config SPL_NET_SUPPORT
        bool "Support networking"
        help
@@ -1144,5 +1306,17 @@ config TPL_YMODEM_SUPPORT
 
 endif # TPL
 
+config SPL_AT91_MCK_BYPASS
+       bool "Use external clock signal as a source of main clock for AT91 platforms"
+       depends on ARCH_AT91
+       default n
+       help
+         Use external 8 to 24 Mhz clock signal as source of main clock instead
+         of an external crystal oscillator.
+         This option disables the internal driving on the XOUT pin.
+         The external source has to provide a stable clock on the XIN pin.
+         If this option is disabled, the SoC expects a crystal oscillator
+         that needs driving on both XIN and XOUT lines.
+
 endif # SPL
 endmenu