diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.com> | 2021-05-03 16:15:05 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-05-05 07:36:36 +0000 |
commit | 0575778667e9802a3af9766f459f43f833330d88 (patch) | |
tree | b166b89db7bc504db23b13577efc740bc09b094d /src/mainboard/google | |
parent | 3d6816abcdc2a72d1553d5e94c7e5a9eed13feae (diff) |
mb/google/cherry: Initialize pmif/spmi/pmic in romstage
Signed-off-by: Henry Chen <henryc.chen@mediatek.com>
Signed-off-by: Yidi Lin <yidi.lin@mediatek.com>
Change-Id: I2eeddb44b5495d05602c995a6103a56b09cf126a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52849
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/cherry/Makefile.inc | 1 | ||||
-rw-r--r-- | src/mainboard/google/cherry/romstage.c | 13 |
2 files changed, 14 insertions, 0 deletions
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 <arch/stages.h> +#include <soc/mt6315.h> +#include <soc/mt6359p.h> +#include <soc/pmif.h> + +void platform_romstage_main(void) +{ + mtk_pmif_init(); + mt6359p_init(); + mt6315_init(); +} |