mainboard/google/kahlee: Add mainboard resume function
Add the mainboard resume function and __weak variant override. Change-Id: I808734208bd1ce81428771ea203709b53db56cd3 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/27486 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
fce1d38054
commit
f3dc659516
|
@ -190,18 +190,31 @@ int mainboard_get_ehci_oc_map(uint16_t *map)
|
|||
return variant_get_ehci_oc_map(map);
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
|
||||
void mainboard_suspend_resume(void)
|
||||
{
|
||||
variant_mainboard_suspend_resume();
|
||||
}
|
||||
#endif
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.init = mainboard_init,
|
||||
.enable_dev = kahlee_enable,
|
||||
.final = mainboard_final,
|
||||
};
|
||||
|
||||
/* Variants may override this function so see definitions in variants/ */
|
||||
/* Variants may override these functions so see definitions in variants/ */
|
||||
uint8_t __weak variant_board_sku(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
|
||||
void __weak variant_mainboard_suspend_resume(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
const char *smbios_mainboard_sku(void)
|
||||
{
|
||||
static char sku_str[7]; /* sku{0..255} */
|
||||
|
|
|
@ -30,5 +30,8 @@ int variant_get_ehci_oc_map(uint16_t *usb_oc_map);
|
|||
const struct soc_amd_gpio *variant_early_gpio_table(size_t *size);
|
||||
const struct soc_amd_gpio *variant_gpio_table(size_t *size);
|
||||
void variant_romstage_entry(int s3_resume);
|
||||
#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
|
||||
void variant_mainboard_suspend_resume(void);
|
||||
#endif
|
||||
|
||||
#endif /* __BASEBOARD_VARIANTS_H__ */
|
||||
|
|
Loading…
Reference in New Issue