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