From c4db2db3bf3806741dbb048f96b080911e2feaa8 Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Thu, 4 Nov 2021 13:59:42 +0800 Subject: [PATCH] mb/google/corsola: Add NOR-Flash support Add NOR-Flash drivers to pass verification of flash at verstage. TEST=boot to romstage BUG=b:202871018 Signed-off-by: Rex-BC Chen Change-Id: Iee3dd336632b0cf998f5f7c1d118e01e8270e815 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58838 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/mainboard/google/corsola/Kconfig | 4 ++++ src/mainboard/google/corsola/bootblock.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/mainboard/google/corsola/Kconfig b/src/mainboard/google/corsola/Kconfig index 8b38d2bba4..bfdc8ee82b 100644 --- a/src/mainboard/google/corsola/Kconfig +++ b/src/mainboard/google/corsola/Kconfig @@ -22,4 +22,8 @@ config MAINBOARD_DIR config MAINBOARD_PART_NUMBER string default "Corsola" if BOARD_GOOGLE_CORSOLA + +config BOOT_DEVICE_SPI_FLASH_BUS + int + default 7 endif diff --git a/src/mainboard/google/corsola/bootblock.c b/src/mainboard/google/corsola/bootblock.c index 99947c08b9..e9ae5cefe7 100644 --- a/src/mainboard/google/corsola/bootblock.c +++ b/src/mainboard/google/corsola/bootblock.c @@ -2,7 +2,9 @@ #include #include +#include void bootblock_mainboard_init(void) { + mtk_snfc_init(SPI_NOR_GPIO_SET0); }