diff options
Diffstat (limited to 'src/mainboard/protectli/vault_cml/mainboard.c')
-rw-r--r-- | src/mainboard/protectli/vault_cml/mainboard.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mainboard/protectli/vault_cml/mainboard.c b/src/mainboard/protectli/vault_cml/mainboard.c new file mode 100644 index 0000000000..24f46c9013 --- /dev/null +++ b/src/mainboard/protectli/vault_cml/mainboard.c @@ -0,0 +1,34 @@ + +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <cpu/x86/name.h> +#include <device/device.h> +#include <pc80/i8254.h> +#include <smbios.h> +#include <string.h> + +const char *smbios_mainboard_product_name(void) +{ + char processor_name[49]; + + fill_processor_name(processor_name); + + if (strstr(processor_name, "i3-10110U") != NULL) + return "VP4630"; + else if (strstr(processor_name, "i5-10210U") != NULL) + return "VP4650"; + else if (strstr(processor_name, "i7-10810U") != NULL) + return "VP4670"; + else + return CONFIG_MAINBOARD_SMBIOS_PRODUCT_NAME; +} + +static void mainboard_final(void *unused) +{ + if (CONFIG(BEEP_ON_BOOT)) + beep(1500, 100); +} + +struct chip_operations mainboard_ops = { + .final = mainboard_final, +}; |