Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28573
to look at the new patch set (#2).
Change subject: mv/google/kahlee/variants/baseboard/gpio.c: Reset I2C slaves
......................................................................
mv/google/kahlee/variants/baseboard/gpio.c: Reset I2C slaves
Use the new I2C slave reset function and reset all slaves connected to all
4 I2C.
BUG=b:114479395
TEST=Added debug code. Build and boot grunt. Examined output, confirmed
GPIO pins changing as required. Removed debug code.
Change-Id: Ibef28cee53068569482e3ea255fd85f97d1d1a30
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/mainboard/google/kahlee/mainboard.c
M src/mainboard/google/kahlee/variants/baseboard/gpio.c
M src/mainboard/google/kahlee/variants/baseboard/include/baseboard/variants.h
3 files changed, 25 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/28573/2
--
To view, visit https://review.coreboot.org/28573
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ibef28cee53068569482e3ea255fd85f97d1d1a30
Gerrit-Change-Number: 28573
Gerrit-PatchSet: 2
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28572
to look at the new patch set (#2).
Change subject: soc/amd/stoneyridge/gpio.c: Create I2C slave reset code
......................................................................
soc/amd/stoneyridge/gpio.c: Create I2C slave reset code
AMD soc does not wait for I2C transaction to complete before executing a
reset. Because of this, it's possible for the reset to happen in the middle
of a transaction, resulting on a slave hang. There are 2 possible solutions:
If the slave has a reset pin connected to a GPIO pin, it can be used to
reset the slave, else the only solution is to bang SCL 9 times. Create code
that makes it easy to implement either solution.
BUG=b:114479395
TEST=Build and boot grunt.
Change-Id: I9a0bc00c55ecc8ec660c74794bee48302663e72b
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/soc/amd/stoneyridge/gpio.c
M src/soc/amd/stoneyridge/include/soc/gpio.h
2 files changed, 108 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/28572/2
--
To view, visit https://review.coreboot.org/28572
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I9a0bc00c55ecc8ec660c74794bee48302663e72b
Gerrit-Change-Number: 28572
Gerrit-PatchSet: 2
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/28572
Change subject: soc/amd/stoneyridge/gpio.c: Create I2C slave reset code
......................................................................
soc/amd/stoneyridge/gpio.c: Create I2C slave reset code
AMD soc does not wait for I2C transaction to complete before executing a
reset. Because of this, it's possible for the reset to happen in the middle
of a transaction, resulting on a slave hang. There are 2 possible solutions:
If the slave has a reset pin connected to a GPIO pin, it can be used to
reset the slave, else the only solution is to bang SCL 9 times. Create code
that makes it easy to implement either solution.
BUG=b:114479395
TEST=Build and boot grunt.
Change-Id: I9a0bc00c55ecc8ec660c74794bee48302663e72b
Signed-off-by: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
---
M src/soc/amd/stoneyridge/gpio.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/28572/1
diff --git a/src/soc/amd/stoneyridge/gpio.c b/src/soc/amd/stoneyridge/gpio.c
index d846315..1da7ab4 100644
--- a/src/soc/amd/stoneyridge/gpio.c
+++ b/src/soc/amd/stoneyridge/gpio.c
@@ -349,7 +349,7 @@
}
remain = 1; /* at least 1 pin needs to be toggled */
- while(remain) {
+ while (remain) {
for (i = 0; i < j; i++) {
if (control_table[i].count) {
reg32 = read32(control_table[i].ptr);
--
To view, visit https://review.coreboot.org/28572
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9a0bc00c55ecc8ec660c74794bee48302663e72b
Gerrit-Change-Number: 28572
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel(a)silverbackltd.com>