From 0575778667e9802a3af9766f459f43f833330d88 Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Mon, 3 May 2021 16:15:05 +0800 Subject: [PATCH] mb/google/cherry: Initialize pmif/spmi/pmic in romstage Signed-off-by: Henry Chen Signed-off-by: Yidi Lin Change-Id: I2eeddb44b5495d05602c995a6103a56b09cf126a Reviewed-on: https://review.coreboot.org/c/coreboot/+/52849 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/mainboard/google/cherry/Makefile.inc | 1 + src/mainboard/google/cherry/romstage.c | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/mainboard/google/cherry/romstage.c diff --git a/src/mainboard/google/cherry/Makefile.inc b/src/mainboard/google/cherry/Makefile.inc index ada29aa0d1..4831a39500 100644 --- a/src/mainboard/google/cherry/Makefile.inc +++ b/src/mainboard/google/cherry/Makefile.inc @@ -7,6 +7,7 @@ verstage-y += reset.c romstage-y += memlayout.ld romstage-y += chromeos.c +romstage-y += romstage.c ramstage-y += memlayout.ld ramstage-y += chromeos.c diff --git a/src/mainboard/google/cherry/romstage.c b/src/mainboard/google/cherry/romstage.c new file mode 100644 index 0000000000..cba599596c --- /dev/null +++ b/src/mainboard/google/cherry/romstage.c @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include +#include +#include +#include + +void platform_romstage_main(void) +{ + mtk_pmif_init(); + mt6359p_init(); + mt6315_init(); +}