diff options
author | Marc Jones <marcj303@gmail.com> | 2018-07-14 17:27:35 -0600 |
---|---|---|
committer | Marc Jones <marc@marcjonesconsulting.com> | 2018-07-17 01:54:37 +0000 |
commit | f3dc65951619d50da423daac0523420301af16e9 (patch) | |
tree | 43ba1eacbe9d02740049c810d9a4ff8c9eff8052 /src/mainboard/google/kahlee/mainboard.c | |
parent | fce1d380544619000773ca16ccc5b33e7f83d45c (diff) | |
download | coreboot-f3dc65951619d50da423daac0523420301af16e9.tar.xz |
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>
Diffstat (limited to 'src/mainboard/google/kahlee/mainboard.c')
-rw-r--r-- | src/mainboard/google/kahlee/mainboard.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c index cf600d2cec..2efcb20bbc 100644 --- a/src/mainboard/google/kahlee/mainboard.c +++ b/src/mainboard/google/kahlee/mainboard.c @@ -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} */ |