Daisuke Nojiri has uploaded this change for review. ( https://review.coreboot.org/28113
Change subject: Nami: Disable powering off EC on cr50 update
......................................................................
Nami: Disable powering off EC on cr50 update
Nami doesn't support wakeup from hibernation by CR50. This causes the
device to remain turned off after CR50 update.
This patch disables turning off EC on cr50 update. CR50 resets the
whole system. So, EC reset is not required.
Signed-off-by: Daisuke Nojiri <dnojiri(a)chromium.org>
BUG=b:112604277
BRANCH=none
TEST=gsctool -a -u /media/removable/cr50.bin && reboot
Verify EC reboots. AP prints 'Waiting for CR50 reset to pick up update'
then reboots.
Change-Id: I06f5eb6100e8af6ffec45d4de2b40eff44f89709
---
M src/mainboard/google/poppy/Kconfig
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/28113/1
diff --git a/src/mainboard/google/poppy/Kconfig b/src/mainboard/google/poppy/Kconfig
index fc090df..1645451 100644
--- a/src/mainboard/google/poppy/Kconfig
+++ b/src/mainboard/google/poppy/Kconfig
@@ -169,6 +169,7 @@
select DRIVERS_SPI_ACPI
select EXCLUDE_NATIVE_SD_INTERFACE
select MAINBOARD_HAS_SPI_TPM_CR50
+ select DISABLE_POWER_OFF_EC_ON_CR50_UPDATE
config VARIANT_SPECIFIC_OPTIONS_NAUTILUS
def_bool n
--
To view, visit https://review.coreboot.org/28113
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: I06f5eb6100e8af6ffec45d4de2b40eff44f89709
Gerrit-Change-Number: 28113
Gerrit-PatchSet: 1
Gerrit-Owner: Daisuke Nojiri <dnojiri(a)chromium.org>
Enrico Granata has uploaded this change for review. ( https://review.coreboot.org/28112
Change subject: nocturne: Enable debouncing of SX9310 CLOSE / FAR IRQs
......................................................................
nocturne: Enable debouncing of SX9310 CLOSE / FAR IRQs
This is meant to solve an issue where the proximity sensor may fluctuate
between CLOSE / FAR in rapid succession upon the user removing their hand
from the unit, before settling on the correct output.
Using the hardware debouncing filter solves this issue and removes the
spurious fluctuations.
BRANCH=None
BUG=None
TEST=manual on Nocturne, observing events come in
Change-Id: I78cc4852d42fcda6209fedce1ce91236b5814571
Signed-off-by: Enrico Granata <egranata(a)chromium.org>
---
M src/mainboard/google/poppy/variants/nocturne/devicetree.cb
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/12/28112/1
diff --git a/src/mainboard/google/poppy/variants/nocturne/devicetree.cb b/src/mainboard/google/poppy/variants/nocturne/devicetree.cb
index 88af929..32f09f1 100644
--- a/src/mainboard/google/poppy/variants/nocturne/devicetree.cb
+++ b/src/mainboard/google/poppy/variants/nocturne/devicetree.cb
@@ -309,7 +309,7 @@
register "reg_prox_ctrl7" = "0x0d"
register "reg_prox_ctrl8" = "0x8d"
register "reg_prox_ctrl9" = "0x43"
- register "reg_prox_ctrl10" = "0x11"
+ register "reg_prox_ctrl10" = "0x1F"
register "reg_prox_ctrl11" = "0x00"
register "reg_prox_ctrl12" = "0x00"
register "reg_prox_ctrl13" = "0x00"
@@ -350,7 +350,7 @@
register "reg_prox_ctrl7" = "0x0d"
register "reg_prox_ctrl8" = "0x8d"
register "reg_prox_ctrl9" = "0x43"
- register "reg_prox_ctrl10" = "0x11"
+ register "reg_prox_ctrl10" = "0x1F"
register "reg_prox_ctrl11" = "0x00"
register "reg_prox_ctrl12" = "0x00"
register "reg_prox_ctrl13" = "0x00"
--
To view, visit https://review.coreboot.org/28112
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: I78cc4852d42fcda6209fedce1ce91236b5814571
Gerrit-Change-Number: 28112
Gerrit-PatchSet: 1
Gerrit-Owner: Enrico Granata <egranata(a)chromium.org>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28104
to look at the new patch set (#4).
Change subject: lib/fit_payload: Add coreboot tables support for FDT.
......................................................................
lib/fit_payload: Add coreboot tables support for FDT.
* Copy code of depthcharge boot/coreboot.c
and modify it.
Change-Id: Ib714a021a24f51407558f484cd97aa58ecd43977
Signed-off-by: Philipp Deppenwiese <zaolin(a)das-labor.org>
---
M src/lib/fit_payload.c
1 file changed, 65 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/04/28104/4
--
To view, visit https://review.coreboot.org/28104
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ib714a021a24f51407558f484cd97aa58ecd43977
Gerrit-Change-Number: 28104
Gerrit-PatchSet: 4
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Julius Werner has posted comments on this change. ( https://review.coreboot.org/28104 )
Change subject: lib/fit_payload: Add coreboot tables support for FDT.
......................................................................
Patch Set 3:
(4 comments)
https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c
File src/lib/fit_payload.c:
https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@112
PS2, Line 112: // Need to add 'ranges' to the intermediate node to make 'reg' work.
Remember to convert everything to coreboot comment style.
https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@119
PS2, Line 119: (char *)
Do you need this cast? Looks like we didn't need it in depthcharge so I'm confused...
Maybe we should change all the dt_add_..._prop() stuff to take const values?
https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@138
PS2, Line 138: reg_sizes[1] = cbmem_overhead_size();
These aren't the right numbers... at least not the numbers used by depthcharge. We don't actually have any uses for this field yet, so it's not that big of a deal, but we should try to keep it consistent.
The correct range (that depthcharge uses) is found by cbmem_add_bootmem(). Maybe we should expand that function to a slightly more generic cbmem_full_area(&start, &size) or something like that, so that we can use it both for bootmem and here.
https://review.coreboot.org/#/c/28104/2/src/lib/fit_payload.c@143
PS2, Line 143: exported from coreboot
nit: not really "exported from coreboot" anymore now, since we're still in coreboot
--
To view, visit https://review.coreboot.org/28104
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: Ib714a021a24f51407558f484cd97aa58ecd43977
Gerrit-Change-Number: 28104
Gerrit-PatchSet: 3
Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-Comment-Date: Wed, 15 Aug 2018 23:11:24 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Daisuke Nojiri has uploaded this change for review. ( https://review.coreboot.org/28110
Change subject: Nami: Disable powering off EC on cr50 update
......................................................................
Nami: Disable powering off EC on cr50 update
Nami doesn't support wakeup from hibernation by CR50. This causes the
device to remain turned off after CR50 update.
This patch disables turning off EC on cr50 update. CR50 resets the
whole system. So, EC reset is not required.
Signed-off-by: Daisuke Nojiri <dnojiri(a)chromium.org>
BUG=b:112604277
BRANCH=none
TEST=gsctool -a -u /media/removable/cr50.bin && reboot
Verify EC reboots. AP prints 'Waiting for CR50 reset to pick up update'
then reboots.
Change-Id: I60a7aa50a549e7a5a1a114245fbf7b9646d813bb
---
M src/mainboard/google/poppy/Kconfig
M src/security/tpm/tss/vendor/cr50/Kconfig
M src/vendorcode/google/chromeos/cr50_enable_update.c
3 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/28110/1
diff --git a/src/mainboard/google/poppy/Kconfig b/src/mainboard/google/poppy/Kconfig
index fc090df..1645451 100644
--- a/src/mainboard/google/poppy/Kconfig
+++ b/src/mainboard/google/poppy/Kconfig
@@ -169,6 +169,7 @@
select DRIVERS_SPI_ACPI
select EXCLUDE_NATIVE_SD_INTERFACE
select MAINBOARD_HAS_SPI_TPM_CR50
+ select DISABLE_POWER_OFF_EC_ON_CR50_UPDATE
config VARIANT_SPECIFIC_OPTIONS_NAUTILUS
def_bool n
diff --git a/src/security/tpm/tss/vendor/cr50/Kconfig b/src/security/tpm/tss/vendor/cr50/Kconfig
index 4d40c08..e98ec11 100644
--- a/src/security/tpm/tss/vendor/cr50/Kconfig
+++ b/src/security/tpm/tss/vendor/cr50/Kconfig
@@ -25,4 +25,11 @@
help
Power off machine while waiting for CR50 update to take effect.
+config DISABLE_POWER_OFF_EC_ON_CR50_UPDATE
+ bool
+ default n
+ help
+ Disable powering off EC while waiting for CR50 update to take effect.
+ Turning off EC is not necessary if CR50 resets the whole system.
+
endif
diff --git a/src/vendorcode/google/chromeos/cr50_enable_update.c b/src/vendorcode/google/chromeos/cr50_enable_update.c
index 1d91112..d07a9a3 100644
--- a/src/vendorcode/google/chromeos/cr50_enable_update.c
+++ b/src/vendorcode/google/chromeos/cr50_enable_update.c
@@ -60,7 +60,8 @@
printk(BIOS_INFO, "Waiting for CR50 reset to pick up update.\n");
if (IS_ENABLED(CONFIG_POWER_OFF_ON_CR50_UPDATE)) {
- if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) {
+ if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC) &&
+ !IS_ENABLED(CONFIG_DISABLE_POWER_OFF_EC_ON_CR50_UPDATE)) {
printk(BIOS_INFO, "Hibernating EC. Clearing AP_OFF.\n");
google_chromeec_reboot(0,
EC_REBOOT_HIBERNATE_CLEAR_AP_OFF,
--
To view, visit https://review.coreboot.org/28110
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: I60a7aa50a549e7a5a1a114245fbf7b9646d813bb
Gerrit-Change-Number: 28110
Gerrit-PatchSet: 1
Gerrit-Owner: Daisuke Nojiri <dnojiri(a)chromium.org>
Matt Delco has uploaded this change for review. ( https://review.coreboot.org/28108
Change subject: ec/google/chromec/acpi: switch tablet device from .h to Kconfig
......................................................................
ec/google/chromec/acpi: switch tablet device from .h to Kconfig
The ACPI tablet mode device was previously enabled by setting a #define
in an ec.h file. Prior changes have (if correct) set an analogous
setting in Kconfig. This change changes the compile-time check to be
based on Kconfig rather than ec.h.
Change-Id: Ie7d7301c2a11c3ae32b870b724018832200b49eb
Signed-off-by: Matt Delco <delco(a)chromium.org>
---
M src/ec/google/chromeec/acpi/ec.asl
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/28108/1
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index 94917dd..90ff62f 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -374,7 +374,7 @@
#ifdef EC_ENABLE_TABLET_EVENT
\_SB.DPTF.TPET()
#endif
-#ifdef EC_ENABLE_TBMC_DEVICE
+#if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC_ACPI_TABLET_DEVICE)
Notify (TBMC, 0x80)
#endif
}
@@ -547,7 +547,7 @@
#include "pd.asl"
#endif
-#ifdef EC_ENABLE_TBMC_DEVICE
+#if IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC_ACPI_TABLET_DEVICE)
#include "tbmc.asl"
#endif
}
--
To view, visit https://review.coreboot.org/28108
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: Ie7d7301c2a11c3ae32b870b724018832200b49eb
Gerrit-Change-Number: 28108
Gerrit-PatchSet: 1
Gerrit-Owner: Matt Delco <delco(a)chromium.org>