Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 1 | config BOARD_INTEL_ADLRVP_COMMON |
| 2 | def_bool n |
Angel Pons | 5e7f90b | 2022-01-08 13:16:38 +0100 | [diff] [blame] | 3 | select ALDERLAKE_A0_CONFIGURE_PMC_DESCRIPTOR |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 4 | select BOARD_ROMSIZE_KB_32768 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 5 | select DRIVERS_I2C_GENERIC |
Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 6 | select DRIVERS_I2C_HID |
| 7 | select DRIVERS_I2C_MAX98373 |
Sumeet R Pawnikar | eb2a784 | 2021-04-01 14:22:31 +0530 | [diff] [blame] | 8 | select DRIVERS_INTEL_DPTF |
Subrata Banik | a74eb4f | 2021-09-01 20:29:20 +0530 | [diff] [blame] | 9 | select DRIVERS_INTEL_MIPI_CAMERA |
Subrata Banik | a74eb4f | 2021-09-01 20:29:20 +0530 | [diff] [blame] | 10 | select DRIVERS_INTEL_SOUNDWIRE |
Sridhar Siricilla | f2de1e7 | 2020-11-05 14:18:38 +0530 | [diff] [blame] | 11 | select DRIVERS_SOUNDWIRE_ALC711 |
Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 12 | select DRIVERS_SPI_ACPI |
| 13 | select DRIVERS_USB_ACPI |
| 14 | select HAVE_ACPI_RESUME |
| 15 | select HAVE_ACPI_TABLES |
| 16 | select HAVE_SPD_IN_CBFS |
| 17 | select MAINBOARD_HAS_CHROMEOS |
Subrata Banik | a74eb4f | 2021-09-01 20:29:20 +0530 | [diff] [blame] | 18 | select SOC_INTEL_COMMON_BLOCK_IPU |
Sridhar Siricilla | d1150fd | 2021-03-17 15:13:08 +0530 | [diff] [blame] | 19 | select SOC_INTEL_CSE_LITE_SKU |
Furquan Shaikh | d9f5d90 | 2021-08-24 13:53:43 -0700 | [diff] [blame] | 20 | select SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES |
Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 21 | |
| 22 | config BOARD_INTEL_ADLRVP_P |
| 23 | select BOARD_INTEL_ADLRVP_COMMON |
| 24 | select DRIVERS_UART_8250IO |
| 25 | select MAINBOARD_USES_IFD_EC_REGION |
Angel Pons | db925aa | 2021-12-01 11:44:09 +0100 | [diff] [blame] | 26 | select SOC_INTEL_ALDERLAKE_PCH_P |
Subrata Banik | de6b489 | 2021-12-08 16:23:39 +0530 | [diff] [blame] | 27 | select GEN3_EXTERNAL_CLOCK_BUFFER |
Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 28 | |
| 29 | config BOARD_INTEL_ADLRVP_P_EXT_EC |
| 30 | select BOARD_INTEL_ADLRVP_COMMON |
| 31 | select DRIVERS_INTEL_PMC |
| 32 | select INTEL_LPSS_UART_FOR_CONSOLE |
Angel Pons | db925aa | 2021-12-01 11:44:09 +0100 | [diff] [blame] | 33 | select SOC_INTEL_ALDERLAKE_PCH_P |
Subrata Banik | de6b489 | 2021-12-08 16:23:39 +0530 | [diff] [blame] | 34 | select GEN3_EXTERNAL_CLOCK_BUFFER |
Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 35 | |
| 36 | config BOARD_INTEL_ADLRVP_P_MCHP |
| 37 | select BOARD_INTEL_ADLRVP_COMMON |
| 38 | select DRIVERS_INTEL_MIPI_CAMERA |
| 39 | select DRIVERS_INTEL_PMC |
| 40 | select EC_GOOGLE_CHROMEEC_ACPI_MEMMAP |
| 41 | select EC_GOOGLE_CHROMEEC_MEC |
| 42 | select INTEL_LPSS_UART_FOR_CONSOLE |
Angel Pons | db925aa | 2021-12-01 11:44:09 +0100 | [diff] [blame] | 43 | select SOC_INTEL_ALDERLAKE_PCH_P |
Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 44 | |
| 45 | config BOARD_INTEL_ADLRVP_M |
| 46 | select BOARD_INTEL_ADLRVP_COMMON |
| 47 | select DRIVERS_UART_8250IO |
| 48 | select MAINBOARD_USES_IFD_EC_REGION |
| 49 | select SOC_INTEL_ALDERLAKE_PCH_M |
| 50 | |
| 51 | config BOARD_INTEL_ADLRVP_M_EXT_EC |
| 52 | select BOARD_INTEL_ADLRVP_COMMON |
| 53 | select DRIVERS_INTEL_PMC |
| 54 | select FW_CONFIG |
| 55 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
| 56 | select INTEL_LPSS_UART_FOR_CONSOLE |
| 57 | select MAINBOARD_HAS_SPI_TPM_CR50 |
| 58 | select MAINBOARD_HAS_TPM2 |
| 59 | select SOC_INTEL_ALDERLAKE_PCH_M |
| 60 | select SPI_TPM |
| 61 | |
Krishna Prasad Bhat | e3fd52a | 2021-12-06 15:59:39 +0530 | [diff] [blame] | 62 | config BOARD_INTEL_ADLRVP_N |
| 63 | select BOARD_INTEL_ADLRVP_COMMON |
| 64 | select DRIVERS_UART_8250IO |
| 65 | select MAINBOARD_USES_IFD_EC_REGION |
| 66 | select SOC_INTEL_ALDERLAKE_PCH_N |
| 67 | |
| 68 | config BOARD_INTEL_ADLRVP_N_EXT_EC |
| 69 | select BOARD_INTEL_ADLRVP_COMMON |
| 70 | select DRIVERS_INTEL_PMC |
| 71 | select INTEL_LPSS_UART_FOR_CONSOLE |
| 72 | select SOC_INTEL_ALDERLAKE_PCH_N |
Usha P | 3ecee3c | 2022-02-02 11:31:27 +0530 | [diff] [blame] | 73 | select FW_CONFIG |
| 74 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
Krishna Prasad Bhat | e3fd52a | 2021-12-06 15:59:39 +0530 | [diff] [blame] | 75 | |
Felix Singer | d9ad49c | 2021-09-16 19:32:57 +0200 | [diff] [blame] | 76 | if BOARD_INTEL_ADLRVP_COMMON |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 77 | |
Angel Pons | e2c1ea7 | 2022-01-29 18:23:19 +0100 | [diff] [blame] | 78 | config IGNORE_IASL_MISSING_DEPENDENCY |
| 79 | def_bool y |
| 80 | |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 81 | config CHROMEOS |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 82 | select GBB_FLAG_FORCE_DEV_SWITCH_ON |
| 83 | select GBB_FLAG_FORCE_DEV_BOOT_USB |
Joel Kitching | a904fd6 | 2021-02-19 18:10:58 +0800 | [diff] [blame] | 84 | select GBB_FLAG_FORCE_DEV_BOOT_ALTFW |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 85 | select GBB_FLAG_FORCE_MANUAL_RECOVERY |
| 86 | select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC |
| 87 | select HAS_RECOVERY_MRC_CACHE |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 88 | |
| 89 | config MAINBOARD_DIR |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 90 | default "intel/adlrvp" |
| 91 | |
| 92 | config VARIANT_DIR |
Subrata Banik | 0a61ece | 2020-11-07 13:01:49 +0530 | [diff] [blame] | 93 | default "adlrvp_p" if BOARD_INTEL_ADLRVP_P |
| 94 | default "adlrvp_p_ext_ec" if BOARD_INTEL_ADLRVP_P_EXT_EC |
Brandon Breitenstein | c54e22c | 2021-08-05 15:56:27 -0700 | [diff] [blame] | 95 | default "adlrvp_p_mchp" if BOARD_INTEL_ADLRVP_P_MCHP |
Varshit Pandya | 4084702 | 2021-01-22 18:59:42 +0530 | [diff] [blame] | 96 | default "adlrvp_m" if BOARD_INTEL_ADLRVP_M |
| 97 | default "adlrvp_m_ext_ec" if BOARD_INTEL_ADLRVP_M_EXT_EC |
Krishna Prasad Bhat | e3fd52a | 2021-12-06 15:59:39 +0530 | [diff] [blame] | 98 | default "adlrvp_n" if BOARD_INTEL_ADLRVP_N |
| 99 | default "adlrvp_n_ext_ec" if BOARD_INTEL_ADLRVP_N_EXT_EC |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 100 | |
| 101 | config GBB_HWID |
| 102 | string |
| 103 | depends on CHROMEOS |
Varshit Pandya | 4084702 | 2021-01-22 18:59:42 +0530 | [diff] [blame] | 104 | default "ADLRVPM" if BOARD_INTEL_ADLRVP_M || BOARD_INTEL_ADLRVP_M_EXT_EC |
Krishna Prasad Bhat | e3fd52a | 2021-12-06 15:59:39 +0530 | [diff] [blame] | 105 | default "ADLRVPN" if BOARD_INTEL_ADLRVP_N || BOARD_INTEL_ADLRVP_N_EXT_EC |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 106 | default "ADLRVPP" |
| 107 | |
| 108 | config MAINBOARD_PART_NUMBER |
Meera Ravindranath | f100e20 | 2021-03-11 16:52:01 +0530 | [diff] [blame] | 109 | default "Alder Lake Client Platform" |
| 110 | |
| 111 | config MAINBOARD_VENDOR |
| 112 | string |
| 113 | default "Intel Corporation" |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 114 | |
| 115 | config MAINBOARD_FAMILY |
| 116 | string |
| 117 | default "Intel_adlrvp" |
| 118 | |
Varshit Pandya | 4084702 | 2021-01-22 18:59:42 +0530 | [diff] [blame] | 119 | config DEVICETREE |
Varshit Pandya | 4084702 | 2021-01-22 18:59:42 +0530 | [diff] [blame] | 120 | default "devicetree_m.cb" if BOARD_INTEL_ADLRVP_M || BOARD_INTEL_ADLRVP_M_EXT_EC |
Krishna Prasad Bhat | e3fd52a | 2021-12-06 15:59:39 +0530 | [diff] [blame] | 121 | default "devicetree_n.cb" if BOARD_INTEL_ADLRVP_N || BOARD_INTEL_ADLRVP_N_EXT_EC |
Varshit Pandya | 4084702 | 2021-01-22 18:59:42 +0530 | [diff] [blame] | 122 | default "devicetree.cb" |
| 123 | |
Subrata Banik | 0a61ece | 2020-11-07 13:01:49 +0530 | [diff] [blame] | 124 | config OVERRIDE_DEVICETREE |
Subrata Banik | 0a61ece | 2020-11-07 13:01:49 +0530 | [diff] [blame] | 125 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 126 | |
| 127 | config DIMM_SPD_SIZE |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 128 | default 512 |
| 129 | |
| 130 | choice |
| 131 | prompt "ON BOARD EC" |
Krishna Prasad Bhat | e3fd52a | 2021-12-06 15:59:39 +0530 | [diff] [blame] | 132 | default ADL_INTEL_EC if BOARD_INTEL_ADLRVP_P || BOARD_INTEL_ADLRVP_M || BOARD_INTEL_ADLRVP_N |
| 133 | default ADL_CHROME_EC if BOARD_INTEL_ADLRVP_P_EXT_EC || BOARD_INTEL_ADLRVP_M_EXT_EC || BOARD_INTEL_ADLRVP_P_MCHP || BOARD_INTEL_ADLRVP_N_EXT_EC |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 134 | help |
| 135 | This option allows you to select the on board EC to use. |
| 136 | Select whether the board has Intel EC or Chrome EC |
| 137 | |
| 138 | config ADL_CHROME_EC |
| 139 | bool "Chrome EC" |
| 140 | select EC_GOOGLE_CHROMEEC |
| 141 | select EC_GOOGLE_CHROMEEC_ESPI |
| 142 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 143 | select EC_ACPI |
Anil Kumar | 88dd4f7 | 2021-04-22 11:35:36 -0700 | [diff] [blame] | 144 | select EC_GOOGLE_CHROMEEC_LPC |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 145 | |
| 146 | config ADL_INTEL_EC |
| 147 | bool "Intel EC" |
| 148 | select EC_ACPI |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 149 | endchoice |
| 150 | |
| 151 | config VBOOT |
| 152 | select VBOOT_LID_SWITCH |
Thejaswani Puta thejaswani.putta@intel.com | b336233 | 2021-05-10 13:45:07 -0700 | [diff] [blame] | 153 | select VBOOT_MOCK_SECDATA if BOARD_INTEL_ADLRVP_P_EXT_EC |
Anil Kumar | 88dd4f7 | 2021-04-22 11:35:36 -0700 | [diff] [blame] | 154 | select EC_GOOGLE_CHROMEEC_SWITCHES if ADL_CHROME_EC |
Thejaswani Putta | 250356c | 2021-07-07 17:48:54 -0700 | [diff] [blame] | 155 | select VBOOT_EARLY_EC_SYNC if BOARD_INTEL_ADLRVP_M_EXT_EC |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 156 | |
| 157 | config UART_FOR_CONSOLE |
| 158 | int |
| 159 | default 0 |
Thejaswani Puta thejaswani.putta@intel.com | b336233 | 2021-05-10 13:45:07 -0700 | [diff] [blame] | 160 | |
| 161 | config DRIVER_TPM_SPI_BUS |
| 162 | default 0x2 if BOARD_INTEL_ADLRVP_M_EXT_EC |
| 163 | |
| 164 | config TPM_TIS_ACPI_INTERRUPT |
| 165 | int |
| 166 | default 67 if BOARD_INTEL_ADLRVP_M_EXT_EC # GPE0_DW2_3 (GPP_E3) |
Subrata Banik | de6b489 | 2021-12-08 16:23:39 +0530 | [diff] [blame] | 167 | |
| 168 | config GEN3_EXTERNAL_CLOCK_BUFFER |
| 169 | bool |
| 170 | depends on SOC_INTEL_ALDERLAKE_PCH_P |
| 171 | default n |
| 172 | help |
| 173 | Support external Gen-3 clock chip for ADL-P. |
| 174 | `CONFIG_CLKSRC_FOR_EXTERNAL_BUFFER` provides feed clock to discrete buffer |
| 175 | for further distribution to platform. SRCCLKREQB[7:9] maps to internal |
| 176 | SRCCLKREQB[6]. If any of them asserted, SRC buffer |
| 177 | `CONFIG_CLKSRC_FOR_EXTERNAL_BUFFER` gets enabled. |
| 178 | |
| 179 | config CLKSRC_FOR_EXTERNAL_BUFFER |
| 180 | depends on GEN3_EXTERNAL_CLOCK_BUFFER |
| 181 | int |
| 182 | default 6 # CLKSRC 6 |
Subrata Banik | efc4009 | 2020-10-05 21:04:22 +0530 | [diff] [blame] | 183 | endif |