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 || \ |
Yang Wu | 66f0cdb | 2024-04-30 15:23:11 +0800 | [diff] [blame^] | 12 | BOARD_GOOGLE_SQUIRTLE || \ |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 13 | BOARD_GOOGLE_STEELIX || \ |
| 14 | BOARD_GOOGLE_VOLTORB |
| 15 | |
| 16 | config BOARD_GOOGLE_KRABBY_COMMON |
| 17 | def_bool BOARD_GOOGLE_CHINCHOU || \ |
| 18 | BOARD_GOOGLE_KRABBY || \ |
| 19 | BOARD_GOOGLE_MAGIKARP || \ |
Herbert Wu | bebdaba | 2024-04-08 09:50:59 +0800 | [diff] [blame] | 20 | BOARD_GOOGLE_SKITTY || \ |
Frank Wu | c1a390f | 2024-04-10 17:32:27 +0800 | [diff] [blame] | 21 | BOARD_GOOGLE_TENTACRUEL || \ |
| 22 | BOARD_GOOGLE_VELUZA |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 23 | |
| 24 | config BOARD_GOOGLE_STARYU_COMMON |
Yang Wu | 9ab5ae7 | 2024-03-29 18:08:04 +0800 | [diff] [blame] | 25 | def_bool BOARD_GOOGLE_STARMIE || \ |
| 26 | BOARD_GOOGLE_WUGTRIO |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 27 | |
| 28 | if BOARD_GOOGLE_CORSOLA_COMMON |
| 29 | |
| 30 | config CORSOLA_SDCARD_INIT |
Yidi Lin | 5c06922 | 2024-04-30 22:46:09 +0800 | [diff] [blame] | 31 | def_bool BOARD_GOOGLE_KINGLER_COMMON || \ |
| 32 | BOARD_GOOGLE_MAGIKARP || \ |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 33 | BOARD_GOOGLE_TENTACRUEL || \ |
Yang Wu | 9ab5ae7 | 2024-03-29 18:08:04 +0800 | [diff] [blame] | 34 | BOARD_GOOGLE_WUGTRIO |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 35 | |
| 36 | config BOARD_SPECIFIC_OPTIONS |
| 37 | def_bool y |
Felix Singer | 9fe66a7 | 2023-09-23 21:40:19 +0200 | [diff] [blame] | 38 | select SOC_MEDIATEK_MT8186 |
| 39 | select BOARD_ROMSIZE_KB_8192 |
| 40 | select MAINBOARD_HAS_CHROMEOS |
| 41 | select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS |
| 42 | select COMMON_CBFS_SPI_WRAPPER |
| 43 | select SPI_FLASH |
| 44 | select SPI_FLASH_INCLUDE_ALL_DRIVERS |
| 45 | select COMMONLIB_STORAGE |
| 46 | select COMMONLIB_STORAGE_MMC |
| 47 | select EC_GOOGLE_CHROMEEC |
| 48 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 49 | select EC_GOOGLE_CHROMEEC_SKUID |
| 50 | select EC_GOOGLE_CHROMEEC_SPI |
| 51 | select SPI_TPM if VBOOT |
| 52 | select TPM_GOOGLE_TI50 if VBOOT |
| 53 | select MAINBOARD_HAS_TPM2 if VBOOT |
| 54 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
| 55 | select HAVE_LINEAR_FRAMEBUFFER |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 56 | select DRIVER_ANALOGIX_ANX7625 if BOARD_GOOGLE_CHINCHOU || \ |
| 57 | BOARD_GOOGLE_KINGLER || \ |
Kei Hiroyoshi | 347b117 | 2024-03-13 15:13:32 +0900 | [diff] [blame] | 58 | BOARD_GOOGLE_KYOGRE || \ |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 59 | BOARD_GOOGLE_PONYTA || \ |
Yang Wu | 66f0cdb | 2024-04-30 15:23:11 +0800 | [diff] [blame^] | 60 | BOARD_GOOGLE_SQUIRTLE || \ |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 61 | BOARD_GOOGLE_STEELIX || \ |
| 62 | BOARD_GOOGLE_VOLTORB |
| 63 | select DRIVER_PARADE_PS8640 if BOARD_GOOGLE_KRABBY || \ |
| 64 | BOARD_GOOGLE_MAGIKARP || \ |
Herbert Wu | bebdaba | 2024-04-08 09:50:59 +0800 | [diff] [blame] | 65 | BOARD_GOOGLE_SKITTY || \ |
Julius Werner | 0712851 | 2023-11-14 16:23:06 -0800 | [diff] [blame] | 66 | BOARD_GOOGLE_STEELIX || \ |
Frank Wu | c1a390f | 2024-04-10 17:32:27 +0800 | [diff] [blame] | 67 | BOARD_GOOGLE_TENTACRUEL || \ |
| 68 | BOARD_GOOGLE_VELUZA |
Felix Singer | 9fe66a7 | 2023-09-23 21:40:19 +0200 | [diff] [blame] | 69 | select RTC |
Yu-Ping Wu | 22e0ffa | 2023-11-03 08:05:40 +0800 | [diff] [blame] | 70 | select FW_CONFIG |
| 71 | select FW_CONFIG_SOURCE_CHROMEEC_CBI |
Yang Wu | 9ab5ae7 | 2024-03-29 18:08:04 +0800 | [diff] [blame] | 72 | select MIPI_PANEL_KD_KD101NE3_40TI if BOARD_GOOGLE_WUGTRIO |
Yang Wu | 11afdb3 | 2024-04-23 10:36:40 +0800 | [diff] [blame] | 73 | select MIPI_PANEL_STA_ER88577 if BOARD_GOOGLE_WUGTRIO |
Yang Wu | d0e3ffa | 2024-04-01 15:33:15 +0800 | [diff] [blame] | 74 | select MIPI_PANEL_STA_HIMAX83102_J02 if BOARD_GOOGLE_STARMIE |
| 75 | select MIPI_PANEL_STA_ILI9882T if BOARD_GOOGLE_STARMIE |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 76 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 77 | config VBOOT |
| 78 | select EC_GOOGLE_CHROMEEC_SWITCHES |
| 79 | select VBOOT_VBNV_FLASH |
| 80 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 81 | config MAINBOARD_DIR |
| 82 | string |
| 83 | default "google/corsola" |
| 84 | |
| 85 | config MAINBOARD_PART_NUMBER |
| 86 | string |
Yidi Lin | 5c06922 | 2024-04-30 22:46:09 +0800 | [diff] [blame] | 87 | default "Chinchou" if BOARD_GOOGLE_CHINCHOU |
Rex-BC Chen | fb06ca0 | 2021-11-10 14:00:17 +0800 | [diff] [blame] | 88 | default "Kingler" if BOARD_GOOGLE_KINGLER |
| 89 | default "Krabby" if BOARD_GOOGLE_KRABBY |
Kei Hiroyoshi | 347b117 | 2024-03-13 15:13:32 +0900 | [diff] [blame] | 90 | default "Kyogre" if BOARD_GOOGLE_KYOGRE |
Yidi Lin | 5c06922 | 2024-04-30 22:46:09 +0800 | [diff] [blame] | 91 | default "Magikarp" if BOARD_GOOGLE_MAGIKARP |
| 92 | default "Ponyta" if BOARD_GOOGLE_PONYTA |
| 93 | default "Skitty" if BOARD_GOOGLE_SKITTY |
Yang Wu | 66f0cdb | 2024-04-30 15:23:11 +0800 | [diff] [blame^] | 94 | default "Squirtle" if BOARD_GOOGLE_SQUIRTLE |
Yidi Lin | 5c06922 | 2024-04-30 22:46:09 +0800 | [diff] [blame] | 95 | default "Starmie" if BOARD_GOOGLE_STARMIE |
Zanxi Chen | c055f35 | 2022-05-30 16:58:00 +0800 | [diff] [blame] | 96 | default "Steelix" if BOARD_GOOGLE_STEELIX |
Kane Chen | 7a4fa4e | 2022-06-17 13:39:57 +0800 | [diff] [blame] | 97 | default "Tentacruel" if BOARD_GOOGLE_TENTACRUEL |
Frank Wu | c1a390f | 2024-04-10 17:32:27 +0800 | [diff] [blame] | 98 | default "Veluza" if BOARD_GOOGLE_VELUZA |
Yidi Lin | 5c06922 | 2024-04-30 22:46:09 +0800 | [diff] [blame] | 99 | default "Voltorb" if BOARD_GOOGLE_VOLTORB |
| 100 | default "Wugtrio" if BOARD_GOOGLE_WUGTRIO |
Rex-BC Chen | c4db2db | 2021-11-04 13:59:42 +0800 | [diff] [blame] | 101 | |
| 102 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 103 | int |
| 104 | default 7 |
Rex-BC Chen | fca89d3 | 2021-11-19 10:47:12 +0800 | [diff] [blame] | 105 | |
Rex-BC Chen | 858481e | 2021-11-18 15:43:40 +0800 | [diff] [blame] | 106 | config DRIVER_TPM_SPI_BUS |
| 107 | hex |
| 108 | default 0x2 |
| 109 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 110 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 111 | hex |
| 112 | default 0x1 |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 113 | endif |