• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
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>
10 
11 #define SERIAL_IO_PCR_GPPRVRW4	0x60C
12 
mainboard_init(void * chip_info)13 static void mainboard_init(void *chip_info)
14 {
15 	const struct pad_config *pads;
16 	size_t num;
17 
18 	pads = variant_gpio_table(&num);
19 	gpio_configure_pads(pads, num);
20 
21 	if (CONFIG(DRIVERS_INTEL_MIPI_CAMERA))
22 		pcr_write32(PID_SERIALIO, SERIAL_IO_PCR_GPPRVRW4, BIT8);
23 }
24 
smbios_system_sku(void)25 const char *smbios_system_sku(void)
26 {
27 	static const char *sku_str = "sku2147483647"; /* sku{0-1} */
28 	return sku_str;
29 }
30 
31 struct chip_operations mainboard_ops = {
32 	.init = mainboard_init,
33 };
34