summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2018-07-14 17:27:35 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2018-07-17 01:54:37 +0000
commitf3dc65951619d50da423daac0523420301af16e9 (patch)
tree43ba1eacbe9d02740049c810d9a4ff8c9eff8052
parentfce1d380544619000773ca16ccc5b33e7f83d45c (diff)
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>
-rw-r--r--src/mainboard/google/kahlee/mainboard.c15
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/include/baseboard/variants.h3
2 files changed, 17 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} */
diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/variants.h
index 23f9cb014c..6e89105d99 100644
--- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/variants.h
@@ -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__ */