Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 3 | config BOARD_GOOGLE_CORSOLA_COMMON |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 4 | def_bool BOARD_GOOGLE_KINGLER_COMMON || \ |
| 5 | BOARD_GOOGLE_KRABBY_COMMON || \ |
| 6 | BOARD_GOOGLE_STARYU_COMMON |
| 7 | |
| 8 | config BOARD_GOOGLE_KINGLER_COMMON |
| 9 | def_bool BOARD_GOOGLE_KINGLER || \ |
Kei Hiroyoshi | 347b117 | 2024-03-13 15:13:32 +0900 | [diff] [blame^] | 10 | BOARD_GOOGLE_KYOGRE || \ |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 11 | BOARD_GOOGLE_PONYTA || \ |
| 12 | BOARD_GOOGLE_STEELIX || \ |
| 13 | BOARD_GOOGLE_VOLTORB |
| 14 | |
| 15 | config BOARD_GOOGLE_KRABBY_COMMON |
| 16 | def_bool BOARD_GOOGLE_CHINCHOU || \ |
| 17 | BOARD_GOOGLE_KRABBY || \ |
| 18 | BOARD_GOOGLE_MAGIKARP || \ |
| 19 | BOARD_GOOGLE_TENTACRUEL |
| 20 | |
| 21 | config BOARD_GOOGLE_STARYU_COMMON |
| 22 | def_bool BOARD_GOOGLE_STARMIE |
| 23 | select MIPI_PANEL_STA_HIMAX83102_J02 |
| 24 | select MIPI_PANEL_STA_ILI9882T |
| 25 | |
| 26 | if BOARD_GOOGLE_CORSOLA_COMMON |
| 27 | |
| 28 | config CORSOLA_SDCARD_INIT |
| 29 | def_bool BOARD_GOOGLE_MAGIKARP || \ |
| 30 | BOARD_GOOGLE_TENTACRUEL || \ |
| 31 | BOARD_GOOGLE_KINGLER_COMMON |
| 32 | |
| 33 | config BOARD_SPECIFIC_OPTIONS |
| 34 | def_bool y |
Felix Singer | 9fe66a7 | 2023-09-23 21:40:19 +0200 | [diff] [blame] | 35 | select SOC_MEDIATEK_MT8186 |
| 36 | select BOARD_ROMSIZE_KB_8192 |
| 37 | select MAINBOARD_HAS_CHROMEOS |
| 38 | select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS |
| 39 | select COMMON_CBFS_SPI_WRAPPER |
| 40 | select SPI_FLASH |
| 41 | select SPI_FLASH_INCLUDE_ALL_DRIVERS |
| 42 | select COMMONLIB_STORAGE |
| 43 | select COMMONLIB_STORAGE_MMC |
| 44 | select EC_GOOGLE_CHROMEEC |
| 45 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 46 | select EC_GOOGLE_CHROMEEC_SKUID |
| 47 | select EC_GOOGLE_CHROMEEC_SPI |
| 48 | select SPI_TPM if VBOOT |
| 49 | select TPM_GOOGLE_TI50 if VBOOT |
| 50 | select MAINBOARD_HAS_TPM2 if VBOOT |
| 51 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
| 52 | select HAVE_LINEAR_FRAMEBUFFER |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 53 | select DRIVER_ANALOGIX_ANX7625 if BOARD_GOOGLE_CHINCHOU || \ |
| 54 | BOARD_GOOGLE_KINGLER || \ |
Kei Hiroyoshi | 347b117 | 2024-03-13 15:13:32 +0900 | [diff] [blame^] | 55 | BOARD_GOOGLE_KYOGRE || \ |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 56 | BOARD_GOOGLE_PONYTA || \ |
| 57 | BOARD_GOOGLE_STEELIX || \ |
| 58 | BOARD_GOOGLE_VOLTORB |
| 59 | select DRIVER_PARADE_PS8640 if BOARD_GOOGLE_KRABBY || \ |
| 60 | BOARD_GOOGLE_MAGIKARP || \ |
| 61 | BOARD_GOOGLE_STEELIX || \ |
| 62 | BOARD_GOOGLE_TENTACRUEL |
Felix Singer | 9fe66a7 | 2023-09-23 21:40:19 +0200 | [diff] [blame] | 63 | select RTC |
Yu-Ping Wu | 22e0ffa | 2023-11-03 08:05:40 +0800 | [diff] [blame] | 64 | select FW_CONFIG |
| 65 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 66 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 67 | config VBOOT |
| 68 | select EC_GOOGLE_CHROMEEC_SWITCHES |
| 69 | select VBOOT_VBNV_FLASH |
| 70 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 71 | config MAINBOARD_DIR |
| 72 | string |
| 73 | default "google/corsola" |
| 74 | |
| 75 | config MAINBOARD_PART_NUMBER |
| 76 | string |
Rex-BC Chen | fb06ca0 | 2021-11-10 14:00:17 +0800 | [diff] [blame] | 77 | default "Kingler" if BOARD_GOOGLE_KINGLER |
| 78 | default "Krabby" if BOARD_GOOGLE_KRABBY |
Kei Hiroyoshi | 347b117 | 2024-03-13 15:13:32 +0900 | [diff] [blame^] | 79 | default "Kyogre" if BOARD_GOOGLE_KYOGRE |
Zanxi Chen | c055f35 | 2022-05-30 16:58:00 +0800 | [diff] [blame] | 80 | default "Steelix" if BOARD_GOOGLE_STEELIX |
Kane Chen | 7a4fa4e | 2022-06-17 13:39:57 +0800 | [diff] [blame] | 81 | default "Tentacruel" if BOARD_GOOGLE_TENTACRUEL |
van_chen | 2515c5e | 2022-08-25 12:20:16 +0800 | [diff] [blame] | 82 | default "Magikarp" if BOARD_GOOGLE_MAGIKARP |
Mars Chen | 83e9456 | 2022-11-01 17:47:08 +0800 | [diff] [blame] | 83 | default "Voltorb" if BOARD_GOOGLE_VOLTORB |
Ruihai Zhou | 0db0d20 | 2023-03-28 10:30:37 +0800 | [diff] [blame] | 84 | default "Starmie" if BOARD_GOOGLE_STARMIE |
cengjianeng | a8602a1 | 2023-07-07 11:39:05 +0800 | [diff] [blame] | 85 | default "Ponyta" if BOARD_GOOGLE_PONYTA |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame] | 86 | default "Chinchou" if BOARD_GOOGLE_CHINCHOU |
Rex-BC Chen | c4db2db | 2021-11-04 13:59:42 +0800 | [diff] [blame] | 87 | |
| 88 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 89 | int |
| 90 | default 7 |
Rex-BC Chen | fca89d3 | 2021-11-19 10:47:12 +0800 | [diff] [blame] | 91 | |
Rex-BC Chen | 858481e | 2021-11-18 15:43:40 +0800 | [diff] [blame] | 92 | config DRIVER_TPM_SPI_BUS |
| 93 | hex |
| 94 | default 0x2 |
| 95 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 96 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 97 | hex |
| 98 | default 0x1 |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 99 | endif |