mb/google/geralt: Add NOR-Flash support

Initialize NOR-Flash in the bootblock.

TEST=read nor flash data successfully.
BUG=b:233720142

Signed-off-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Change-Id: I8ee24b5b24643bce57eb29682d6d0234a6fe8641
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65622
Reviewed-by: Yidi Lin <yidilin@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Rex-BC Chen 2022-06-13 19:47:43 +08:00 committed by Felix Held
parent f61557669a
commit eabd97020e
2 changed files with 6 additions and 1 deletions

View File

@ -25,4 +25,8 @@ config MAINBOARD_DIR
config MAINBOARD_PART_NUMBER config MAINBOARD_PART_NUMBER
string string
default "Geralt" if BOARD_GOOGLE_GERALT default "Geralt" if BOARD_GOOGLE_GERALT
config BOOT_DEVICE_SPI_FLASH_BUS
int
default 7
endif endif

View File

@ -2,8 +2,9 @@
#include <bootblock_common.h> #include <bootblock_common.h>
#include <device/mmio.h> #include <device/mmio.h>
#include <soc/spi.h>
void bootblock_mainboard_init(void) void bootblock_mainboard_init(void)
{ {
/* TODO: add mainboard init for bootblock */ mtk_snfc_init();
} }