Kangheui Won has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/55136 )
Change subject: mb/google/guybrush: initialize i2c in psp_verstage ......................................................................
mb/google/guybrush: initialize i2c in psp_verstage
GSC is connected with AP via i2c bus so we need to enable i2c in psp_verstage.
Signed-off-by: Kangheui Won khwon@chromium.org Change-Id: I5f7b73be67a692ea7de31ae53bd111d0e4b6998c --- M src/mainboard/google/guybrush/verstage.c 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/55136/1
diff --git a/src/mainboard/google/guybrush/verstage.c b/src/mainboard/google/guybrush/verstage.c index e7543c0..462b43c 100644 --- a/src/mainboard/google/guybrush/verstage.c +++ b/src/mainboard/google/guybrush/verstage.c @@ -1,8 +1,11 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */
#include <amdblocks/gpio_banks.h> +#include <amdblocks/i2c.h> #include <baseboard/variants.h> +#include <console/console.h> #include <security/vboot/vboot_common.h> +#include <soc/southbridge.h>
static void setup_gpio(void) { @@ -22,4 +25,10 @@
void verstage_mainboard_init(void) { + if (CONFIG(VBOOT_STARTS_BEFORE_BOOTBLOCK)) { + enable_aoac_devices(); + printk(BIOS_DEBUG, "Setting up i2c\n"); + i2c_soc_early_init(); + printk(BIOS_DEBUG, "i2c setup\n"); + } }