Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | # Umbrella option to be selected by variant boards. |
| 4 | config BOARD_GOOGLE_GERALT_COMMON |
| 5 | def_bool n |
| 6 | |
Felix Singer | 1020ea2 | 2023-05-08 19:52:33 +0200 | [diff] [blame] | 7 | config BOARD_GOOGLE_GERALT |
| 8 | select BOARD_GOOGLE_GERALT_COMMON |
| 9 | |
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 10 | if BOARD_GOOGLE_GERALT_COMMON |
| 11 | |
| 12 | config VBOOT |
| 13 | select VBOOT_VBNV_FLASH |
Rex-BC Chen | 1250820 | 2022-07-25 19:08:06 +0800 | [diff] [blame] | 14 | select EC_GOOGLE_CHROMEEC_SWITCHES |
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 15 | |
| 16 | config BOARD_SPECIFIC_OPTIONS |
| 17 | def_bool y |
| 18 | select SOC_MEDIATEK_MT8188 |
| 19 | select BOARD_ROMSIZE_KB_8192 |
| 20 | select MAINBOARD_HAS_CHROMEOS |
Rex-BC Chen | 1250820 | 2022-07-25 19:08:06 +0800 | [diff] [blame] | 21 | select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS |
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 22 | select COMMON_CBFS_SPI_WRAPPER |
| 23 | select SPI_FLASH |
| 24 | select SPI_FLASH_INCLUDE_ALL_DRIVERS |
Andy-ld Lu | 05c48ec | 2022-07-15 15:55:29 +0800 | [diff] [blame] | 25 | select COMMONLIB_STORAGE |
| 26 | select COMMONLIB_STORAGE_MMC |
Rex-BC Chen | 1250820 | 2022-07-25 19:08:06 +0800 | [diff] [blame] | 27 | select EC_GOOGLE_CHROMEEC |
| 28 | select EC_GOOGLE_CHROMEEC_BOARDID |
Rex-BC Chen | 07c91d5 | 2022-07-25 19:52:14 +0800 | [diff] [blame] | 29 | select EC_GOOGLE_CHROMEEC_SKUID |
Rex-BC Chen | 1250820 | 2022-07-25 19:08:06 +0800 | [diff] [blame] | 30 | select EC_GOOGLE_CHROMEEC_SPI |
Rex-BC Chen | d9e568a | 2022-07-25 19:36:56 +0800 | [diff] [blame] | 31 | select I2C_TPM if VBOOT |
| 32 | select MAINBOARD_HAS_TPM2 if VBOOT |
| 33 | select TPM_GOOGLE_TI50 if VBOOT |
Bo-Chen Chen | c1345d6 | 2022-09-29 17:32:02 +0800 | [diff] [blame] | 34 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
| 35 | select HAVE_LINEAR_FRAMEBUFFER |
Liju-Clr Chen | c5b32ee | 2022-11-10 16:51:45 +0800 | [diff] [blame] | 36 | select RTC |
Bo-Chen Chen | 817c6a7 | 2023-01-10 15:59:05 +0800 | [diff] [blame] | 37 | select MIPI_PANEL_BOE_TV110C9M_LL0 if BOARD_GOOGLE_GERALT |
Yu-Ping Wu | da48d9e | 2023-10-31 16:59:46 +0800 | [diff] [blame^] | 38 | select FW_CONFIG |
| 39 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 40 | |
| 41 | config MAINBOARD_DIR |
| 42 | string |
| 43 | default "google/geralt" |
| 44 | |
| 45 | config MAINBOARD_PART_NUMBER |
| 46 | string |
| 47 | default "Geralt" if BOARD_GOOGLE_GERALT |
Rex-BC Chen | eabd970 | 2022-06-13 19:47:43 +0800 | [diff] [blame] | 48 | |
| 49 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 50 | int |
| 51 | default 7 |
Rex-BC Chen | 1250820 | 2022-07-25 19:08:06 +0800 | [diff] [blame] | 52 | |
| 53 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 54 | hex |
| 55 | default 0x0 |
Rex-BC Chen | d9e568a | 2022-07-25 19:36:56 +0800 | [diff] [blame] | 56 | |
| 57 | config DRIVER_TPM_I2C_BUS |
| 58 | hex |
| 59 | default 0x1 |
| 60 | |
| 61 | config DRIVER_TPM_I2C_ADDR |
| 62 | hex |
| 63 | default 0x50 |
Liju-Clr Chen | aa9bb44 | 2022-12-20 15:52:50 +0800 | [diff] [blame] | 64 | |
| 65 | config SDCARD_INIT |
| 66 | bool |
| 67 | default y |
Trevor Wu | abe3c16 | 2023-02-20 17:47:56 +0800 | [diff] [blame] | 68 | |
| 69 | choice |
| 70 | prompt "Speaker AMP for Geralt" |
| 71 | default USE_MAX98390 if BOARD_GOOGLE_GERALT |
| 72 | |
| 73 | config USE_MAX98390 |
| 74 | bool "MAX98390" |
| 75 | |
Trevor Wu | eeb5491 | 2023-02-23 22:18:39 +0800 | [diff] [blame] | 76 | config USE_NAU8318 |
| 77 | bool "NAU8318" |
| 78 | |
Trevor Wu | abe3c16 | 2023-02-20 17:47:56 +0800 | [diff] [blame] | 79 | endchoice |
| 80 | |
Rex-BC Chen | db8442b | 2022-07-01 17:37:37 +0800 | [diff] [blame] | 81 | endif |