T Michael Turney has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/25208 )
Change subject: sdm845: Add QCLib to RomStage to perform IP init
......................................................................
Patch Set 73:
(1 comment)
https://review.coreboot.org/#/c/25208/73/src/soc/qualcomm/sdm845/Makefile.i…
File src/soc/qualcomm/sdm845/Makefile.inc:
https://review.coreboot.org/#/c/25208/73/src/soc/qualcomm/sdm845/Makefile.i…
PS73, Line 51: ifeq ($(CONFIG_QC_SDI_ENABLE),y)
> If we pull this out, the build-bot will not be happy and give a -1, at least it has in the past.
Ack
--
To view, visit https://review.coreboot.org/c/coreboot/+/25208
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I073186674a1a593547d1ee1d15c7cd4fd8ad5bc1
Gerrit-Change-Number: 25208
Gerrit-PatchSet: 73
Gerrit-Owner: T.Michael Turney <tturne(a)codeaurora.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: T Michael Turney <mturney(a)codeaurora.org>
Gerrit-Reviewer: T.Michael Turney <tturne(a)codeaurora.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Comment-Date: Wed, 24 Apr 2019 19:33:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: T Michael Turney <mturney(a)codeaurora.org>
Comment-In-Reply-To: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: comment
Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32289
Change subject: util/sconfig: Throw an error if override tree has no devices
......................................................................
util/sconfig: Throw an error if override tree has no devices
If override tree does not have any device, then the chip info
structure in it cannot be associated with the correct device and ends
up being added as a standalone chip info structure without any device
actually using it. This change prevents this condition by throwing an
error during compilation.
BUG=b:130342895
Change-Id: I7b8bb6b3228030a465976ca32ce8ef63f41365dd
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M util/sconfig/main.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/32289/1
diff --git a/util/sconfig/main.c b/util/sconfig/main.c
index 4ac935e..5382f47 100644
--- a/util/sconfig/main.c
+++ b/util/sconfig/main.c
@@ -1316,6 +1316,11 @@
override_devtree = argv[OVERRIDE_DEVICEFILE_ARG];
parse_devicetree(override_devtree, &override_root_bus);
+ if (!dev_has_children(&override_root_dev)) {
+ fprintf(stderr, "ERROR: Override tree needs at least one device!\n");
+ exit(1);
+ }
+
override_devicetree(&base_root_bus, &override_root_bus);
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/32289
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7b8bb6b3228030a465976ca32ce8ef63f41365dd
Gerrit-Change-Number: 32289
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-MessageType: newchange
Keith Short has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32435
Change subject: security/tpm: Change POWER_OFF_ON_CR50_UPDATE so it can be disabled
......................................................................
security/tpm: Change POWER_OFF_ON_CR50_UPDATE so it can be disabled
Modify the POWER_OFF_ON_CR50_UPDATE Kconfig option so that specific
mainboard implementations can disable the option.
BUG=b:126632503
BRANCH=none
TEST=Build coreboot on sarien/arcada.
TEST=Perform Cr50 firmware update on Sarien, confirm the platform boots
normally after sending TURN_UPDATE_ON to the Cr50.
Change-Id: I3beefaae21de61e53ae232dbdc8ea9dbb2c78cd5
Signed-off-by: Keith Short <keithshort(a)chromium.org>
---
M src/security/tpm/tss/vendor/cr50/Kconfig
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/35/32435/1
diff --git a/src/security/tpm/tss/vendor/cr50/Kconfig b/src/security/tpm/tss/vendor/cr50/Kconfig
index 4d40c08..4a2ad4f 100644
--- a/src/security/tpm/tss/vendor/cr50/Kconfig
+++ b/src/security/tpm/tss/vendor/cr50/Kconfig
@@ -16,12 +16,12 @@
config TPM_CR50
bool
default y if MAINBOARD_HAS_I2C_TPM_CR50 || MAINBOARD_HAS_SPI_TPM_CR50
- select POWER_OFF_ON_CR50_UPDATE if ARCH_X86
if TPM_CR50
config POWER_OFF_ON_CR50_UPDATE
bool
+ default y if ARCH_X86
help
Power off machine while waiting for CR50 update to take effect.
--
To view, visit https://review.coreboot.org/c/coreboot/+/32435
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3beefaae21de61e53ae232dbdc8ea9dbb2c78cd5
Gerrit-Change-Number: 32435
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Short <keithshort(a)chromium.org>
Gerrit-MessageType: newchange
EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32437
Change subject: mb/google/sarein: Remove touch VPD support and Melfas HID touch
......................................................................
mb/google/sarein: Remove touch VPD support and Melfas HID touch
Sarien will change Melfas from HID to I2C and change address from
0x10 to 0x34. So we don't need VPD to separate Elan and Melfas
anymore.
BUG=b:131194574
TEST=boot up and check no Melfas HID device exist
Signed-off-by: Eric Lai <ericr_lai(a)compal.corp-partner.google.com>
Change-Id: Ic002f61b226743e1c18dbdbc51ce8b733916d8a0
---
M src/mainboard/google/sarien/Kconfig
M src/mainboard/google/sarien/variants/sarien/Makefile.inc
M src/mainboard/google/sarien/variants/sarien/devicetree.cb
D src/mainboard/google/sarien/variants/sarien/ramstage.c
4 files changed, 1 insertion(+), 92 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/32437/1
diff --git a/src/mainboard/google/sarien/Kconfig b/src/mainboard/google/sarien/Kconfig
index 9d658fa..f1046ec 100644
--- a/src/mainboard/google/sarien/Kconfig
+++ b/src/mainboard/google/sarien/Kconfig
@@ -100,11 +100,6 @@
string
default "variants/$(CONFIG_VARIANT_DIR)/devicetree.cb"
-config TOUCHSCREEN_HID
- string "Specify the touchscreen HID enabled for the OS"
- default "WCOM48E2" if BOARD_GOOGLE_ARCADA
- default "ELAN900C" if BOARD_GOOGLE_SARIEN
-
config VBOOT
select HAS_RECOVERY_MRC_CACHE
select MRC_CLEAR_NORMAL_CACHE_ON_RECOVERY_RETRAIN
diff --git a/src/mainboard/google/sarien/variants/sarien/Makefile.inc b/src/mainboard/google/sarien/variants/sarien/Makefile.inc
index fa5b2ea..2bf028e 100644
--- a/src/mainboard/google/sarien/variants/sarien/Makefile.inc
+++ b/src/mainboard/google/sarien/variants/sarien/Makefile.inc
@@ -14,6 +14,6 @@
##
bootblock-y += gpio.c
-ramstage-y += gpio.c ramstage.c
+ramstage-y += gpio.c
romstage-y += gpio.c
verstage-y += gpio.c
diff --git a/src/mainboard/google/sarien/variants/sarien/devicetree.cb b/src/mainboard/google/sarien/variants/sarien/devicetree.cb
index 625655b..1b72058 100644
--- a/src/mainboard/google/sarien/variants/sarien/devicetree.cb
+++ b/src/mainboard/google/sarien/variants/sarien/devicetree.cb
@@ -306,19 +306,6 @@
device pci 14.5 off end # SDCard
device pci 15.0 on
chip drivers/i2c/hid
- register "generic.hid" = ""ACPI0C50""
- register "generic.desc" = ""Touchscreen""
- register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)"
- register "generic.probed" = "1"
- register "generic.enable_gpio" =
- "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_E7)"
- register "generic.enable_delay_ms" = "5"
- register "generic.enable_off_delay_ms" = "100"
- register "generic.has_power_resource" = "1"
- register "hid_desc_reg_offset" = "0x0"
- device i2c 10 on end
- end
- chip drivers/i2c/hid
register "generic.hid" = ""ELAN900C""
register "generic.desc" = ""ELAN Touchscreen""
register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_C23_IRQ)"
diff --git a/src/mainboard/google/sarien/variants/sarien/ramstage.c b/src/mainboard/google/sarien/variants/sarien/ramstage.c
deleted file mode 100644
index d20260c..0000000
--- a/src/mainboard/google/sarien/variants/sarien/ramstage.c
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright 2019 Google LLC
- *
- * 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 <bootstate.h>
-#include <console/console.h>
-#include <device/device.h>
-#include <drivers/i2c/hid/chip.h>
-#include <drivers/vpd/vpd.h>
-#include <soc/pci_devs.h>
-#include <string.h>
-
-/*
- * This board may have different touchscreen devices that are at the
- * same I2C slave address but need different drivers or ACPI configuration.
- *
- * The default touchscreen to be enabled is specified in Kconfig by the
- * ACPI HID of the device. If a board is connected to a different
- * touchscreen device it can be enabled in Kconfig or by setting the
- * VPD key 'touchscreen_hid'.
- */
-
-#define TOUCHSCREEN_I2C_ADDR 0x10
-#define TOUCHSCREEN_VPD_KEY "touchscreen_hid"
-
-static void disable_unused_touchscreen(void *unused)
-{
- struct device *i2c0 = PCH_DEV_I2C0;
- struct bus *i2c_slaves = i2c0->link_list;
- struct device *slave = i2c_slaves->children;
- char touchscreen_hid[9] = CONFIG_TOUCHSCREEN_HID;
- struct drivers_i2c_hid_config *info;
-
- /* Look for VPD key that indicates which touchscreen is present */
- if (CONFIG(VPD) &&
- !vpd_gets(TOUCHSCREEN_VPD_KEY, touchscreen_hid,
- ARRAY_SIZE(touchscreen_hid), VPD_ANY))
- printk(BIOS_INFO, "%s: VPD key '%s' not found, default to %s\n",
- __func__, TOUCHSCREEN_VPD_KEY, touchscreen_hid);
-
- /* Go through all I2C slave devices on this bus */
- while (slave) {
- /* Find all the I2C slaves with the matching address */
- if (slave->path.type == DEVICE_PATH_I2C &&
- slave->path.i2c.device == TOUCHSCREEN_I2C_ADDR) {
- info = slave->chip_info;
- /* Disable all devices except the matching HID */
- if (strncmp(info->generic.hid, touchscreen_hid,
- ARRAY_SIZE(touchscreen_hid))) {
- printk(BIOS_INFO, "%s: Disable %s\n", __func__,
- info->generic.hid);
- slave->enabled = 0;
- } else {
- printk(BIOS_INFO, "%s: Enable %s\n", __func__,
- info->generic.hid);
- }
- }
- slave = slave->sibling;
- }
-}
-BOOT_STATE_INIT_ENTRY(BS_WRITE_TABLES, BS_ON_ENTRY,
- disable_unused_touchscreen, NULL);
--
To view, visit https://review.coreboot.org/c/coreboot/+/32437
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic002f61b226743e1c18dbdbc51ce8b733916d8a0
Gerrit-Change-Number: 32437
Gerrit-PatchSet: 1
Gerrit-Owner: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange