From 2f3d534eeaf8683ca60de3118c820bc32b03d070 Mon Sep 17 00:00:00 2001 From: David Wu Date: Mon, 19 Aug 2024 16:35:06 +0800 Subject: mb/google/nissa/var/riven: Set VccIn Aux Imon IccMax to 25A Iccmax of VccIn_Aux is 25A with MBVR design. BUG=b:348258637 TEST=Local build successfully and boot to OS normally. Change-Id: I59c420c03a8f01d185f616a2212798266b4251e0 Signed-off-by: David Wu Reviewed-on: https://review.coreboot.org/c/coreboot/+/83986 Tested-by: build bot (Jenkins) Reviewed-by: Sheng-Liang Pan Reviewed-by: Tyler Wang --- src/mainboard/google/brya/variants/riven/Makefile.mk | 1 + src/mainboard/google/brya/variants/riven/ramstage.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/mainboard/google/brya/variants/riven/ramstage.c (limited to 'src/mainboard') diff --git a/src/mainboard/google/brya/variants/riven/Makefile.mk b/src/mainboard/google/brya/variants/riven/Makefile.mk index 86ba20d3c3..393ccfdf1c 100644 --- a/src/mainboard/google/brya/variants/riven/Makefile.mk +++ b/src/mainboard/google/brya/variants/riven/Makefile.mk @@ -6,3 +6,4 @@ romstage-y += gpio.c ramstage-$(CONFIG_FW_CONFIG) += fw_config.c ramstage-$(CONFIG_FW_CONFIG) += variant.c ramstage-y += gpio.c +ramstage-y += ramstage.c diff --git a/src/mainboard/google/brya/variants/riven/ramstage.c b/src/mainboard/google/brya/variants/riven/ramstage.c new file mode 100644 index 0000000000..5ed9a37f72 --- /dev/null +++ b/src/mainboard/google/brya/variants/riven/ramstage.c @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include +#include + +void mainboard_silicon_init_params(FSP_S_CONFIG *params) +{ + /* Refer to FSP Silicon (soc/intel/alderlake/fsp_params.c) + VccIn Aux Imon IccMax. Values are in 1/4 Amp increments */ + params->VccInAuxImonIccImax = 100; /* 25000(25A) * 4 / 1000 */ + printk(BIOS_INFO, "Override VccInAuxImonIccImax = %d\n", params->VccInAuxImonIccImax); +} -- cgit v1.2.3