Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 1 | config BOARD_STARLABS_STARBOOK_SERIES |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 2 | def_bool n |
| 3 | select DRIVERS_I2C_HID |
| 4 | select EC_STARLABS_ITE |
| 5 | select EC_STARLABS_FAN |
| 6 | select HAVE_ACPI_RESUME |
| 7 | select HAVE_ACPI_TABLES |
| 8 | select HAVE_CMOS_DEFAULT |
| 9 | select HAVE_OPTION_TABLE |
| 10 | select INTEL_GMA_HAVE_VBT |
Sean Rhodes | 1263622 | 2022-11-07 22:04:52 +0000 | [diff] [blame] | 11 | select INTEL_LPSS_UART_FOR_CONSOLE |
Elyes Haouas | df4fa45 | 2023-01-25 08:54:11 +0100 | [diff] [blame] | 12 | select MAINBOARD_HAS_TPM2 |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 13 | select NO_UART_ON_SUPERIO |
| 14 | select SOC_INTEL_COMMON_BLOCK_HDA_VERB |
| 15 | select SYSTEM_TYPE_LAPTOP |
Sean Rhodes | 96b8517 | 2023-07-18 11:31:48 +0100 | [diff] [blame^] | 16 | select VALIDATE_INTEL_DESCRIPTOR |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 17 | |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 18 | config BOARD_STARLABS_LABTOP_KBL |
| 19 | select BOARD_ROMSIZE_KB_8192 |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 20 | select BOARD_STARLABS_STARBOOK_SERIES |
Sean Rhodes | ca22e6c | 2022-08-01 21:07:12 +0100 | [diff] [blame] | 21 | select CRB_TPM |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 22 | select HAVE_INTEL_PTT |
| 23 | select HAVE_SPD_IN_CBFS |
| 24 | select MAINBOARD_HAS_LIBGFXINIT |
| 25 | select SOC_INTEL_KABYLAKE |
| 26 | select SPI_FLASH_GIGADEVICE |
| 27 | |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 28 | config BOARD_STARLABS_LABTOP_CML |
| 29 | select BOARD_ROMSIZE_KB_16384 |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 30 | select BOARD_STARLABS_STARBOOK_SERIES |
Sean Rhodes | b608db9 | 2022-05-06 10:03:41 +0100 | [diff] [blame] | 31 | select EC_STARLABS_MAX_CHARGE |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 32 | select EC_STARLABS_NEED_ITE_BIN |
| 33 | select HAVE_INTEL_PTT |
| 34 | select HAVE_SPD_IN_CBFS |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 35 | select CRB_TPM |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 36 | select MAINBOARD_HAS_LIBGFXINIT |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 37 | select SOC_INTEL_COMETLAKE_1 |
| 38 | select SPI_FLASH_WINBOND |
| 39 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 40 | config BOARD_STARLABS_STARBOOK_TGL |
| 41 | select BOARD_ROMSIZE_KB_16384 |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 42 | select BOARD_STARLABS_STARBOOK_SERIES |
Sean Rhodes | dc522d2 | 2022-10-03 11:19:52 +0100 | [diff] [blame] | 43 | select DRIVERS_INTEL_PMC |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 44 | select DRIVERS_INTEL_USB4_RETIMER |
| 45 | select EC_STARLABS_KBL_LEVELS |
Sean Rhodes | 4d1bf7b | 2022-02-17 13:55:34 +0000 | [diff] [blame] | 46 | select EC_STARLABS_MAX_CHARGE |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 47 | select EC_STARLABS_NEED_ITE_BIN |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 48 | select MEMORY_MAPPED_TPM |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 49 | select SOC_INTEL_COMMON_BLOCK_TCSS |
| 50 | select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES |
| 51 | select SOC_INTEL_TIGERLAKE |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 52 | select SPI_FLASH_WINBOND |
Sean Rhodes | f26d76b | 2022-07-31 20:16:21 +0100 | [diff] [blame] | 53 | select TPM_MEASURED_BOOT |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 54 | |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 55 | config BOARD_STARLABS_STARBOOK_ADL |
| 56 | select BOARD_ROMSIZE_KB_32768 |
| 57 | select BOARD_STARLABS_STARBOOK_SERIES |
| 58 | select DRIVERS_INTEL_PMC |
| 59 | select EC_STARLABS_KBL_LEVELS |
| 60 | select EC_STARLABS_MAX_CHARGE |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 61 | select EC_STARLABS_NEED_ITE_BIN |
| 62 | select MEMORY_MAPPED_TPM |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 63 | select SOC_INTEL_ALDERLAKE |
| 64 | select SOC_INTEL_ALDERLAKE_PCH_P |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 65 | select SPI_FLASH_WINBOND |
| 66 | select TPM_MEASURED_BOOT |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 67 | |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 68 | if BOARD_STARLABS_STARBOOK_SERIES |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 69 | |
Sean Rhodes | 2eb2dce | 2022-05-26 20:56:14 +0100 | [diff] [blame] | 70 | config CCD_PORT |
| 71 | int |
| 72 | default 6 if BOARD_STARLABS_LABTOP_CML |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 73 | default 4 if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 2eb2dce | 2022-05-26 20:56:14 +0100 | [diff] [blame] | 74 | default 3 |
| 75 | |
Sean Rhodes | 976ca5e | 2022-07-31 07:55:37 +0100 | [diff] [blame] | 76 | config CMOS_DEFAULT_FILE |
| 77 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.default" if BOARD_STARLABS_STARBOOK_TGL |
| 78 | |
| 79 | config CMOS_LAYOUT_FILE |
| 80 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_STARBOOK_TGL |
| 81 | |
Sean Rhodes | 1263622 | 2022-11-07 22:04:52 +0000 | [diff] [blame] | 82 | config CONSOLE_SERIAL |
| 83 | default n if !EDK2_DEBUG |
| 84 | |
Sean Rhodes | 1d41f90 | 2023-04-13 12:08:58 +0100 | [diff] [blame] | 85 | config D3COLD_SUPPORT |
| 86 | default n |
| 87 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 88 | config DEVICETREE |
| 89 | default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb" |
| 90 | |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 91 | config DIMM_SPD_SIZE |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 92 | default 512 |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 93 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 94 | config DRIVER_TPM_SPI_CHIP |
| 95 | default 2 |
| 96 | |
Sean Rhodes | 58f6a5d | 2021-12-19 21:22:15 +0000 | [diff] [blame] | 97 | config EC_GPE_SCI |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 98 | default 0x6e if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 58f6a5d | 2021-12-19 21:22:15 +0000 | [diff] [blame] | 99 | default 0x50 |
| 100 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 101 | config EC_STARLABS_ADD_ITE_BIN |
| 102 | default y |
| 103 | |
| 104 | config EC_STARLABS_ITE_BIN_PATH |
| 105 | string |
| 106 | depends on EC_STARLABS_NEED_ITE_BIN |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 107 | default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/ec.bin" |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 108 | |
| 109 | config EC_VARIANT_DIR |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 110 | default "kbl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 111 | default "cml" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_CML |
| 112 | default "tgl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 113 | default "adl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 114 | |
| 115 | config FMDFILE |
| 116 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/board.fmd" |
| 117 | |
| 118 | config IFD_BIN_PATH |
| 119 | string |
| 120 | default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin" |
| 121 | |
| 122 | config MAINBOARD_DIR |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 123 | default "starlabs/starbook" |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 124 | |
| 125 | config MAINBOARD_FAMILY |
| 126 | string |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 127 | default "L3" if BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 128 | default "L4" if BOARD_STARLABS_LABTOP_CML |
| 129 | default "B5" if BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 130 | default "B6-I" if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 131 | |
| 132 | config MAINBOARD_PART_NUMBER |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 133 | default "LabTop Mk III" if BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 134 | default "LabTop Mk IV" if BOARD_STARLABS_LABTOP_CML |
| 135 | default "StarBook Mk V" if BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 136 | default "StarBook Mk VI" if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 137 | |
| 138 | config MAINBOARD_SMBIOS_PRODUCT_NAME |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 139 | default "StarBook" if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 140 | default "LabTop" |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 141 | |
| 142 | config ME_BIN_PATH |
| 143 | string |
| 144 | default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin" |
| 145 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 146 | config EDK2_BOOTSPLASH_FILE |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 147 | string |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 148 | default "3rdparty/blobs/mainboard/starlabs/Logo.bmp" |
| 149 | |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 150 | config SOC_INTEL_CSE_SEND_EOP_EARLY |
| 151 | default n if BOARD_STARLABS_STARBOOK_ADL |
| 152 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 153 | config UART_FOR_CONSOLE |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 154 | default 0 if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 155 | default 2 |
| 156 | |
| 157 | config USE_PM_ACPI_TIMER |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 158 | default n if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 159 | |
| 160 | config VARIANT_DIR |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 161 | default "kbl" if BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 162 | default "cml" if BOARD_STARLABS_LABTOP_CML |
| 163 | default "tgl" if BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 164 | default "adl" if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 165 | |
| 166 | endif |