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 | |
Rex-BC Chen | 1f796da | 2021-12-20 20:42:51 +0800 | [diff] [blame] | 7 | config BOARD_GOOGLE_KINGLER_COMMON |
| 8 | def_bool n |
| 9 | select BOARD_GOOGLE_CORSOLA_COMMON |
| 10 | |
| 11 | config BOARD_GOOGLE_KRABBY_COMMON |
| 12 | def_bool n |
| 13 | select BOARD_GOOGLE_CORSOLA_COMMON |
| 14 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 15 | if BOARD_GOOGLE_CORSOLA_COMMON |
| 16 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 17 | config VBOOT |
| 18 | select EC_GOOGLE_CHROMEEC_SWITCHES |
| 19 | select VBOOT_VBNV_FLASH |
| 20 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 21 | config BOARD_SPECIFIC_OPTIONS |
| 22 | def_bool y |
| 23 | select SOC_MEDIATEK_MT8186 |
| 24 | select BOARD_ROMSIZE_KB_8192 |
| 25 | select MAINBOARD_HAS_CHROMEOS |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 26 | select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 27 | select COMMON_CBFS_SPI_WRAPPER |
| 28 | select SPI_FLASH |
| 29 | select SPI_FLASH_INCLUDE_ALL_DRIVERS |
Wenbin Mei | 1cbcfc13 | 2021-11-05 10:05:11 +0800 | [diff] [blame] | 30 | select COMMONLIB_STORAGE |
| 31 | select COMMONLIB_STORAGE_MMC |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 32 | select EC_GOOGLE_CHROMEEC |
| 33 | select EC_GOOGLE_CHROMEEC_BOARDID |
Rex-BC Chen | 9f6805a | 2021-11-18 18:35:55 +0800 | [diff] [blame] | 34 | select EC_GOOGLE_CHROMEEC_SKUID |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 35 | select EC_GOOGLE_CHROMEEC_SPI |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 36 | select SPI_TPM if VBOOT |
Yu-Ping Wu | 05f2ff9 | 2022-05-11 15:07:52 +0800 | [diff] [blame] | 37 | select TPM_GOOGLE_TI50 if VBOOT |
Rex-BC Chen | 858481e | 2021-11-18 15:43:40 +0800 | [diff] [blame] | 38 | select MAINBOARD_HAS_TPM2 if VBOOT |
Rex-BC Chen | d05f231 | 2021-12-17 14:39:30 +0800 | [diff] [blame] | 39 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
| 40 | select HAVE_LINEAR_FRAMEBUFFER |
| 41 | select DRIVER_ANALOGIX_ANX7625 |
Rex-BC Chen | 291ba82 | 2021-12-17 15:10:45 +0800 | [diff] [blame] | 42 | select DRIVER_PARADE_PS8640 |
Yidi Lin | f044264 | 2022-05-23 12:32:06 +0800 | [diff] [blame] | 43 | select RTC |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 44 | |
| 45 | config MAINBOARD_DIR |
| 46 | string |
| 47 | default "google/corsola" |
| 48 | |
| 49 | config MAINBOARD_PART_NUMBER |
| 50 | string |
Rex-BC Chen | fb06ca0 | 2021-11-10 14:00:17 +0800 | [diff] [blame] | 51 | default "Kingler" if BOARD_GOOGLE_KINGLER |
| 52 | default "Krabby" if BOARD_GOOGLE_KRABBY |
Zanxi Chen | c055f35 | 2022-05-30 16:58:00 +0800 | [diff] [blame^] | 53 | default "Steelix" if BOARD_GOOGLE_STEELIX |
Rex-BC Chen | c4db2db | 2021-11-04 13:59:42 +0800 | [diff] [blame] | 54 | |
| 55 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 56 | int |
| 57 | default 7 |
Rex-BC Chen | fca89d3 | 2021-11-19 10:47:12 +0800 | [diff] [blame] | 58 | |
| 59 | config SDCARD_INIT |
| 60 | bool |
Rex-BC Chen | 1e9dfd9 | 2022-01-04 22:35:23 +0800 | [diff] [blame] | 61 | default y if BOARD_GOOGLE_KINGLER_COMMON |
| 62 | default n if BOARD_GOOGLE_KRABBY_COMMON |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 63 | |
Rex-BC Chen | 858481e | 2021-11-18 15:43:40 +0800 | [diff] [blame] | 64 | config DRIVER_TPM_SPI_BUS |
| 65 | hex |
| 66 | default 0x2 |
| 67 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 68 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 69 | hex |
| 70 | default 0x1 |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 71 | endif |