This patch adds support for loading spm firmware from cbfs to spm sram. Spm needs its own firmware to enable spm suspend/resume function which turns off several resources such as DRAM/mainpll/26M clk when linux system suspend. BUG=b:159079649 TEST=suspend with command `powerd_dbus_suspend` and wake up the DUT by powerkey Signed-off-by: Roger Lu <roger.lu@mediatek.com> Change-Id: I6478b98f426d2f3e0ee919d37d21d909ae8a6371 Reviewed-on: https://review.coreboot.org/c/coreboot/+/46389 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
config SOC_MEDIATEK_MT8192
|
|
bool
|
|
default n
|
|
select ARCH_BOOTBLOCK_ARMV8_64
|
|
select ARCH_VERSTAGE_ARMV8_64
|
|
select ARCH_ROMSTAGE_ARMV8_64
|
|
select ARCH_RAMSTAGE_ARMV8_64
|
|
select ARM64_USE_ARM_TRUSTED_FIRMWARE
|
|
select HAVE_UART_SPECIAL
|
|
|
|
if SOC_MEDIATEK_MT8192
|
|
|
|
config VBOOT
|
|
select VBOOT_MUST_REQUEST_DISPLAY
|
|
select VBOOT_STARTS_IN_BOOTBLOCK
|
|
select VBOOT_SEPARATE_VERSTAGE
|
|
select VBOOT_RETURN_FROM_VERSTAGE
|
|
|
|
config DEBUG_DRAM
|
|
bool "Output verbose DRAM related debug messages"
|
|
default y
|
|
help
|
|
This option enables additional DRAM related debug messages.
|
|
|
|
config MT8192_DRAM_EMCP
|
|
bool
|
|
default y
|
|
help
|
|
The eMCP platform should select this option to run at different DRAM
|
|
frequencies.
|
|
|
|
config MT8192_DRAM_DVFS
|
|
bool
|
|
default n
|
|
help
|
|
This option enables DRAM calibration with multiple frequencies (low,
|
|
medium and high frequency groups, with total 7 frequencies) for DVFS
|
|
feature. All supported data rates are: 800, 1200, 1600, 1866, 2400,
|
|
3200, 4266.
|
|
|
|
config MEMORY_TEST
|
|
bool
|
|
default y
|
|
help
|
|
This option enables memory basic compare test to verify the DRAM read
|
|
or write is as expected.
|
|
|
|
config SPM_FIRMWARE
|
|
string
|
|
default "spm_firmware.bin"
|
|
help
|
|
The file name of the MediaTek SPM firmware.
|
|
|
|
endif
|