Attention is currently required from: Alexander Couzens, Elyes Haouas.
Nicholas Sudsgaard has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/81484?usp=email )
Change subject: mb/lenovo: Remove blank lines before '}' and after '{'
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
Regarding the gpio tables, as those are generated by `util/intelp2m`. It might be a good idea to change how the script …
[View More]works to avoid doing this again in the future.
Maybe something roughly like (`util/intelp2m/parser/parser.go:53`):
```
func (info *padInfo) titleFprint() {
if !strings.Contains(info.function, "GPIO Community 0") {
fmt.Fprintf(config.OutputGenFile, "\n")
}
info.generate(0, "\t/* %s */\n", info.function)
}
```
--
To view, visit https://review.coreboot.org/c/coreboot/+/81484?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I6ece868184dd772fc2c3c472ae2172d1c34fb179
Gerrit-Change-Number: 81484
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Nicholas Sudsgaard <devel+coreboot(a)nsudsgaard.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Attention: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Comment-Date: Sun, 24 Mar 2024 00:13:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
[View Less]
Attention is currently required from: Alexander Couzens, Elyes Haouas.
Nicholas Sudsgaard has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/81484?usp=email )
Change subject: mb/lenovo: Remove blank lines before '}' and after '{'
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/81484?usp=email
To unsubscribe, or for help writing mail filters, visit …
[View More]https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I6ece868184dd772fc2c3c472ae2172d1c34fb179
Gerrit-Change-Number: 81484
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Nicholas Sudsgaard <devel+coreboot(a)nsudsgaard.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Attention: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Comment-Date: Sat, 23 Mar 2024 23:45:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
[View Less]
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/81432?usp=email )
Change subject: soc/amd/common/noncar/memmap: reduce visibility of memmap_early_dram
......................................................................
soc/amd/common/noncar/memmap: reduce visibility of memmap_early_dram
The memmap_early_dram struct is now only used inside the non-CAR
memmap.c, so move the struct definition there.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de…
[View More]>
Change-Id: Id2bb3d3a9e01e9bae9463c582cb105b95c673a38
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81432
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Reviewed-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
---
M src/soc/amd/common/block/cpu/noncar/memmap.c
M src/soc/amd/common/block/include/amdblocks/memmap.h
2 files changed, 6 insertions(+), 6 deletions(-)
Approvals:
build bot (Jenkins): Verified
Marshall Dawson: Looks good to me, approved
Matt DeVillier: Looks good to me, approved
diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c
index e6db85a..396260f 100644
--- a/src/soc/amd/common/block/cpu/noncar/memmap.c
+++ b/src/soc/amd/common/block/cpu/noncar/memmap.c
@@ -10,6 +10,12 @@
#include <memrange.h>
#include <types.h>
+struct memmap_early_dram {
+ /* fixed size types, so the layout in CBMEM won't change for 32 vs. 64 bit stages */
+ uint32_t base;
+ uint32_t size;
+};
+
void memmap_stash_early_dram_usage(void)
{
struct memmap_early_dram *e;
diff --git a/src/soc/amd/common/block/include/amdblocks/memmap.h b/src/soc/amd/common/block/include/amdblocks/memmap.h
index 258b8b7..e769df6 100644
--- a/src/soc/amd/common/block/include/amdblocks/memmap.h
+++ b/src/soc/amd/common/block/include/amdblocks/memmap.h
@@ -9,12 +9,6 @@
DECLARE_REGION(early_reserved_dram)
-struct memmap_early_dram {
- /* fixed size types, so the layout in CBMEM won't change for 32 vs. 64 bit stages */
- uint32_t base;
- uint32_t size;
-};
-
void memmap_stash_early_dram_usage(void);
/* report SoC memory map up to cbmem_top */
--
To view, visit https://review.coreboot.org/c/coreboot/+/81432?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Id2bb3d3a9e01e9bae9463c582cb105b95c673a38
Gerrit-Change-Number: 81432
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
[View Less]
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/81391?usp=email )
Change subject: soc/amd/common/cpu/noncar/memmap: use VGA MMIO defines everywhere
......................................................................
soc/amd/common/cpu/noncar/memmap: use VGA MMIO defines everywhere
Only the VGA MMIO range used the VGA_MMIO_* defines, but instead of
using constants for the end of the region before that and the beginning
of the region after that, the …
[View More]VGA_MMIO_* defines can be used.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I45c3888efb942cdd15416b730e36a9fb1ddd9697
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81391
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Reviewed-by: Marshall Dawson <marshalldawson3rd(a)gmail.com>
---
M src/soc/amd/common/block/cpu/noncar/memmap.c
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
build bot (Jenkins): Verified
Marshall Dawson: Looks good to me, approved
Matt DeVillier: Looks good to me, approved
diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c
index 488c209..e6db85a 100644
--- a/src/soc/amd/common/block/cpu/noncar/memmap.c
+++ b/src/soc/amd/common/block/cpu/noncar/memmap.c
@@ -42,13 +42,13 @@
const uintptr_t early_reserved_dram_end = e->base + e->size;
/* 0x0 - 0x9ffff */
- ram_range(dev, (*idx)++, 0, 0xa0000);
+ ram_range(dev, (*idx)++, 0, VGA_MMIO_BASE);
/* 0xa0000 - 0xbffff: legacy VGA */
mmio_range(dev, (*idx)++, VGA_MMIO_BASE, VGA_MMIO_SIZE);
/* 0xc0000 - 0xfffff: Option ROM */
- reserved_ram_from_to(dev, (*idx)++, 0xc0000, 1 * MiB);
+ reserved_ram_from_to(dev, (*idx)++, VGA_MMIO_BASE + VGA_MMIO_SIZE, 1 * MiB);
/* 1MiB - bottom of DRAM reserved for early coreboot usage */
ram_from_to(dev, (*idx)++, 1 * MiB, early_reserved_dram_start);
--
To view, visit https://review.coreboot.org/c/coreboot/+/81391?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I45c3888efb942cdd15416b730e36a9fb1ddd9697
Gerrit-Change-Number: 81391
Gerrit-PatchSet: 2
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
[View Less]
Attention is currently required from: Elyes Haouas, Hung-Te Lin, Xi Chen, Yu-Ping Wu.
Yidi Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/81462?usp=email )
Change subject: soc/mediatek: Remove blank lines before '}' and after '{'
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/81462?usp=email
To unsubscribe, or for help writing mail filters, …
[View More]visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I0ce2b61329efede1ba8a02446610e3eb635ceedc
Gerrit-Change-Number: 81462
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Xi Chen <xixi.chen(a)mediatek.com>
Gerrit-Reviewer: Yidi Lin <yidilin(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Xi Chen <xixi.chen(a)mediatek.com>
Gerrit-Attention: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Attention: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Comment-Date: Sat, 23 Mar 2024 20:29:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
[View Less]
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/81126?usp=email )
Change subject: drivers/i2c/tas5825m: Allow using I2C bus
......................................................................
drivers/i2c/tas5825m: Allow using I2C bus
The latest Clevo boards connect the TAS5825M to one of the I2C
connections instead of the SMBus connection. The I2C ops are compatible
with SMBus, so always use them.
Tested on system76/oryp6 (uses SMBus) and in-development …
[View More]system76/oryp12
(uses I2C3). TAS5825M init is successful and speaker output works.
Change-Id: I2233d6977fd460b53e27260cdfabe42e30b98041
Signed-off-by: Tim Crawford <tcrawford(a)system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81126
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Jeremy Soller <jeremy(a)system76.com>
---
M src/drivers/i2c/tas5825m/tas5825m.c
1 file changed, 7 insertions(+), 7 deletions(-)
Approvals:
build bot (Jenkins): Verified
Jeremy Soller: Looks good to me, approved
diff --git a/src/drivers/i2c/tas5825m/tas5825m.c b/src/drivers/i2c/tas5825m/tas5825m.c
index 9f14059..ead1b16 100644
--- a/src/drivers/i2c/tas5825m/tas5825m.c
+++ b/src/drivers/i2c/tas5825m/tas5825m.c
@@ -1,23 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
-#include <device/smbus.h>
-#include <device/pci.h>
+#include <device/i2c_bus.h>
#include "chip.h"
#include "tas5825m.h"
int tas5825m_write_at(struct device *dev, uint8_t addr, uint8_t value)
{
- return smbus_write_byte(dev, addr, value);
+ return i2c_dev_writeb_at(dev, addr, value);
}
-//TODO: use I2C block write for better performance
int tas5825m_write_block_at(struct device *dev, uint8_t addr,
const uint8_t *values, uint8_t length)
{
+ // TODO: use I2C block write for better performance; SMBus does not
+ // have `transfer` op for it.
+
int res = 0;
for (uint8_t i = 0; i < length; i++) {
- res = smbus_write_byte(dev, addr + i, values[i]);
+ res = i2c_dev_writeb_at(dev, addr + i, values[i]);
if (res < 0)
return res;
}
@@ -45,8 +46,7 @@
static void tas5825m_init(struct device *dev)
{
- if (dev->enabled && dev->path.type == DEVICE_PATH_I2C &&
- ops_smbus_bus(get_pbus_smbus(dev))) {
+ if (dev->enabled && dev->path.type == DEVICE_PATH_I2C && i2c_link(dev)) {
printk(BIOS_DEBUG, "tas5825m at %s\n", dev_path(dev));
struct drivers_i2c_tas5825m_config *config = dev->chip_info;
--
To view, visit https://review.coreboot.org/c/coreboot/+/81126?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I2233d6977fd460b53e27260cdfabe42e30b98041
Gerrit-Change-Number: 81126
Gerrit-PatchSet: 2
Gerrit-Owner: Tim Crawford <tcrawford(a)system76.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jeremy Soller <jeremy(a)system76.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
[View Less]