Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +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_CORSOLA_COMMON |
| 5 | def_bool n |
| 6 | |
| 7 | if BOARD_GOOGLE_CORSOLA_COMMON |
| 8 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 9 | config VBOOT |
| 10 | select EC_GOOGLE_CHROMEEC_SWITCHES |
| 11 | select VBOOT_VBNV_FLASH |
| 12 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 13 | config BOARD_SPECIFIC_OPTIONS |
| 14 | def_bool y |
| 15 | select SOC_MEDIATEK_MT8186 |
| 16 | select BOARD_ROMSIZE_KB_8192 |
| 17 | select MAINBOARD_HAS_CHROMEOS |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 18 | select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 19 | select COMMON_CBFS_SPI_WRAPPER |
| 20 | select SPI_FLASH |
| 21 | select SPI_FLASH_INCLUDE_ALL_DRIVERS |
Wenbin Mei | 1cbcfc13 | 2021-11-05 10:05:11 +0800 | [diff] [blame] | 22 | select COMMONLIB_STORAGE |
| 23 | select COMMONLIB_STORAGE_MMC |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 24 | select EC_GOOGLE_CHROMEEC |
| 25 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 26 | select EC_GOOGLE_CHROMEEC_SPI |
Rex-BC Chen | 858481e | 2021-11-18 15:43:40 +0800 | [diff] [blame^] | 27 | select MAINBOARD_HAS_SPI_TPM_CR50 if VBOOT |
| 28 | select MAINBOARD_HAS_TPM2 if VBOOT |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 29 | |
| 30 | config MAINBOARD_DIR |
| 31 | string |
| 32 | default "google/corsola" |
| 33 | |
| 34 | config MAINBOARD_PART_NUMBER |
| 35 | string |
| 36 | default "Corsola" if BOARD_GOOGLE_CORSOLA |
Rex-BC Chen | fb06ca0 | 2021-11-10 14:00:17 +0800 | [diff] [blame] | 37 | default "Kingler" if BOARD_GOOGLE_KINGLER |
| 38 | default "Krabby" if BOARD_GOOGLE_KRABBY |
Rex-BC Chen | c4db2db | 2021-11-04 13:59:42 +0800 | [diff] [blame] | 39 | |
| 40 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 41 | int |
| 42 | default 7 |
Rex-BC Chen | fca89d3 | 2021-11-19 10:47:12 +0800 | [diff] [blame] | 43 | |
| 44 | config SDCARD_INIT |
| 45 | bool |
| 46 | default n |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 47 | |
Rex-BC Chen | 858481e | 2021-11-18 15:43:40 +0800 | [diff] [blame^] | 48 | config DRIVER_TPM_SPI_BUS |
| 49 | hex |
| 50 | default 0x2 |
| 51 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 52 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 53 | hex |
| 54 | default 0x1 |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 55 | endif |