Skip to content
Commit 0db588ca authored by Sean Anderson's avatar Sean Anderson Committed by Tom Rini
Browse files

x86: fsp: Only compile fsp_save_s3_stack if (SPL_)DM_RTC is enabled



This function calls rtc_write32, which has a different signature
depending on if (SPL_)DM_RTC is enabled or not. This could result in a
mismatch in SPL if DM_RTC was enabled but SPL_DM_RTC, as the non-DM
declaration would still be used in SPL even though the implementation
would be for non-DM_RTC. We are switching to the correct definitions in
the next commit, so this will become a compilation error. Since
fsp_save_s3_stack is not called from SPL, avoid compiling it if
(SPL_)DM_RTC is disabled.

Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
parent 544071ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment