mb/google/corsola: Initialize SPM
Initialize SPM (System Power Management) in RAM stage. This adds 55ms to the boot time. TEST=program counter of SPM is correct value(0x250) after booting up BUG=b:202871018 Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I822417f7a679107760b202dd43fb79d1934940bd Reviewed-on: https://review.coreboot.org/c/coreboot/+/59342 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
parent
bade5caedb
commit
ad5fda5fbf
|
@ -1,7 +1,9 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <soc/msdc.h>
|
||||
#include <soc/spm.h>
|
||||
#include <soc/usb.h>
|
||||
|
||||
static void mainboard_init(struct device *dev)
|
||||
|
@ -9,6 +11,9 @@ static void mainboard_init(struct device *dev)
|
|||
mtk_msdc_configure_emmc(true);
|
||||
mtk_msdc_configure_sdcard();
|
||||
setup_usb_host();
|
||||
|
||||
if (spm_init())
|
||||
printk(BIOS_ERR, "spm init failed, system suspend may not work\n");
|
||||
}
|
||||
|
||||
static void mainboard_enable(struct device *dev)
|
||||
|
|
Loading…
Reference in New Issue