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