summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rauru/bootblock.c
diff options
context:
space:
mode:
authorJarried Lin <jarried.lin@mediatek.corp-partner.google.com>2024-08-08 17:45:03 +0800
committerFelix Held <felix-coreboot@felixheld.de>2024-08-24 12:58:47 +0000
commit228088ea5276ad6dbcd7b145c89afb7aa6b8b203 (patch)
tree6fa39f986575632ddb3f9f0b574c54141a37b6d2 /src/mainboard/google/rauru/bootblock.c
parent663666231ee366f28778a3f83230e6f7f8c1f257 (diff)
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>
Diffstat (limited to 'src/mainboard/google/rauru/bootblock.c')
-rw-r--r--src/mainboard/google/rauru/bootblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/google/rauru/bootblock.c b/src/mainboard/google/rauru/bootblock.c
index 97d363f2f2..a896b72feb 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();
}