Marshall Dawson (marshalldawson3rd(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18270
-gerrit
commit 93d6c8f323a916b3311fe76c7710344a42bf2084
Author: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Date: Thu Dec 22 18:16:48 2016 -0500
payloads/depthcharge: Specify revision to build
Add the capability for specifying which version of Depthcharge to
checkout and build. This is similar to the existing feature for
SeaBIOS.
Coreboot's Depthcharge makefile already contains some structure for
checking out master vs. stable however the calling Makefile.inc
ignored this feature. Add the command-line variable assignment for
these, along with a tree-ish for any revision.
Change-Id: I99a5b088cb0ebb29e5d96a84217b3bfa852de8ac
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
payloads/external/Makefile.inc | 7 +++++--
payloads/external/depthcharge/Kconfig | 31 +++++++++++++++++++++++++++++++
payloads/external/depthcharge/Makefile | 1 +
3 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc
index 29163d0..d09305c 100644
--- a/payloads/external/Makefile.inc
+++ b/payloads/external/Makefile.inc
@@ -102,10 +102,13 @@ endif
# Depthcharge
payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(DOTCONFIG) $(CBFSTOOL)
-
$(MAKE) -C payloads/external/depthcharge \
BOARD=$(call ws_to_under,$(call strip_quotes,$(call tolower,$(CONFIG_MAINBOARD_PART_NUMBER)))) \
- MFLAGS= MAKEFLAGS=
+ MFLAGS= MAKEFLAGS= \
+ DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \
+ DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \
+ DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \
+ DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID)
# FILO
diff --git a/payloads/external/depthcharge/Kconfig b/payloads/external/depthcharge/Kconfig
index 84b36e5..d6ce538 100644
--- a/payloads/external/depthcharge/Kconfig
+++ b/payloads/external/depthcharge/Kconfig
@@ -1,5 +1,36 @@
if PAYLOAD_DEPTHCHARGE
+choice
+prompt "Depthcharge version"
+
+config DEPTHCHARGE_STABLE
+ bool "stable"
+ help
+ Latest stable version.
+
+config DEPTHCHARGE_MASTER
+ bool "master"
+ help
+ Newest Depthcharge version.
+
+config DEPTHCHARGE_REVISION
+ bool "git revision"
+ help
+ Select this option if you have a specific commit or branch that
+ you want to use as the revision from which to build Depthcharge.
+
+ You will be able to specify the name of a branch or a commit SHA
+ later.
+
+endchoice
+
+config DEPTHCHARGE_REVISION_ID
+ string "Insert a commit's SHA-1 or a branch name"
+ depends on DEPTHCHARGE_REVISION
+ default "origin/master"
+ help
+ The commit's SHA-1 or branch name of the revision to use.
+
config PAYLOAD_FILE
string
default "payloads/external/depthcharge/depthcharge/build/depthcharge.elf"
diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile
index 89db111..97d0950 100644
--- a/payloads/external/depthcharge/Makefile
+++ b/payloads/external/depthcharge/Makefile
@@ -13,6 +13,7 @@ VBOOT_SOURCE ?= $(abspath $(CURDIR)/../../../3rdparty/vboot)
TAG-$(DEPTHCHARGE_MASTER)=origin/master
TAG-$(DEPTHCHARGE_STABLE)=$(STABLE_COMMIT_ID)
+TAG-$(DEPTHCHARGE_REVISION)=$(DEPTHCHARGE_REVISION_ID)
# todo: consider reverting this once stable moves past the commit below
payload_target=depthcharge
Marshall Dawson (marshalldawson3rd(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18270
-gerrit
commit 7c66af1c68acc40c398ad749ee89f5a0d0351c5d
Author: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Date: Thu Dec 22 18:16:48 2016 -0500
payloads/depthcharge: Specify revision to build
Add the capability for specifying which version of Depthcharge to
checkout and build. This is similar to the existing feature for
SeaBIOS.
Coreboot's Depthcharge makefile already contains some structure for
checking out master vs. stable. However the calling Makefile.inc
ignored this feature. Add the command-line variable assignment for
these, along with a tree-ish for any revision.
Change-Id: I99a5b088cb0ebb29e5d96a84217b3bfa852de8ac
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
payloads/external/Makefile.inc | 7 +++++--
payloads/external/depthcharge/Kconfig | 31 +++++++++++++++++++++++++++++++
payloads/external/depthcharge/Makefile | 1 +
3 files changed, 37 insertions(+), 2 deletions(-)
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc
index 29163d0..d09305c 100644
--- a/payloads/external/Makefile.inc
+++ b/payloads/external/Makefile.inc
@@ -102,10 +102,13 @@ endif
# Depthcharge
payloads/external/depthcharge/depthcharge/build/depthcharge.elf depthcharge: $(DOTCONFIG) $(CBFSTOOL)
-
$(MAKE) -C payloads/external/depthcharge \
BOARD=$(call ws_to_under,$(call strip_quotes,$(call tolower,$(CONFIG_MAINBOARD_PART_NUMBER)))) \
- MFLAGS= MAKEFLAGS=
+ MFLAGS= MAKEFLAGS= \
+ DEPTHCHARGE_MASTER=$(CONFIG_DEPTHCHARGE_MASTER) \
+ DEPTHCHARGE_STABLE=$(CONFIG_DEPTHCHARGE_STABLE) \
+ DEPTHCHARGE_REVISION=$(CONFIG_DEPTHCHARGE_REVISION) \
+ DEPTHCHARGE_REVISION_ID=$(CONFIG_DEPTHCHARGE_REVISION_ID)
# FILO
diff --git a/payloads/external/depthcharge/Kconfig b/payloads/external/depthcharge/Kconfig
index 84b36e5..d6ce538 100644
--- a/payloads/external/depthcharge/Kconfig
+++ b/payloads/external/depthcharge/Kconfig
@@ -1,5 +1,36 @@
if PAYLOAD_DEPTHCHARGE
+choice
+prompt "Depthcharge version"
+
+config DEPTHCHARGE_STABLE
+ bool "stable"
+ help
+ Latest stable version.
+
+config DEPTHCHARGE_MASTER
+ bool "master"
+ help
+ Newest Depthcharge version.
+
+config DEPTHCHARGE_REVISION
+ bool "git revision"
+ help
+ Select this option if you have a specific commit or branch that
+ you want to use as the revision from which to build Depthcharge.
+
+ You will be able to specify the name of a branch or a commit SHA
+ later.
+
+endchoice
+
+config DEPTHCHARGE_REVISION_ID
+ string "Insert a commit's SHA-1 or a branch name"
+ depends on DEPTHCHARGE_REVISION
+ default "origin/master"
+ help
+ The commit's SHA-1 or branch name of the revision to use.
+
config PAYLOAD_FILE
string
default "payloads/external/depthcharge/depthcharge/build/depthcharge.elf"
diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile
index 89db111..97d0950 100644
--- a/payloads/external/depthcharge/Makefile
+++ b/payloads/external/depthcharge/Makefile
@@ -13,6 +13,7 @@ VBOOT_SOURCE ?= $(abspath $(CURDIR)/../../../3rdparty/vboot)
TAG-$(DEPTHCHARGE_MASTER)=origin/master
TAG-$(DEPTHCHARGE_STABLE)=$(STABLE_COMMIT_ID)
+TAG-$(DEPTHCHARGE_REVISION)=$(DEPTHCHARGE_REVISION_ID)
# todo: consider reverting this once stable moves past the commit below
payload_target=depthcharge
Marshall Dawson (marshalldawson3rd(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18269
-gerrit
commit 98cd707bcfbaf8f71b40c2b31895706ed145787f
Author: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Date: Fri Dec 23 10:16:43 2016 -0500
payloads/depthcharge: Use variable target name
Depending on the commit to build, Depthcharge may have a different
target name (depthcharge vs. depthcharge_unified). Add some logic
to determine which name should be used based on the commit ID
being requested.
Change-Id: I05b853934d13696f4bd0d79d53ff6c5f59096d1c
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
payloads/external/depthcharge/Makefile | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile
index fb0c75b..89db111 100644
--- a/payloads/external/depthcharge/Makefile
+++ b/payloads/external/depthcharge/Makefile
@@ -14,6 +14,11 @@ VBOOT_SOURCE ?= $(abspath $(CURDIR)/../../../3rdparty/vboot)
TAG-$(DEPTHCHARGE_MASTER)=origin/master
TAG-$(DEPTHCHARGE_STABLE)=$(STABLE_COMMIT_ID)
+# todo: consider reverting this once stable moves past the commit below
+payload_target=depthcharge
+payload_target_old=$(payload_target)_unified
+payload_namechange=74a07395eb9976747055b4ac7a0ae7dcb603a6f4
+
unexport KCONFIG_AUTOHEADER
unexport KCONFIG_AUTOCONFIG
unexport KCONFIG_DEPENDENCIES
@@ -60,8 +65,12 @@ config: $(libpayload_install_dir) checkout
build: config
echo " MAKE $(project_name) $(TAG-y)"
- cd $(project_dir) && $(MAKE) BOARD=$(BOARD) LIBPAYLOAD_DIR=$(libpayload_install_dir)/libpayload \
- VB_SOURCE=$(VBOOT_SOURCE) PATH="$(abspath ../../../build/util/cbfstool):$$PATH" depthcharge
+ cd $(project_dir) && \
+ git merge-base --is-ancestor $(payload_namechange) $(TAG-y) >/dev/null 2>&1 && \
+ $(MAKE) BOARD=$(BOARD) LIBPAYLOAD_DIR=$(libpayload_install_dir)/libpayload \
+ VB_SOURCE=$(VBOOT_SOURCE) PATH="$(abspath ../../../build/util/cbfstool):$$PATH" $(payload_target) || \
+ $(MAKE) BOARD=$(BOARD) LIBPAYLOAD_DIR=$(libpayload_install_dir)/libpayload \
+ VB_SOURCE=$(VBOOT_SOURCE) PATH="$(abspath ../../../build/util/cbfstool):$$PATH" $(payload_target_old)
clean:
test -d $(output_dir) && rm -rf $(output_dir) || exit 0
Marshall Dawson (marshalldawson3rd(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18268
-gerrit
commit 00baab4414e908faa511f2ee09ac036f8ba1baca
Author: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Date: Wed Dec 14 15:14:51 2016 -0500
payloads/depthcharge: Change make target from unified
Coreboot and Depthcharge have drifted out of sync. There is no
longer a non-unified Depthcharge so the build breaks when building
on master. This patch corresponds with the Depthcharge change:
https://review.coreboot.org/cgit/depthcharge.git/commit/?id=74a0739
Change-Id: I8d028b14d2eee63dfdc9d3dd63695f1c58ea7984
Signed-off-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
payloads/external/depthcharge/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/payloads/external/depthcharge/Makefile b/payloads/external/depthcharge/Makefile
index edc48f8..fb0c75b 100644
--- a/payloads/external/depthcharge/Makefile
+++ b/payloads/external/depthcharge/Makefile
@@ -61,7 +61,7 @@ config: $(libpayload_install_dir) checkout
build: config
echo " MAKE $(project_name) $(TAG-y)"
cd $(project_dir) && $(MAKE) BOARD=$(BOARD) LIBPAYLOAD_DIR=$(libpayload_install_dir)/libpayload \
- VB_SOURCE=$(VBOOT_SOURCE) PATH="$(abspath ../../../build/util/cbfstool):$$PATH" depthcharge_unified
+ VB_SOURCE=$(VBOOT_SOURCE) PATH="$(abspath ../../../build/util/cbfstool):$$PATH" depthcharge
clean:
test -d $(output_dir) && rm -rf $(output_dir) || exit 0
Vaibhav Shankar (vaibhav.shankar(a)intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18267
-gerrit
commit 64361d3ebae257618b0c956c60dfbb9a42b258e5
Author: Vaibhav Shankar <vaibhav.shankar(a)intel.com>
Date: Mon Jan 30 12:18:42 2017 -0800
mainboard/google/reef: Set edge triggered interrupt for GPIO_22
EC sets the logic level based on outstanding wake events. When GPIO_22
is configured as a level triggered interrupt, the events are not
cleared from the interrupt handler. Hence, we'd just be re-signalling
over and over causing an interrupt storm upon lid open. So, GPIO_22
needs to be configured as EDGE_SINGLE instead of LEVEL.
BUG=chrome-os-partner:62458
TEST=Lid close/open. check CPU usage using top. It should
not show 70% CPU usage.
Signed-off-by: Vaibhav Shankar <vaibhav.shankar(a)intel.com>
Change-Id: I710a690578c6e5b63be34b7fbcb21c703ef56e3a
---
src/mainboard/google/reef/variants/baseboard/gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mainboard/google/reef/variants/baseboard/gpio.c b/src/mainboard/google/reef/variants/baseboard/gpio.c
index 3bb9a5f..a9a6248 100644
--- a/src/mainboard/google/reef/variants/baseboard/gpio.c
+++ b/src/mainboard/google/reef/variants/baseboard/gpio.c
@@ -299,7 +299,7 @@ static const struct pad_config gpio_table[] = {
PAD_CFG_GPI(GPIO_19, UP_20K, DEEP), /* unused */
PAD_CFG_GPI_APIC_LOW(GPIO_20, UP_20K, DEEP), /* NFC IRQ */
PAD_CFG_GPI_APIC_LOW(GPIO_21, NONE, DEEP), /* Touch IRQ */
- PAD_CFG_GPI_SCI_LOW(GPIO_22, NONE, DEEP, LEVEL), /* EC wake */
+ PAD_CFG_GPI_SCI_LOW(GPIO_22, NONE, DEEP, EDGE_SINGLE), /* EC wake */
PAD_CFG_GPI(GPIO_23, UP_20K, DEEP), /* unused */
PAD_CFG_GPI(GPIO_24, NONE, DEEP), /* PEN_PDCT_ODL */
PAD_CFG_GPI(GPIO_25, UP_20K, DEEP), /* unused */