summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/dedede/variants/storo/variant.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/dedede/variants/storo/variant.c')
-rw-r--r--src/mainboard/google/dedede/variants/storo/variant.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/storo/variant.c b/src/mainboard/google/dedede/variants/storo/variant.c
new file mode 100644
index 000000000000..2540fc7f2a69
--- /dev/null
+++ b/src/mainboard/google/dedede/variants/storo/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(10);
+ 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();
+}