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