libpayload: configs: Add new config.featuretest to broaden CI
[coreboot.git] / src / mainboard / intel / mtlrvp / mainboard.c
blob93cec476f67900354e2a2252a391fbcbffd10ae3
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <baseboard/variants.h>
4 #include <device/device.h>
5 #include <drivers/intel/gma/opregion.h>
6 #include <ec/ec.h>
7 #include <ec/intel/board_id.h>
8 #include <soc/ramstage.h>
9 #include <smbios.h>
10 #include <stdint.h>
11 #include <stdio.h>
13 const char *smbios_system_sku(void)
15 static char sku_str[7] = "";
16 uint8_t sku_id = get_rvp_board_id();
18 snprintf(sku_str, sizeof(sku_str), "sku%u", sku_id);
19 return sku_str;
22 const char *mainboard_vbt_filename(void)
24 return "vbt.bin";
27 void mainboard_update_soc_chip_config(struct soc_intel_meteorlake_config *cfg)
29 /* TODO: Update mainboard */
32 static void mainboard_init(void *chip_info)
34 configure_gpio_pads();
36 if (CONFIG(EC_GOOGLE_CHROMEEC))
37 mainboard_ec_init();
39 variant_devtree_update();
42 void __weak variant_devtree_update(void)
44 /* Override dev tree settings per board */
47 static void mainboard_enable(struct device *dev)
49 /* TODO: Enable mainboard */
52 struct chip_operations mainboard_ops = {
53 .init = mainboard_init,
54 .enable_dev = mainboard_enable,