mb/google/poppy: Add support for a variant finalize function
Add a hook to allow a variant finalize to be called at the end of ramstage. BUG=b:245954151 TEST=Builds successfully Change-Id: I00c091051e3499ca94b286d7fbe0a7a8bd38e635 Signed-off-by: Tarun Tuli <taruntuli@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70319 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
fa0709663b
commit
0f0a43c9b1
|
@ -60,7 +60,18 @@ static void mainboard_chip_init(void *chip_info)
|
||||||
gpio_configure_pads(pads, num);
|
gpio_configure_pads(pads, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void __weak variant_final(void)
|
||||||
|
{
|
||||||
|
/* nop */
|
||||||
|
}
|
||||||
|
|
||||||
|
static void mainboard_final(void *chip_info)
|
||||||
|
{
|
||||||
|
variant_final();
|
||||||
|
}
|
||||||
|
|
||||||
struct chip_operations mainboard_ops = {
|
struct chip_operations mainboard_ops = {
|
||||||
.init = mainboard_chip_init,
|
.init = mainboard_chip_init,
|
||||||
.enable_dev = mainboard_enable,
|
.enable_dev = mainboard_enable,
|
||||||
|
.final = mainboard_final
|
||||||
};
|
};
|
||||||
|
|
|
@ -55,6 +55,7 @@ int variant_memory_sku(void);
|
||||||
void variant_devtree_update(void);
|
void variant_devtree_update(void);
|
||||||
uint32_t variant_board_sku(void);
|
uint32_t variant_board_sku(void);
|
||||||
void variant_smi_sleep(u8 slp_typ);
|
void variant_smi_sleep(u8 slp_typ);
|
||||||
|
void variant_final(void);
|
||||||
|
|
||||||
struct nhlt;
|
struct nhlt;
|
||||||
void variant_nhlt_init(struct nhlt *nhlt);
|
void variant_nhlt_init(struct nhlt *nhlt);
|
||||||
|
|
Loading…
Reference in New Issue