summaryrefslogtreecommitdiff
path: root/src/mainboard/google/mancomb/variants/baseboard/gpio.c
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2021-03-18 16:30:09 +0800
committerRaul Rangel <rrangel@chromium.org>2021-04-05 16:40:37 +0000
commit1954c1f92ed01391558a94b848208634e31ee019 (patch)
tree9d3f74ecaed02ff0ae11f5e762c23b58470b1a9c /src/mainboard/google/mancomb/variants/baseboard/gpio.c
parent87e27e1d0e1f5ab9c319c60f163deb21dbe73de6 (diff)
mb/google/mancomb: Add smihandler
BUG=b:182211161 TEST=builds Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: I52411917d9e7e8f8d9ac5d1c9b426a58ba09f5ae Reviewed-on: https://review.coreboot.org/c/coreboot/+/51625 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'src/mainboard/google/mancomb/variants/baseboard/gpio.c')
-rw-r--r--src/mainboard/google/mancomb/variants/baseboard/gpio.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/mancomb/variants/baseboard/gpio.c b/src/mainboard/google/mancomb/variants/baseboard/gpio.c
index effa3f27e0..5a6f2aca26 100644
--- a/src/mainboard/google/mancomb/variants/baseboard/gpio.c
+++ b/src/mainboard/google/mancomb/variants/baseboard/gpio.c
@@ -168,6 +168,11 @@ static const struct soc_amd_gpio early_gpio_table[] = {
PAD_NF(GPIO_108, ESPI_ALERT_D1, PULL_NONE),
};
+/* GPIO configuration for sleep */
+static const struct soc_amd_gpio sleep_gpio_table[] = {
+ /* TODO: Fill sleep gpio configuration */
+};
+
const struct soc_amd_gpio *__weak variant_base_gpio_table(size_t *size)
{
*size = ARRAY_SIZE(base_gpio_table);
@@ -183,3 +188,8 @@ const struct soc_amd_gpio *__weak variant_early_gpio_table(size_t *size)
*size = ARRAY_SIZE(early_gpio_table);
return early_gpio_table;
}
+const __weak struct soc_amd_gpio *variant_sleep_gpio_table(size_t *size)
+{
+ *size = ARRAY_SIZE(sleep_gpio_table);
+ return sleep_gpio_table;
+}