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 | 6bfca1b | 2023-02-06 09:23:47 +0000 | [diff] [blame] | 13 | select NO_S0IX_SUPPORT |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 14 | select NO_UART_ON_SUPERIO |
| 15 | select SOC_INTEL_COMMON_BLOCK_HDA_VERB |
| 16 | select SYSTEM_TYPE_LAPTOP |
| 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 |
| 67 | select PCIEXP_SUPPORT_RESIZABLE_BARS |
| 68 | |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 69 | if BOARD_STARLABS_STARBOOK_SERIES |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 70 | |
Sean Rhodes | 2eb2dce | 2022-05-26 20:56:14 +0100 | [diff] [blame] | 71 | config CCD_PORT |
| 72 | int |
| 73 | default 6 if BOARD_STARLABS_LABTOP_CML |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 74 | default 4 if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 2eb2dce | 2022-05-26 20:56:14 +0100 | [diff] [blame] | 75 | default 3 |
| 76 | |
Sean Rhodes | 976ca5e | 2022-07-31 07:55:37 +0100 | [diff] [blame] | 77 | config CMOS_DEFAULT_FILE |
| 78 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.default" if BOARD_STARLABS_STARBOOK_TGL |
| 79 | |
| 80 | config CMOS_LAYOUT_FILE |
| 81 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/cmos.layout" if BOARD_STARLABS_STARBOOK_TGL |
| 82 | |
Sean Rhodes | 1263622 | 2022-11-07 22:04:52 +0000 | [diff] [blame] | 83 | config CONSOLE_SERIAL |
| 84 | default n if !EDK2_DEBUG |
| 85 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 86 | config DEVICETREE |
| 87 | default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb" |
| 88 | |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 89 | config DIMM_SPD_SIZE |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 90 | default 512 |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 91 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 92 | config DRIVER_TPM_SPI_CHIP |
| 93 | default 2 |
| 94 | |
Sean Rhodes | 58f6a5d | 2021-12-19 21:22:15 +0000 | [diff] [blame] | 95 | config EC_GPE_SCI |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 96 | default 0x6e if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 58f6a5d | 2021-12-19 21:22:15 +0000 | [diff] [blame] | 97 | default 0x50 |
| 98 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 99 | config EC_STARLABS_ADD_ITE_BIN |
| 100 | default y |
| 101 | |
| 102 | config EC_STARLABS_ITE_BIN_PATH |
| 103 | string |
| 104 | depends on EC_STARLABS_NEED_ITE_BIN |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 105 | default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/ec.bin" |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 106 | |
| 107 | config EC_VARIANT_DIR |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 108 | default "kbl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 109 | default "cml" if !EC_STARLABS_MERLIN && BOARD_STARLABS_LABTOP_CML |
| 110 | default "tgl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 111 | default "adl" if !EC_STARLABS_MERLIN && BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 112 | |
| 113 | config FMDFILE |
| 114 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/variants/\$(CONFIG_VARIANT_DIR)/board.fmd" |
| 115 | |
| 116 | config IFD_BIN_PATH |
| 117 | string |
| 118 | default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/flashdescriptor.bin" |
| 119 | |
| 120 | config MAINBOARD_DIR |
Sean Rhodes | ecda775 | 2022-07-04 14:18:52 +0100 | [diff] [blame] | 121 | default "starlabs/starbook" |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 122 | |
| 123 | config MAINBOARD_FAMILY |
| 124 | string |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 125 | default "L3" if BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 126 | default "L4" if BOARD_STARLABS_LABTOP_CML |
| 127 | default "B5" if BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 128 | default "B6-I" if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 129 | |
| 130 | config MAINBOARD_PART_NUMBER |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 131 | default "LabTop Mk III" if BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 132 | default "LabTop Mk IV" if BOARD_STARLABS_LABTOP_CML |
| 133 | default "StarBook Mk V" if BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 134 | default "StarBook Mk VI" if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 135 | |
| 136 | config MAINBOARD_SMBIOS_PRODUCT_NAME |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 137 | default "StarBook" if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 138 | default "LabTop" |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 139 | |
| 140 | config ME_BIN_PATH |
| 141 | string |
| 142 | default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/\$(CONFIG_VARIANT_DIR)/intel_me.bin" |
| 143 | |
Sean Rhodes | 38c99b5 | 2022-07-13 10:11:44 +0100 | [diff] [blame] | 144 | config EDK2_BOOTSPLASH_FILE |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 145 | string |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 146 | default "3rdparty/blobs/mainboard/starlabs/Logo.bmp" |
| 147 | |
Sean Rhodes | db8ef01 | 2023-03-27 10:59:02 +0100 | [diff] [blame^] | 148 | config PCIEXP_ASPM |
| 149 | bool |
| 150 | default n |
| 151 | help |
| 152 | FSP is already taking care of ASPM, which is configured through the devicetree in coreboot |
| 153 | on Alderlake Platforms. Disable it to save some boot time. |
| 154 | |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 155 | config PCIEXP_DEFAULT_MAX_RESIZABLE_BAR_BITS |
| 156 | default 32 |
| 157 | |
Sean Rhodes | db8ef01 | 2023-03-27 10:59:02 +0100 | [diff] [blame^] | 158 | config PCIEXP_L1_SUB_STATE |
| 159 | bool |
| 160 | default n |
| 161 | help |
| 162 | Enabling PCIe L1 sub states is already done in FSP. |
| 163 | Disable it to save some boot time. |
| 164 | |
| 165 | config PCIEXP_CLK_PM |
| 166 | bool |
| 167 | default n |
| 168 | help |
| 169 | Enabling PCIe clock power management is already done in FSP. |
| 170 | Disable it to save some boot time |
| 171 | |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 172 | config SOC_INTEL_CSE_SEND_EOP_EARLY |
| 173 | default n if BOARD_STARLABS_STARBOOK_ADL |
| 174 | |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 175 | config UART_FOR_CONSOLE |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 176 | default 0 if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 177 | default 2 |
| 178 | |
| 179 | config USE_PM_ACPI_TIMER |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 180 | default n if BOARD_STARLABS_STARBOOK_TGL || BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 181 | |
| 182 | config VARIANT_DIR |
Sean Rhodes | ab5b7b3 | 2021-10-22 14:33:27 +0100 | [diff] [blame] | 183 | default "kbl" if BOARD_STARLABS_LABTOP_KBL |
Sean Rhodes | e96ade6 | 2021-10-18 21:07:20 +0100 | [diff] [blame] | 184 | default "cml" if BOARD_STARLABS_LABTOP_CML |
| 185 | default "tgl" if BOARD_STARLABS_STARBOOK_TGL |
Ben-StarLabs | b2db365 | 2022-07-12 12:43:27 +0100 | [diff] [blame] | 186 | default "adl" if BOARD_STARLABS_STARBOOK_ADL |
Sean Rhodes | 17441a3 | 2021-07-05 16:03:15 +0100 | [diff] [blame] | 187 | |
| 188 | endif |