aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/siemens/chili/variants/chili/romstage.c
blob: 3a838240efe13b8112f9b3dfebf4f5d98d2c106d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#include <option.h>
#include <console/console.h>
#include <fsp/soc_binding.h>
#include <variant.h>

void variant_romstage_params(FSPM_UPD *const mupd)
{
	uint8_t eth_enable = 1;

	get_option(&eth_enable, "ethernet1");
	if (!eth_enable) {
		printk(BIOS_DEBUG, "Disabling ethernet1.\n");
		mupd->FspmConfig.PcieRpEnableMask &= ~(1 << 5);
	}
}