diff options
author | Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com> | 2021-10-19 15:31:27 +0900 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-10-21 01:57:23 +0000 |
commit | 9ce51c3585492a0f5dcfab27c9dc58deb632ac5a (patch) | |
tree | 8afdee651a6a5926746f7694306d6972017df8a5 /src/mainboard | |
parent | 0c39cd7dab5e7444c61d078968722124e1bfba48 (diff) |
mb/google/dedede/var/bugzzy: Add LTE power off sequence
This change adds LTE power off sequence for bugzzy.
BUG=None
BRANCH=dedede
TEST=FW_NAME=bugzzy emerge-dedede coreboot
Signed-off-by: Seunghwan Kim <sh_.kim@samsung.corp-partner.google.com>
Change-Id: I6be0e23b9c2c2bed9745011920394006fdaabae6
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58443
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/dedede/variants/bugzzy/Makefile.inc | 2 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/bugzzy/variant.c | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/bugzzy/Makefile.inc b/src/mainboard/google/dedede/variants/bugzzy/Makefile.inc index eb2c9bc021..fd60a18b69 100644 --- a/src/mainboard/google/dedede/variants/bugzzy/Makefile.inc +++ b/src/mainboard/google/dedede/variants/bugzzy/Makefile.inc @@ -1,3 +1,5 @@ ## SPDX-License-Identifier: GPL-2.0-or-later ramstage-y += gpio.c + +smm-y += variant.c diff --git a/src/mainboard/google/dedede/variants/bugzzy/variant.c b/src/mainboard/google/dedede/variants/bugzzy/variant.c new file mode 100644 index 0000000000..22caa069d3 --- /dev/null +++ b/src/mainboard/google/dedede/variants/bugzzy/variant.c @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <acpi/acpi.h> +#include <baseboard/variants.h> +#include <delay.h> +#include <gpio.h> + +static void power_off_lte_module(void) +{ + gpio_output(GPP_H17, 0); + mdelay(20); + gpio_output(GPP_A10, 0); +} + +void variant_smi_sleep(u8 slp_typ) +{ + /* + * Once the FW_CONFIG is provisioned, power off LTE module only under + * the situation where it is stuffed. + */ + if (slp_typ == ACPI_S5) + power_off_lte_module(); +} |