Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/83924?usp=email )
(
11 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: mb/google/rauru: Initialize flash controller in bootblock ......................................................................
mb/google/rauru: Initialize flash controller in bootblock
Initialize SPI NOR Flash Controller (SNFC) in the bootblock.
TEST=read nor flash data successfully. BUG=b:317009620
Change-Id: I88960ce7a50f67ea6f402884b714cb205836a6d8 Signed-off-by: Noah Shen noah.shen@mediatek.corp-partner.google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/83924 Reviewed-by: Yidi Lin yidilin@google.com Reviewed-by: Yu-Ping Wu yupingso@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/mainboard/google/rauru/Kconfig M src/mainboard/google/rauru/bootblock.c 2 files changed, 6 insertions(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Yu-Ping Wu: Looks good to me, approved Yidi Lin: Looks good to me, approved
diff --git a/src/mainboard/google/rauru/Kconfig b/src/mainboard/google/rauru/Kconfig index 675dc1c..5bf1305 100644 --- a/src/mainboard/google/rauru/Kconfig +++ b/src/mainboard/google/rauru/Kconfig @@ -27,4 +27,8 @@ config MAINBOARD_PART_NUMBER string default "Rauru" if BOARD_GOOGLE_RAURU + +config BOOT_DEVICE_SPI_FLASH_BUS + int + default 8 endif diff --git a/src/mainboard/google/rauru/bootblock.c b/src/mainboard/google/rauru/bootblock.c index 97d363f..a896b72 100644 --- a/src/mainboard/google/rauru/bootblock.c +++ b/src/mainboard/google/rauru/bootblock.c @@ -1,8 +1,9 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <bootblock_common.h> +#include <soc/spi.h>
void bootblock_mainboard_init(void) { - /* TODO: add mainboard init for bootblock */ + mtk_snfc_init(); }