mb/intel/harcuvar: Drop build guards for ENABLE_FSP_MEMORY_DOWN
Ensure the code gets build-tested for CONFIG_ENABLE_FSP_MEMORY_DOWN=n. Change-Id: I6213e3e0ea3b2acfc97017739ac069ee3811d742 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/50905 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
77330e5b15
commit
2a58e187af
|
@ -1,6 +1,6 @@
|
|||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
subdirs-$(CONFIG_ENABLE_FSP_MEMORY_DOWN) += spd
|
||||
subdirs-y += spd
|
||||
|
||||
romstage-y += boardid.c
|
||||
romstage-y += hsio.c
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#include <fsp/api.h>
|
||||
#include <fsp/soc_binding.h>
|
||||
|
||||
#if CONFIG(ENABLE_FSP_MEMORY_DOWN)
|
||||
|
||||
/*
|
||||
* Define platform specific Memory Down Configure structure.
|
||||
*
|
||||
|
@ -63,8 +61,6 @@ const MEMORY_DOWN_CONFIG mMemoryDownConfig = {
|
|||
}
|
||||
};
|
||||
|
||||
#endif /* CONFIG_ENABLE_FSP_MEMORY_DOWN */
|
||||
|
||||
void mainboard_config_gpios(void);
|
||||
void mainboard_memory_init_params(FSPM_UPD *mupd);
|
||||
|
||||
|
@ -103,7 +99,9 @@ void mainboard_config_gpios(void)
|
|||
|
||||
void mainboard_memory_init_params(FSPM_UPD *mupd)
|
||||
{
|
||||
#if CONFIG(ENABLE_FSP_MEMORY_DOWN)
|
||||
if (!CONFIG(ENABLE_FSP_MEMORY_DOWN))
|
||||
return;
|
||||
|
||||
uint8_t *spd_data_ptr = NULL;
|
||||
|
||||
/* Get SPD data pointer */
|
||||
|
@ -125,5 +123,4 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
|
|||
mupd->FspmConfig.PcdMemoryDown = 0;
|
||||
mupd->FspmConfig.PcdMemoryDownConfigPtr = 0;
|
||||
}
|
||||
#endif /* CONFIG_ENABLE_FSP_MEMORY_DOWN */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue