EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/52118 )
Change subject: mb/google/mancomb: Enable PCIe devices in devicetree
......................................................................
mb/google/mancomb: Enable PCIe devices in devicetree
BUG=b:182211161
TEST=builds
Signed-off-by: Eric Lai <ericr_lai(a)compal.corp-partner.google.com>
Change-Id: Id6c20b32ddafe415132ce70abf5381ff3aad13f7
---
M src/mainboard/google/mancomb/variants/baseboard/devicetree.cb
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/52118/1
diff --git a/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb b/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb
index c4ef3f5..305ba0b 100644
--- a/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/mancomb/variants/baseboard/devicetree.cb
@@ -39,6 +39,11 @@
}"
device domain 0 on
+ device ref gpp_bridge_0 on end # WLAN
+ device ref gpp_bridge_1 on end # SD
+ device ref gpp_bridge_2 on end # LAN
+ device ref gpp_bridge_3 on end # NVMe
+
device ref gpp_bridge_a on # Internal GPP Bridge 0 to Bus A
device ref gfx on end # Internal GPU (GFX)
end
--
To view, visit https://review.coreboot.org/c/coreboot/+/52118
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id6c20b32ddafe415132ce70abf5381ff3aad13f7
Gerrit-Change-Number: 52118
Gerrit-PatchSet: 1
Gerrit-Owner: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange
Attention is currently required from: Martin Roth.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52115 )
Change subject: mb/google/guybrush: PCIe GPIOs - enable enables, disable resets
......................................................................
Patch Set 1:
(2 comments)
File src/mainboard/google/guybrush/variants/baseboard/gpio.c:
https://review.coreboot.org/c/coreboot/+/52115/comment/04b4b8ca_d117d19e
PS1, Line 54: HIGH
Don't you need the *_RST{_L} signals to be deasserted before FSP-M runs?
https://review.coreboot.org/c/coreboot/+/52115/comment/a7a452a6_b2866612
PS1, Line 169: /* EN_PP3300_WLAN */
Is there any timing requirement between EN_PP3300_WLAN and WLAN_DISABLE signals? Same for WWAN?
--
To view, visit https://review.coreboot.org/c/coreboot/+/52115
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3807e02de1e9ae40b0a4162217afd6aabb5b04ed
Gerrit-Change-Number: 52115
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Comment-Date: Tue, 06 Apr 2021 03:23:12 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Martin Roth, Felix Held.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/51838 )
Change subject: lint: checkpatch: Add SUSPICIOUS_CODE_INDENT test
......................................................................
Patch Set 2:
(7 comments)
Patchset:
PS2:
> Hi, hmmm, thought I'd give it a quick look and then... all the […]
Yeah, unfortunately I haven't got any attention at all on LKML yet. Maybe it would help if you post these there, create a bit more back-and-forth on the patch series to bump it to the top of the maintainer's inbox.
File util/lint/checkpatch.pl:
https://review.coreboot.org/c/coreboot/+/51838/comment/67fa9966_cb625ad9
PS2, Line 1345: @stack = (['', 0]) if ($#stack == -1);
> Looks like this wouldn't be needed anymore? With the new index checks, […]
Right, I guess I could drop it.
https://review.coreboot.org/c/coreboot/+/51838/comment/d16b0ec5_c19f7ed6
PS2, Line 1553: $level = $stack[$#stack - 1];
> Looks like this suffers the same?
Yeah, looks like it. I haven't actually looked into what this set of functions does and where it is used. But in isolation this looks like the same bug.
https://review.coreboot.org/c/coreboot/+/51838/comment/9a595e55_cf2364b1
PS2, Line 3629: s
> The `s` modifier looks suspicious. AIUI, it means the `.` could match […]
Probably, yeah. This is from Ivo's original patch which I didn't want to modify upstream for attribution reasons. Maybe he thought that without the /s he couldn't match "\n" at all (some regex engines work that way, although I think Perl's doesn't... at least the thing for labels I wrote below seemed to work without it).
If you think it's important enough I can put another cleanup patch behind Ivo's to fix up minor stuff.
https://review.coreboot.org/c/coreboot/+/51838/comment/a397bca7_a39e6180
PS2, Line 3638: \s*
> Is there a point to match preceding whitespace if we don't match from the start?
No idea, this is also Ivo's stuff. Probably not.
https://review.coreboot.org/c/coreboot/+/51838/comment/0b0befbd_2a32ab6c
PS2, Line 3642: \s*?
> I couldn't find any example where this matches. […]
I think ctx_statement_block() just doesn't handle do-while perfectly, and this is meant to work around that. When parsing a do-while statement, $stat ends up counting the `do { ... }` up until the closing brace and then $s_next gets the ` while (...)`, starting with the leading space which makes it look indented. This will eat the while part so that s_next really captures the next statement. (That's why it's using `^` instead of `\n`, too, because it's really only about the start of the whole statement.)
https://review.coreboot.org/c/coreboot/+/51838/comment/3972f73b_a15404dc
PS2, Line 3663: stat_real
> Nit, somehow $stat_real is missing the closing brace (if it was a block with braces).
Hmm... yeah, not sure, $stat_real already falls out of the existing code above. This is printing it the same way the existing warning is printing it, I hope that's good enough.
--
To view, visit https://review.coreboot.org/c/coreboot/+/51838
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7bb90b56dfc7582271d2b82cb42a2c1df477054f
Gerrit-Change-Number: 51838
Gerrit-PatchSet: 2
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Tue, 06 Apr 2021 03:10:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: comment
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47313 )
Change subject: mb/google/zork: Add timestamps around forced delay
......................................................................
mb/google/zork: Add timestamps around forced delay
Due to a hardware design change, early boards need an additional delay
when initializing the fingerprint sensor. Add a timestamp around the
delay so it can be subtracted from the timestamp calculation if desired.
BUG=b:171837716
TEST=Look at new timestamp data
BRANCH=Zork
Signed-off-by: Martin Roth <martinroth(a)chromium.org>
Change-Id: I801f0af6ef54f92865fd627dee12bb023cef534f
---
M src/mainboard/google/zork/variants/berknip/gpio.c
M src/mainboard/google/zork/variants/morphius/gpio.c
2 files changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/47313/1
diff --git a/src/mainboard/google/zork/variants/berknip/gpio.c b/src/mainboard/google/zork/variants/berknip/gpio.c
index a4d5a64..b91078e 100644
--- a/src/mainboard/google/zork/variants/berknip/gpio.c
+++ b/src/mainboard/google/zork/variants/berknip/gpio.c
@@ -7,6 +7,7 @@
#include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h>
+#include <timestamp.h>
static const struct soc_amd_gpio berknip_bid1_gpio_set_stage_ram[] = {
/* PEN_DETECT_ODL - no used */
@@ -64,7 +65,9 @@
/* Berknip board versions prior to v4 need an extra delay here */
if (board_version <= 3) {
+ timestamp_add_now(TS_DELAY_START);
mdelay(550);
+ timestamp_add_now(TS_DELAY_END);
}
/*
* Enable the FPMCU by enabling EN_PWR_FP, then bringing it out
diff --git a/src/mainboard/google/zork/variants/morphius/gpio.c b/src/mainboard/google/zork/variants/morphius/gpio.c
index 14211b2..4f2781c 100644
--- a/src/mainboard/google/zork/variants/morphius/gpio.c
+++ b/src/mainboard/google/zork/variants/morphius/gpio.c
@@ -7,6 +7,7 @@
#include <gpio.h>
#include <soc/gpio.h>
#include <ec/google/chromeec/ec.h>
+#include <timestamp.h>
static const struct soc_amd_gpio morphius_bid1_gpio_set_stage_ram[] = {
/* DMIC_SEL */
@@ -99,7 +100,9 @@
/* Morphius board versions prior to v5 need an extra delay here */
if (board_version <= 4) {
+ timestamp_add_now(TS_DELAY_START);
mdelay(550);
+ timestamp_add_now(TS_DELAY_END);
}
/*
* Enable the FPMCU by enabling EN_PWR_FP, then bringing it out
--
To view, visit https://review.coreboot.org/c/coreboot/+/47313
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I801f0af6ef54f92865fd627dee12bb023cef534f
Gerrit-Change-Number: 47313
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange
Martin Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48650 )
Change subject: mb/google/zork: Disable USB_OC0_L on transition to S3
......................................................................
mb/google/zork: Disable USB_OC0_L on transition to S3
One of the second source USB charging port chips is erroneous
triggering the overcurrent pin when we go into S3. Because this is
used mainly to report the overcurrent situation to the OS and there
is additional overcurrent protection, we can disable the function
when the system goes into S3. It will get switched back to the
overcurrent function when the system resumes.
BUG=b:175646274
TEST=Build. Still needs to be functionally tested
BRANCH=Zork
Change-Id: I9d280c793a7989ebaa2fcc28531fe14e2adbfaef
---
M src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/48650/1
diff --git a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
index a2ad517..234cd7d 100644
--- a/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
+++ b/src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c
@@ -336,6 +336,9 @@
PAD_GPO(GPIO_40, LOW),
/* EN_PWR_CAMERA */
PAD_GPO(GPIO_76, LOW),
+ /* USB_OC0_L - USB C0 + USB A0 */
+ PAD_GPI(GPIO_16, PULL_NONE),
+
};
static const struct soc_amd_gpio gpio_fp_shutdown_table[] = {
@@ -348,6 +351,9 @@
PAD_GPO(GPIO_11, LOW),
/* EN_PWR_FP */
PAD_GPO(GPIO_32, LOW),
+
+ /* USB_OC0_L - USB C0 + USB A0 */
+ PAD_GPI(GPIO_16, PULL_NONE),
};
const __weak struct soc_amd_gpio *variant_sleep_gpio_table(size_t *size, int slp_typ)
--
To view, visit https://review.coreboot.org/c/coreboot/+/48650
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9d280c793a7989ebaa2fcc28531fe14e2adbfaef
Gerrit-Change-Number: 48650
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-MessageType: newchange
Martin Roth has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/50285 )
Change subject: mb/google/zork: Use Kconfig SPI speed & read mode in devicetree
......................................................................
Abandoned
--
To view, visit https://review.coreboot.org/c/coreboot/+/50285
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I116adf4fe0de5a2790894618ccff8ebf629fab34
Gerrit-Change-Number: 50285
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: abandon