[coreboot-gerrit] Change in coreboot[master]: mb/google/poppy/variants/nautilus: Control GPP_D0 in 2nd SKU only
Seunghwan Kim (Code Review)
gerrit at coreboot.org
Wed Nov 14 03:42:35 CET 2018
Seunghwan Kim has uploaded this change for review. ( https://review.coreboot.org/29631
Change subject: mb/google/poppy/variants/nautilus: Control GPP_D0 in 2nd SKU only
......................................................................
mb/google/poppy/variants/nautilus: Control GPP_D0 in 2nd SKU only
GPP_D0 is NC in 1st SKU board design, so we should control GPP_D0
for only 2nd SKU.
BUG=none
BRANCH=poppy
TEST=emerge-nautilus coreboot
Change-Id: Ifd85693c9155ed960f0c794d4b83fe8863b77134
Signed-off-by: Seunghwan Kim <sh_.kim at samsung.com>
---
M src/mainboard/google/poppy/variants/nautilus/Makefile.inc
M src/mainboard/google/poppy/variants/nautilus/smihandler.c
2 files changed, 12 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/29631/1
diff --git a/src/mainboard/google/poppy/variants/nautilus/Makefile.inc b/src/mainboard/google/poppy/variants/nautilus/Makefile.inc
index 130c940..c715206 100644
--- a/src/mainboard/google/poppy/variants/nautilus/Makefile.inc
+++ b/src/mainboard/google/poppy/variants/nautilus/Makefile.inc
@@ -15,3 +15,4 @@
ramstage-y += sku.c
smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
+smm-$(CONFIG_HAVE_SMI_HANDLER) += sku.c
diff --git a/src/mainboard/google/poppy/variants/nautilus/smihandler.c b/src/mainboard/google/poppy/variants/nautilus/smihandler.c
index e355b01..d581168 100644
--- a/src/mainboard/google/poppy/variants/nautilus/smihandler.c
+++ b/src/mainboard/google/poppy/variants/nautilus/smihandler.c
@@ -16,13 +16,22 @@
#include <arch/acpi.h>
#include <baseboard/variants.h>
#include <gpio.h>
+#include <variant/sku.h>
#define LTE3_PWROFF_L GPP_D0
void variant_smi_sleep(u8 slp_typ)
{
+ uint32_t sku_id = variant_board_sku();
+
if (slp_typ == ACPI_S5) {
- /* Turn off LTE module */
- gpio_set(LTE3_PWROFF_L, 0);
+ switch (sku_id) {
+ case SKU_1_NAUTILUS_LTE:
+ /* Turn off LTE module */
+ gpio_set(LTE3_PWROFF_L, 0);
+ break;
+ default:
+ break;
+ }
}
}
--
To view, visit https://review.coreboot.org/29631
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd85693c9155ed960f0c794d4b83fe8863b77134
Gerrit-Change-Number: 29631
Gerrit-PatchSet: 1
Gerrit-Owner: Seunghwan Kim <sh_.kim at samsung.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181114/2f8a710e/attachment.html>
More information about the coreboot-gerrit
mailing list