diff options
author | Wisley Chen <wisley.chen@quanta.corp-partner.google.com> | 2021-05-21 14:11:10 +0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-05-26 11:39:24 +0000 |
commit | a17ffd264003027fc212a29118a115ae78caf62b (patch) | |
tree | fb5357f41626521fd6a69f3a0c416d732c677e56 /src/mainboard/google/dedede/variants/haboki/gpio.c | |
parent | 8fef0b7010490c8cb21e32ed5ce66f40dae1e0a9 (diff) |
mb/google/dedede: add haboki variant
haboki/habokay is the same design as drawlat/drawcia, and differs only
in replacing Cr50 with discrete TPM.
BUG=b:187094464
TEST=FW_NAME=haboki emerge-keeby coreboot
Cq-Depend: chrome-internal:3850094
Change-Id: Id866927b7041c5bf1c73fb4f0c03798eb61efa79
Signed-off-by: Wisley Chen <wisley.chen@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54755
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/dedede/variants/haboki/gpio.c')
-rw-r--r-- | src/mainboard/google/dedede/variants/haboki/gpio.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/haboki/gpio.c b/src/mainboard/google/dedede/variants/haboki/gpio.c new file mode 100644 index 0000000000..03b9a45d7e --- /dev/null +++ b/src/mainboard/google/dedede/variants/haboki/gpio.c @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <baseboard/gpio.h> +#include <baseboard/variants.h> +#include <boardid.h> +#include <fw_config.h> +#include <ec/google/chromeec/ec.h> + +/* Pad configuration in ramstage*/ +static const struct pad_config gpio_table[] = { + /* C12 : AP_PEN_DET_ODL has an external pull-up and hence no pad termination.*/ + PAD_CFG_GPI_GPIO_DRIVER(GPP_C12, NONE, DEEP), +}; + +const struct pad_config *variant_override_gpio_table(size_t *num) +{ + *num = ARRAY_SIZE(gpio_table); + return gpio_table; +} |