build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/23552 )
Change subject: mb/google/kahlee: Enable wlan card so it can be detected
......................................................................
Patch Set 1: Verified+1
Build Successful
https://qa.coreboot.org/job/coreboot-gerrit/66922/ : SUCCESS
https://qa.coreboot.org/job/coreboot-checkpatch/21507/ : SUCCESS
--
To view, visit https://review.coreboot.org/23552
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5a1e83298af35aa80c67c75cd6ec0a2c3213891e
Gerrit-Change-Number: 23552
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Marc Jones <marc(a)marcjonesconsulting.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Thu, 01 Feb 2018 22:22:34 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes
Hello Daniel Kurtz,
I'd like you to do a code review. Please visit
https://review.coreboot.org/23553
to review the following change.
Change subject: soc/amd/stoneyridge: initialize i2c buses marked as early init
......................................................................
soc/amd/stoneyridge: initialize i2c buses marked as early init
Initialize the i2c buses that are not marked as early init in the device
tree during ramstage.
BUG=b:69407112
TEST=Boot depthcharge w/ CLI enabled on grunt.
devbeep
=> plays beep
BRANCH=None
Change-Id: I6e49b0de9116138ba102377d283e22d7b50d7dca
Signed-off-by: Daniel Kurtz <djkurtz(a)chromium.org>
---
M src/mainboard/google/kahlee/mainboard.c
M src/soc/amd/stoneyridge/i2c.c
M src/soc/amd/stoneyridge/include/soc/southbridge.h
3 files changed, 18 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/23553/1
diff --git a/src/mainboard/google/kahlee/mainboard.c b/src/mainboard/google/kahlee/mainboard.c
index b080682..b1a449d 100644
--- a/src/mainboard/google/kahlee/mainboard.c
+++ b/src/mainboard/google/kahlee/mainboard.c
@@ -138,6 +138,9 @@
gpes = get_gpe_table(&num);
gpe_configure_sci(gpes, num);
+ /* Initialize i2c busses that were not initialized in bootblock */
+ i2c_soc_init();
+
/* Set GenIntDisable so that GPIO 90 is configured as a GPIO. */
if (!IS_ENABLED(CONFIG_BOARD_GOOGLE_KAHLEE))
pm_write8(PM_PCIB_CFG,
diff --git a/src/soc/amd/stoneyridge/i2c.c b/src/soc/amd/stoneyridge/i2c.c
index 947c43f..543de07 100644
--- a/src/soc/amd/stoneyridge/i2c.c
+++ b/src/soc/amd/stoneyridge/i2c.c
@@ -101,7 +101,7 @@
return -1;
}
-void i2c_soc_early_init(void)
+static void dw_i2c_soc_init(int is_early_init)
{
size_t i;
const struct soc_amd_stoneyridge_config *config;
@@ -114,7 +114,7 @@
for (i = 0; i < ARRAY_SIZE(config->i2c); i++) {
const struct dw_i2c_bus_config *cfg = &config->i2c[i];
- if (!cfg->early_init)
+ if (cfg->early_init != is_early_init)
continue;
if (dw_i2c_init(i, cfg))
@@ -122,6 +122,16 @@
}
}
+void i2c_soc_early_init(void)
+{
+ dw_i2c_soc_init(1);
+}
+
+void i2c_soc_init(void)
+{
+ dw_i2c_soc_init(0);
+}
+
struct device_operations stoneyridge_i2c_mmio_ops = {
/* TODO(teravest): Move I2C resource info here. */
.read_resources = DEVICE_NOOP,
diff --git a/src/soc/amd/stoneyridge/include/soc/southbridge.h b/src/soc/amd/stoneyridge/include/soc/southbridge.h
index 2f9d9f9..7838f30 100644
--- a/src/soc/amd/stoneyridge/include/soc/southbridge.h
+++ b/src/soc/amd/stoneyridge/include/soc/southbridge.h
@@ -392,4 +392,7 @@
/* Initialize all the i2c buses that are marked with early init. */
void i2c_soc_early_init(void);
+/* Initialize all the i2c buses that are not marked with early init. */
+void i2c_soc_init(void)
+
#endif /* __STONEYRIDGE_H__ */
--
To view, visit https://review.coreboot.org/23553
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: I6e49b0de9116138ba102377d283e22d7b50d7dca
Gerrit-Change-Number: 23553
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Kurtz <djkurtz(a)google.com>
Gerrit-Reviewer: Daniel Kurtz <djkurtz(a)chromium.org>
Nick Vaccaro has uploaded a new patch set (#2). ( https://review.coreboot.org/23551 )
Change subject: mainboard/google/zoombini/variants/meowth: enable touchscreen
......................................................................
mainboard/google/zoombini/variants/meowth: enable touchscreen
BUG=b:69011806, b:72179988
BRANCH=master
TEST=Verify touchscreen on meowth works with this change.
Change-Id: Iad3f0b77a02552266435e523fdbb74b14ada101a
Signed-off-by: Nick Vaccaro <nvaccaro(a)google.com>
---
M src/mainboard/google/zoombini/Kconfig
M src/mainboard/google/zoombini/variants/meowth/devicetree.cb
M src/mainboard/google/zoombini/variants/meowth/gpio.c
3 files changed, 20 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/23551/2
--
To view, visit https://review.coreboot.org/23551
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: Iad3f0b77a02552266435e523fdbb74b14ada101a
Gerrit-Change-Number: 23551
Gerrit-PatchSet: 2
Gerrit-Owner: Nick Vaccaro <nvaccaro(a)google.com>