Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/27147 )
Change subject: mb/google/poppy/variant/nautilus: Configure for 2nd nautilus SKU
......................................................................
Patch Set 1:
> Patch Set 1:
>
> Question: Do we need to send CLs for new nautilus sku to coreboot.org first?
> We need some other CLs which are not merged into poppy branch of chromium-review, will Googlers help cherry-picking all dependent CLs?
> ex) We need http://review.coreboot.org/c/26724 for http://review.coreboot.org/c/27148, but it hasn't been merged into poppy branch.
Yes, all CLs should be sent to coreboot.org first. Please feel free to cherry-pick any CLs that are required to poppy branch and add me as a reviewer. If you need me to do the cherry-picking, please let me know.
--
To view, visit https://review.coreboot.org/27147
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7242f23f47010664cc29ea86a126e63c9dd62ccd
Gerrit-Change-Number: 27147
Gerrit-PatchSet: 1
Gerrit-Owner: Seunghwan Kim <sh_.kim(a)samsung.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Seunghwan Kim <sh_.kim(a)samsung.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 18 Jun 2018 05:16:41 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
Werner Zeh has submitted this change and it was merged. ( https://review.coreboot.org/27116 )
Change subject: cbfstool: Use endian.h and functions from commonlib
......................................................................
cbfstool: Use endian.h and functions from commonlib
The endian conversion function be32toh() is defined in
src/include/endian.h, however this file is not used for cbfstool
compilation. Currently the one provided by the host is used and if the
host does not provide this endian.h file, the build will fail.
However, we do have endian conversion functions in commonlib/endian.h
which is available for cbfstool compilation.
Switch from be32toh() to read_be32() in order to avoid relying on a
host provided include file.
We use functions from commonlib/endian.h already in cbfstool.
Change-Id: I106274cf9c69e1849f848920d96a61188f895b36
Signed-off-by: Werner Zeh <werner.zeh(a)siemens.com>
Reviewed-on: https://review.coreboot.org/27116
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Nico Huber <nico.h(a)gmx.de>
Reviewed-by: Patrick Georgi <pgeorgi(a)google.com>
---
M util/cbfstool/cbfs-mkpayload.c
1 file changed, 2 insertions(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Patrick Georgi: Looks good to me, approved
Nico Huber: Looks good to me, approved
diff --git a/util/cbfstool/cbfs-mkpayload.c b/util/cbfstool/cbfs-mkpayload.c
index 6dc1634..e26c530 100644
--- a/util/cbfstool/cbfs-mkpayload.c
+++ b/util/cbfstool/cbfs-mkpayload.c
@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <commonlib/endian.h>
#include "elfparsing.h"
#include "common.h"
@@ -426,7 +427,7 @@
DEBUG("start: parse_fit_to_payload\n");
fdt_h = buffer_get(input);
- if (be32toh(fdt_h->magic) != FDT_HEADER_MAGIC) {
+ if (read_be32(&fdt_h->magic) != FDT_HEADER_MAGIC) {
INFO("Not a FIT payload.\n");
return -1;
}
--
To view, visit https://review.coreboot.org/27116
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I106274cf9c69e1849f848920d96a61188f895b36
Gerrit-Change-Number: 27116
Gerrit-PatchSet: 2
Gerrit-Owner: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Seunghwan Kim has posted comments on this change. ( https://review.coreboot.org/27147 )
Change subject: mb/google/poppy/variant/nautilus: Configure for 2nd nautilus SKU
......................................................................
Patch Set 1:
Question: Do we need to send CLs for new nautilus sku to coreboot.org first?
We need some other CLs which are not merged into poppy branch of chromium-review, will Googlers help cherry-picking all dependent CLs?
ex) We need http://review.coreboot.org/c/26724 for http://review.coreboot.org/c/27148, but it hasn't been merged into poppy branch.
--
To view, visit https://review.coreboot.org/27147
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7242f23f47010664cc29ea86a126e63c9dd62ccd
Gerrit-Change-Number: 27147
Gerrit-PatchSet: 1
Gerrit-Owner: Seunghwan Kim <sh_.kim(a)samsung.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Seunghwan Kim <sh_.kim(a)samsung.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 18 Jun 2018 01:31:34 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: No
Seunghwan Kim has uploaded this change for review. ( https://review.coreboot.org/27149
Change subject: mb/google/poppy/variant/nautilus: Add SAR sensor device into devicetree.cb
......................................................................
mb/google/poppy/variant/nautilus: Add SAR sensor device into devicetree.cb
This change defines SAR sensor device into devicetree.cb.
Since only LTE sku has SAR sensor, we will use GPP_B20 as a device_present_gpio.
BUG=None
BRANCH=poppy
TEST=Verified SAR sensor device is loaded by driver in Chrome OS
Change-Id: Ib4969e4b82d18b1b1a599de8226c2d7d4bda7915
Signed-off-by: Seunghwan Kim <sh_.kim(a)samsung.com>
---
M src/mainboard/google/poppy/variants/nautilus/devicetree.cb
1 file changed, 10 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/27149/1
diff --git a/src/mainboard/google/poppy/variants/nautilus/devicetree.cb b/src/mainboard/google/poppy/variants/nautilus/devicetree.cb
index 79bb5fb..707d174 100644
--- a/src/mainboard/google/poppy/variants/nautilus/devicetree.cb
+++ b/src/mainboard/google/poppy/variants/nautilus/devicetree.cb
@@ -328,7 +328,16 @@
device i2c 50 on end
end
end # I2C #1
- device pci 15.2 on end # I2C #2
+ device pci 15.2 on
+ chip drivers/i2c/generic
+ register "hid" = ""SX9321""
+ register "name" = ""SEMTECK SX9321""
+ register "desc" = ""SAR Proximity Sensor""
+ register "irq" = "ACPI_IRQ_LEVEL_LOW(GPP_A18_IRQ)"
+ register "device_present_gpio" = "GPP_B20"
+ device i2c 28 on end
+ end
+ end # I2C #2
device pci 15.3 on
chip drivers/i2c/hid
register "generic.hid" = ""ACPI0C50""
--
To view, visit https://review.coreboot.org/27149
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: Ib4969e4b82d18b1b1a599de8226c2d7d4bda7915
Gerrit-Change-Number: 27149
Gerrit-PatchSet: 1
Gerrit-Owner: Seunghwan Kim <sh_.kim(a)samsung.com>
Seunghwan Kim has uploaded this change for review. ( https://review.coreboot.org/27148
Change subject: mb/google/poppy/variant/nautilus: Clear GPP_D0 when entering S5
......................................................................
mb/google/poppy/variant/nautilus: Clear GPP_D0 when entering S5
Nautilus 2nd SKU has a leakage voltage at GPP_D0 in S5 state. We need to set this to LOW when entering S5 for clear the leakage.
BUG=None
BRANCH=poppy
TEST=Verified the leakage is gone after update coreboot
Change-Id: I054e707b2bc2e63d6f99cd2fd8a57be20615f111
Signed-off-by: Seunghwan Kim <sh_.kim(a)samsung.com>
---
M src/mainboard/google/poppy/variants/nautilus/Makefile.inc
A src/mainboard/google/poppy/variants/nautilus/smihandler.c
2 files changed, 30 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/48/27148/1
diff --git a/src/mainboard/google/poppy/variants/nautilus/Makefile.inc b/src/mainboard/google/poppy/variants/nautilus/Makefile.inc
index 2167282..dba5ca6 100644
--- a/src/mainboard/google/poppy/variants/nautilus/Makefile.inc
+++ b/src/mainboard/google/poppy/variants/nautilus/Makefile.inc
@@ -10,3 +10,5 @@
ramstage-y += gpio.c
ramstage-y += nhlt.c
ramstage-y += mainboard.c
+
+smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
diff --git a/src/mainboard/google/poppy/variants/nautilus/smihandler.c b/src/mainboard/google/poppy/variants/nautilus/smihandler.c
new file mode 100644
index 0000000..0a05064
--- /dev/null
+++ b/src/mainboard/google/poppy/variants/nautilus/smihandler.c
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2018 Google Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include <arch/acpi.h>
+#include <baseboard/variants.h>
+#include "gpio.h"
+
+#define LTE3_PWROFF_L GPP_D0
+
+void variant_smi_sleep(u8 slp_typ)
+{
+ if (slp_typ == ACPI_S5) {
+ /* Turn off LTE module */
+ gpio_set(LTE3_PWROFF_L, 0);
+ }
+}
--
To view, visit https://review.coreboot.org/27148
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: I054e707b2bc2e63d6f99cd2fd8a57be20615f111
Gerrit-Change-Number: 27148
Gerrit-PatchSet: 1
Gerrit-Owner: Seunghwan Kim <sh_.kim(a)samsung.com>