mb/google/skywalker: Initialize DPM in ramstage

Add initialization of DPM driver for DRAM low power mode.

BUG=b:379008996
BRANCH=none
TEST=Boot up pass and see log
3200 LPDDR5 chan0(x16) rank0: memory test pass
3200 LPDDR5 chan0(x16) rank1: memory test pass
3200 LPDDR5 chan1(x16) rank0: memory test pass
3200 LPDDR5 chan1(x16) rank1: memory test pass

Signed-off-by: Mike Lin <mike.lin@mediatek.corp-partner.google.com>
Change-Id: I3b72b892d56623e7f3ec2dccfad073a908b51119
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87663
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
Vince Liu 2024-12-11 15:12:07 +08:00 committed by Yidi Lin
commit 61f043de4a

View file

@ -1,10 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
#include <device/device.h>
#include <soc/dpm_v2.h>
#include <soc/usb.h>
static void mainboard_init(struct device *dev)
{
dpm_init();
setup_usb_host();
}