| 1 |
|
| 2 |
|
| 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> |
| 12 |
|
| 13 |
const char *smbios_system_sku(void) |
| 14 |
{ |
| 15 |
static char sku_str[7] = ""; |
| 16 |
uint8_t sku_id = get_rvp_board_id(); |
| 17 |
|
| 18 |
snprintf(sku_str, sizeof(sku_str), "sku%u", sku_id); |
| 19 |
return sku_str; |
| 20 |
} |
| 21 |
|
| 22 |
const char *mainboard_vbt_filename(void) |
| 23 |
{ |
| 24 |
return "vbt.bin"; |
| 25 |
} |
| 26 |
|
| 27 |
void mainboard_update_soc_chip_config(struct soc_intel_meteorlake_config *cfg) |
| 28 |
{ |
| 29 |
|
| 30 |
} |
| 31 |
|
| 32 |
static void mainboard_init(void *chip_info) |
| 33 |
{ |
| 34 |
configure_gpio_pads(); |
| 35 |
|
| 36 |
if (CONFIG(EC_GOOGLE_CHROMEEC)) |
| 37 |
mainboard_ec_init(); |
| 38 |
|
| 39 |
variant_devtree_update(); |
| 40 |
} |
| 41 |
|
| 42 |
void __weak variant_devtree_update(void) |
| 43 |
{ |
| 44 |
|
| 45 |
} |
| 46 |
|
| 47 |
static void mainboard_enable(struct device *dev) |
| 48 |
{ |
| 49 |
|
| 50 |
} |
| 51 |
|
| 52 |
struct chip_operations mainboard_ops = { |
| 53 |
.init = mainboard_init, |
| 54 |
.enable_dev = mainboard_enable, |
| 55 |
}; |