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