Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 1 | config BOARD_INTEL_MTLRVP_COMMON |
| 2 | def_bool n |
| 3 | select BOARD_ROMSIZE_KB_32768 |
Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 4 | select DRIVERS_I2C_GENERIC |
| 5 | select DRIVERS_I2C_HID |
| 6 | select DRIVERS_I2C_MAX98373 |
Usha P | c6b406e | 2023-02-13 09:38:28 +0530 | [diff] [blame] | 7 | select DRIVERS_INTEL_MIPI_CAMERA |
Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 8 | select DRIVERS_INTEL_SOUNDWIRE |
| 9 | select DRIVERS_GENERIC_MAX98357A |
| 10 | select DRIVERS_SOUNDWIRE_ALC711 |
| 11 | select DRIVERS_SOUNDWIRE_ALC5682 |
| 12 | select DRIVERS_SOUNDWIRE_MAX98373 |
Harsha B R | 168798a | 2023-02-04 16:39:11 +0530 | [diff] [blame] | 13 | select DRIVERS_USB_ACPI |
Jamie Ryu | 4d23b9f | 2022-07-22 12:03:53 -0700 | [diff] [blame] | 14 | select HAVE_ACPI_RESUME |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 15 | select HAVE_ACPI_TABLES |
Ashish Kumar Mishra | 8894a55 | 2022-11-17 14:48:26 +0530 | [diff] [blame] | 16 | select HAVE_SPD_IN_CBFS |
Harsha B R | 500da54 | 2022-12-13 13:53:45 +0530 | [diff] [blame] | 17 | select MAINBOARD_HAS_CHROMEOS |
Harsha B R | af6cd3f | 2023-01-03 14:03:39 +0530 | [diff] [blame] | 18 | select SOC_INTEL_CSE_LITE_SKU |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 19 | select SOC_INTEL_METEORLAKE |
Sumeet Pawnikar | e00705e | 2023-02-09 17:21:07 +0530 | [diff] [blame] | 20 | select DRIVERS_INTEL_DPTF |
| 21 | select DRIVERS_INTEL_DPTF_SUPPORTS_TPCH |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 22 | |
| 23 | config BOARD_INTEL_MTLRVP_P |
| 24 | select BOARD_INTEL_MTLRVP_COMMON |
| 25 | |
Harsha B R | c03cdc1 | 2022-12-05 14:47:37 +0530 | [diff] [blame] | 26 | config BOARD_INTEL_MTLRVP_P_EXT_EC |
Harsha B R | 68af77e | 2022-12-13 11:14:32 +0530 | [diff] [blame^] | 27 | select BOARD_EXT_EC_SPECIFIC_OPTIONS |
| 28 | |
| 29 | config BOARD_INTEL_MTLRVP_P_MCHP |
| 30 | select BOARD_EXT_EC_SPECIFIC_OPTIONS |
| 31 | select EC_GOOGLE_CHROMEEC_MEC |
| 32 | |
| 33 | config BOARD_EXT_EC_SPECIFIC_OPTIONS |
| 34 | def_bool n |
Harsha B R | c03cdc1 | 2022-12-05 14:47:37 +0530 | [diff] [blame] | 35 | select BOARD_INTEL_MTLRVP_COMMON |
Harsha B R | 1a832d0 | 2023-02-04 18:27:39 +0530 | [diff] [blame] | 36 | select DRIVERS_INTEL_PMC |
Usha P | 6565433 | 2023-02-13 09:31:06 +0530 | [diff] [blame] | 37 | select FW_CONFIG |
| 38 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
Harsha B R | c03cdc1 | 2022-12-05 14:47:37 +0530 | [diff] [blame] | 39 | |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 40 | if BOARD_INTEL_MTLRVP_COMMON |
| 41 | |
Harsha B R | 500da54 | 2022-12-13 13:53:45 +0530 | [diff] [blame] | 42 | config CHROMEOS |
| 43 | select GBB_FLAG_FORCE_DEV_BOOT_ALTFW |
| 44 | select GBB_FLAG_FORCE_DEV_SWITCH_ON |
| 45 | select GBB_FLAG_FORCE_DEV_BOOT_USB |
| 46 | select GBB_FLAG_FORCE_MANUAL_RECOVERY |
| 47 | select GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC |
| 48 | select HAS_RECOVERY_MRC_CACHE |
| 49 | |
Harsha B R | 7fb5bf8 | 2022-12-16 12:47:55 +0530 | [diff] [blame] | 50 | config BOARD_SPECIFIC_OPTIONS |
| 51 | def_bool y |
| 52 | select INTEL_LPSS_UART_FOR_CONSOLE |
Harsha B R | 2904aea | 2023-02-04 16:09:05 +0530 | [diff] [blame] | 53 | select DRIVERS_INTEL_USB4_RETIMER |
Harsha B R | 4aa7d2d | 2023-02-04 11:09:24 +0530 | [diff] [blame] | 54 | select DRIVERS_WWAN_FM350GL |
Harsha B R | 7fb5bf8 | 2022-12-16 12:47:55 +0530 | [diff] [blame] | 55 | |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 56 | config MAINBOARD_DIR |
| 57 | default "intel/mtlrvp" |
| 58 | |
Harsha B R | 5b92aa9 | 2022-11-25 00:01:41 +0530 | [diff] [blame] | 59 | config BASEBOARD_DIR |
| 60 | string |
Harsha B R | 68af77e | 2022-12-13 11:14:32 +0530 | [diff] [blame^] | 61 | default "mtlrvp_p" if BOARD_INTEL_MTLRVP_P || BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP_P_MCHP |
Harsha B R | 5b92aa9 | 2022-11-25 00:01:41 +0530 | [diff] [blame] | 62 | |
Harsha B R | 500da54 | 2022-12-13 13:53:45 +0530 | [diff] [blame] | 63 | config GBB_HWID |
| 64 | string |
| 65 | depends on CHROMEOS |
| 66 | default "MTLRVP" |
| 67 | |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 68 | config MAINBOARD_PART_NUMBER |
| 69 | string |
| 70 | default "mtlrvp" |
| 71 | |
| 72 | config FMDFILE |
| 73 | default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/chromeos.fmd" |
| 74 | |
| 75 | config MAINBOARD_FAMILY |
| 76 | string |
| 77 | default "Intel_mtlrvp" |
| 78 | |
| 79 | config VARIANT_DIR |
| 80 | string |
| 81 | default "mtlrvp_p" if BOARD_INTEL_MTLRVP_P |
Harsha B R | 68af77e | 2022-12-13 11:14:32 +0530 | [diff] [blame^] | 82 | default "mtlrvp_p_ext_ec" if BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP_P_MCHP |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 83 | |
| 84 | config DEVICETREE |
| 85 | string |
Harsha B R | c03cdc1 | 2022-12-05 14:47:37 +0530 | [diff] [blame] | 86 | default "variants/baseboard/\$(CONFIG_BASEBOARD_DIR)/devicetree.cb" |
| 87 | |
| 88 | config OVERRIDE_DEVICETREE |
| 89 | string |
| 90 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 91 | |
Ashish Kumar Mishra | 8894a55 | 2022-11-17 14:48:26 +0530 | [diff] [blame] | 92 | config DIMM_SPD_SIZE |
| 93 | default 512 |
| 94 | |
Jamie Ryu | 071d7f3 | 2022-07-22 12:29:57 -0700 | [diff] [blame] | 95 | choice |
| 96 | prompt "ON BOARD EC" |
| 97 | default MTL_INTEL_EC if BOARD_INTEL_MTLRVP_P |
Harsha B R | 68af77e | 2022-12-13 11:14:32 +0530 | [diff] [blame^] | 98 | default MTL_CHROME_EC if BOARD_INTEL_MTLRVP_P_EXT_EC || BOARD_INTEL_MTLRVP_P_MCHP |
Jamie Ryu | 071d7f3 | 2022-07-22 12:29:57 -0700 | [diff] [blame] | 99 | help |
| 100 | This option allows you to select the on board EC to use. |
| 101 | Select whether the board has Intel EC or/and Chrome EC |
| 102 | |
| 103 | config MTL_CHROME_EC |
| 104 | bool "Chrome EC" |
| 105 | select EC_ACPI |
| 106 | select EC_GOOGLE_CHROMEEC |
| 107 | select EC_GOOGLE_CHROMEEC_ESPI |
| 108 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 109 | |
| 110 | config MTL_INTEL_EC |
| 111 | bool "Intel EC" |
| 112 | select EC_ACPI |
| 113 | endchoice |
| 114 | |
| 115 | config VBOOT |
| 116 | select VBOOT_LID_SWITCH |
Harsha B R | 05ca3d1 | 2023-02-04 23:03:53 +0530 | [diff] [blame] | 117 | select EC_GOOGLE_CHROMEEC_SWITCHES if MTL_CHROME_EC |
Jamie Ryu | 071d7f3 | 2022-07-22 12:29:57 -0700 | [diff] [blame] | 118 | |
Harsha B R | 7fb5bf8 | 2022-12-16 12:47:55 +0530 | [diff] [blame] | 119 | config UART_FOR_CONSOLE |
| 120 | int |
| 121 | default 0 |
| 122 | |
Jamie Ryu | 0e7a52a | 2022-07-22 10:13:45 -0700 | [diff] [blame] | 123 | endif # BOARD_INTEL_MTLRVP_COMMON |