payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / intel / jasperlake_rvp / mainboard.c
blobefba386cf96731485056f3d963565bfc6ab1b17c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <baseboard/gpio.h>
4 #include <baseboard/variants.h>
5 #include <device/device.h>
6 #include <intelblocks/pcr.h>
7 #include <soc/gpio.h>
8 #include <soc/pcr_ids.h>
9 #include <smbios.h>
11 #define SERIAL_IO_PCR_GPPRVRW4 0x60C
13 static void mainboard_init(void *chip_info)
15 const struct pad_config *pads;
16 size_t num;
18 pads = variant_gpio_table(&num);
19 gpio_configure_pads(pads, num);
21 if (CONFIG(DRIVERS_INTEL_MIPI_CAMERA))
22 pcr_write32(PID_SERIALIO, SERIAL_IO_PCR_GPPRVRW4, BIT8);
25 const char *smbios_system_sku(void)
27 static const char *sku_str = "sku2147483647"; /* sku{0-1} */
28 return sku_str;
31 struct chip_operations mainboard_ops = {
32 .init = mainboard_init,