HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32564
Change subject: crossgcc: Upgrade GCC to 9.1.0
......................................................................
crossgcc: Upgrade GCC to 9.1.0
Change-Id: Id6f65548764654ae5539ac3c835853ea2fa1c5e0
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M util/crossgcc/buildgcc
D util/crossgcc/patches/gcc-8.3.0_nds32_ite.patch
R util/crossgcc/patches/gcc-9.1.0_ada-musl_workaround.patch
R util/crossgcc/patches/gcc-9.1.0_gnat.patch
R util/crossgcc/patches/gcc-9.1.0_libgcc.patch
D util/crossgcc/sum/gcc-8.3.0.tar.xz.cksum
A util/crossgcc/sum/gcc-9.1.0.tar.xz.cksum
7 files changed, 2 insertions(+), 21,021 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/32564/1
--
To view, visit https://review.coreboot.org/c/coreboot/+/32564
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6f65548764654ae5539ac3c835853ea2fa1c5e0
Gerrit-Change-Number: 32564
Gerrit-PatchSet: 1
Gerrit-Owner: HAOUAS Elyes <ehaouas(a)noos.fr>
Gerrit-MessageType: newchange
Tim Wawrzynczak has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35076 )
Change subject: drivers/spi/acpi: Support power resource as parent in device tree
......................................................................
drivers/spi/acpi: Support power resource as parent in device tree
This allows supporting an independent power resource for SPI ACPI
devices, so that the power resource configuration can be refactored
out of individual drivers and coalesced into a separate one.
Change-Id: Ib1e52a0f31d430637c9d819e231f9c4af6c68672
Signed-off-by: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
---
M src/drivers/spi/acpi/acpi.c
1 file changed, 16 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/35076/1
diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c
index 5ae010f..07f1a4b 100644
--- a/src/drivers/spi/acpi/acpi.c
+++ b/src/drivers/spi/acpi/acpi.c
@@ -23,6 +23,7 @@
#include <stdint.h>
#include <string.h>
#include "chip.h"
+#include "drivers/generic/power_resource/chip.h"
static int spi_acpi_get_bus(const struct device *dev)
{
@@ -73,8 +74,19 @@
static void spi_acpi_fill_ssdt_generator(struct device *dev)
{
+ const int parent_is_power_resource =
+ CONFIG(DRIVERS_GENERIC_POWER_RESOURCE) &&
+ (dev->bus && dev->bus->children == dev &&
+ dev->bus->dev->chip_ops == &drivers_generic_power_resource_ops);
+ /*
+ * Because the power resource is a "pseudo-device", we don't want it
+ * to be included in the ACPI path
+ */
+ const char *pr_scope = parent_is_power_resource ?
+ acpi_device_scope(dev->bus->dev) :
+ NULL;
struct drivers_spi_acpi_config *config = dev->chip_info;
- const char *scope = acpi_device_scope(dev);
+ const char *scope = (pr_scope == NULL) ? acpi_device_scope(dev) : pr_scope;
const char *path = acpi_device_path(dev);
struct acpi_spi spi = {
.device_select = dev->path.spi.cs,
@@ -184,6 +196,9 @@
acpi_device_path(dev));
acpi_add_device_power_resource("PRIC");
+ } else if (parent_is_power_resource) {
+ /* Parent device is a power resource, so set up _PR0/_PR3 */
+ acpi_add_device_power_resource(acpi_device_path(dev->bus->dev));
}
acpigen_pop_len(); /* Device */
--
To view, visit https://review.coreboot.org/c/coreboot/+/35076
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib1e52a0f31d430637c9d819e231f9c4af6c68672
Gerrit-Change-Number: 35076
Gerrit-PatchSet: 1
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: newchange