mb/google/zork: add UPDM updating function before runing FSP-M
Add the UPD updating hook in early stage for customization. BUG=b:117719313 BRANCH=zork TEST=build,check the hook function been executed. Signed-off-by: Chris Wang <chris.wang@amd.corp-partner.google.com> Change-Id: I4954a438a51b29b086015624127e651fd06f971b Reviewed-on: https://review.coreboot.org/c/coreboot/+/51181 Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Kangheui Won <khwon@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -4,6 +4,7 @@ bootblock-y += bootblock.c
|
||||
|
||||
romstage-y += chromeos.c
|
||||
romstage-y += sku_id.c
|
||||
romstage-y += romstage.c
|
||||
|
||||
ramstage-y += chromeos.c
|
||||
ramstage-y += ec.c
|
||||
|
11
src/mainboard/google/zork/romstage.c
Normal file
11
src/mainboard/google/zork/romstage.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <baseboard/variants.h>
|
||||
#include <soc/romstage.h>
|
||||
|
||||
void __weak variant_updm_update(FSP_M_CONFIG *mcfg) {}
|
||||
|
||||
void mainboard_updm_update(FSP_M_CONFIG *mcfg)
|
||||
{
|
||||
variant_updm_update(mcfg);
|
||||
}
|
@@ -6,6 +6,7 @@
|
||||
#include <stddef.h>
|
||||
#include <boardid.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <FspmUpd.h>
|
||||
#include <soc/platform_descriptors.h>
|
||||
#include "chip.h"
|
||||
|
||||
@@ -32,6 +33,8 @@ const struct soc_amd_gpio *variant_bootblock_gpio_table(size_t *size, int slp_ty
|
||||
*/
|
||||
const struct soc_amd_gpio *variant_sleep_gpio_table(size_t *size, int slp_typ);
|
||||
|
||||
void variant_updm_update(FSP_M_CONFIG *mcfg);
|
||||
|
||||
/* Program any required GPIOs at the finalize phase */
|
||||
void finalize_gpios(int slp_typ);
|
||||
/* Modify devictree settings during ramstage. */
|
||||
|
Reference in New Issue
Block a user