payloads/tianocore: Pass SD_MMC_TIMEOUT build option
By default, edk2 allows 1000000μs for SD Card Readers and eMMC to initialize which is excessive and causes a boot delay. This makes the value configurable and uses a default of 1000μs which is sufficient for the majority of readers. The value of 1000μs was hardcoded in MrChromeBox's fork for around 2 years with no reported issues. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I873bcddf6f37a9eaae5c84991b3996d51fb460d3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61902 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
3ecee3cdd9
commit
4a9be9f321
|
@ -156,6 +156,7 @@ $(obj)/UEFIPAYLOAD.fd tianocore: $(DOTCONFIG)
|
||||||
CONFIG_TIANOCORE_HAVE_EFI_SHELL=$(CONFIG_TIANOCORE_HAVE_EFI_SHELL) \
|
CONFIG_TIANOCORE_HAVE_EFI_SHELL=$(CONFIG_TIANOCORE_HAVE_EFI_SHELL) \
|
||||||
CONFIG_TIANOCORE_PRIORITIZE_INTERNAL=$(CONFIG_TIANOCORE_PRIORITIZE_INTERNAL) \
|
CONFIG_TIANOCORE_PRIORITIZE_INTERNAL=$(CONFIG_TIANOCORE_PRIORITIZE_INTERNAL) \
|
||||||
CONFIG_TIANOCORE_PS2_SUPPORT=$(CONFIG_TIANOCORE_PS2_SUPPORT) \
|
CONFIG_TIANOCORE_PS2_SUPPORT=$(CONFIG_TIANOCORE_PS2_SUPPORT) \
|
||||||
|
CONFIG_TIANOCORE_SD_MMC_TIMEOUT=$(CONFIG_TIANOCORE_SD_MMC_TIMEOUT) \
|
||||||
CONFIG_TIANOCORE_USE_8254_TIMER=$(CONFIG_TIANOCORE_USE_8254_TIMER) \
|
CONFIG_TIANOCORE_USE_8254_TIMER=$(CONFIG_TIANOCORE_USE_8254_TIMER) \
|
||||||
CONFIG_ECAM_MMCONF_BASE_ADDRESS=$(CONFIG_ECAM_MMCONF_BASE_ADDRESS) \
|
CONFIG_ECAM_MMCONF_BASE_ADDRESS=$(CONFIG_ECAM_MMCONF_BASE_ADDRESS) \
|
||||||
GCC_CC_x86_32=$(GCC_CC_x86_32) \
|
GCC_CC_x86_32=$(GCC_CC_x86_32) \
|
||||||
|
|
|
@ -168,6 +168,13 @@ config TIANOCORE_PS2_SUPPORT
|
||||||
help
|
help
|
||||||
Include support for PS/2 keyboards
|
Include support for PS/2 keyboards
|
||||||
|
|
||||||
|
config TIANOCORE_SD_MMC_TIMEOUT
|
||||||
|
int "Timeout in μs for initializing SD Card reader"
|
||||||
|
default 1000
|
||||||
|
help
|
||||||
|
The amount of time allowed to initialize the SD Card reader and/or eMMC drive.
|
||||||
|
Most only require 1000μs, but certain readers can take 1000000μs.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if TIANOCORE_COREBOOTPAYLOAD
|
if TIANOCORE_COREBOOTPAYLOAD
|
||||||
|
|
|
@ -64,6 +64,10 @@ endif
|
||||||
ifeq ($(CONFIG_TIANOCORE_CBMEM_LOGGING),y)
|
ifeq ($(CONFIG_TIANOCORE_CBMEM_LOGGING),y)
|
||||||
BUILD_STR += -D USE_CBMEM_FOR_CONSOLE=TRUE
|
BUILD_STR += -D USE_CBMEM_FOR_CONSOLE=TRUE
|
||||||
endif
|
endif
|
||||||
|
# SD_MMC_TIMEOUT = 1000000
|
||||||
|
ifneq ($(CONFIG_TIANOCORE_SD_MMC_TIMEOUT),)
|
||||||
|
BUILD_STR += -D SD_MMC_TIMEOUT=$(CONFIG_TIANOCORE_SD_MMC_TIMEOUT)
|
||||||
|
endif
|
||||||
#
|
#
|
||||||
# The below are legacy options only available in CorebootPayloadPkg:
|
# The below are legacy options only available in CorebootPayloadPkg:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue