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 |
Felix Singer | 9fe66a7 | 2023-09-23 21:40:19 +0200 | [diff] [blame] | 6 | select SOC_MEDIATEK_MT8186 |
| 7 | select BOARD_ROMSIZE_KB_8192 |
| 8 | select MAINBOARD_HAS_CHROMEOS |
| 9 | select CHROMEOS_USE_EC_WATCHDOG_FLAG if CHROMEOS |
| 10 | select COMMON_CBFS_SPI_WRAPPER |
| 11 | select SPI_FLASH |
| 12 | select SPI_FLASH_INCLUDE_ALL_DRIVERS |
| 13 | select COMMONLIB_STORAGE |
| 14 | select COMMONLIB_STORAGE_MMC |
| 15 | select EC_GOOGLE_CHROMEEC |
| 16 | select EC_GOOGLE_CHROMEEC_BOARDID |
| 17 | select EC_GOOGLE_CHROMEEC_SKUID |
| 18 | select EC_GOOGLE_CHROMEEC_SPI |
| 19 | select SPI_TPM if VBOOT |
| 20 | select TPM_GOOGLE_TI50 if VBOOT |
| 21 | select MAINBOARD_HAS_TPM2 if VBOOT |
| 22 | select MAINBOARD_HAS_NATIVE_VGA_INIT |
| 23 | select HAVE_LINEAR_FRAMEBUFFER |
Felix Singer | 9fe66a7 | 2023-09-23 21:40:19 +0200 | [diff] [blame] | 24 | select RTC |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 25 | |
Rex-BC Chen | 1f796da | 2021-12-20 20:42:51 +0800 | [diff] [blame] | 26 | config BOARD_GOOGLE_KINGLER_COMMON |
| 27 | def_bool n |
| 28 | select BOARD_GOOGLE_CORSOLA_COMMON |
| 29 | |
| 30 | config BOARD_GOOGLE_KRABBY_COMMON |
| 31 | def_bool n |
| 32 | select BOARD_GOOGLE_CORSOLA_COMMON |
| 33 | |
Ruihai Zhou | 870eca2 | 2023-04-21 14:26:46 +0800 | [diff] [blame] | 34 | config BOARD_GOOGLE_STARYU_COMMON |
Ruihai Zhou | 0db0d20 | 2023-03-28 10:30:37 +0800 | [diff] [blame] | 35 | def_bool n |
| 36 | select BOARD_GOOGLE_CORSOLA_COMMON |
| 37 | |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 38 | config BOARD_GOOGLE_KINGLER |
| 39 | select BOARD_GOOGLE_KINGLER_COMMON |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 40 | select DRIVER_ANALOGIX_ANX7625 |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 41 | |
Felix Singer | 3c9b8f7 | 2023-09-22 07:09:02 +0200 | [diff] [blame] | 42 | config BOARD_GOOGLE_PONYTA |
| 43 | select BOARD_GOOGLE_KINGLER_COMMON |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 44 | select DRIVER_ANALOGIX_ANX7625 |
Felix Singer | 3c9b8f7 | 2023-09-22 07:09:02 +0200 | [diff] [blame] | 45 | |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 46 | config BOARD_GOOGLE_STEELIX |
| 47 | select BOARD_GOOGLE_KINGLER_COMMON |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 48 | select DRIVER_ANALOGIX_ANX7625 |
| 49 | select DRIVER_PARADE_PS8640 |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 50 | |
| 51 | config BOARD_GOOGLE_VOLTORB |
| 52 | select BOARD_GOOGLE_KINGLER_COMMON |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 53 | select DRIVER_ANALOGIX_ANX7625 |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 54 | |
| 55 | config BOARD_GOOGLE_KRABBY |
| 56 | select BOARD_GOOGLE_KRABBY_COMMON |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 57 | select DRIVER_PARADE_PS8640 |
| 58 | |
| 59 | config BOARD_GOOGLE_CHINCHOU |
| 60 | select BOARD_GOOGLE_KRABBY_COMMON |
| 61 | select DRIVER_ANALOGIX_ANX7625 |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 62 | |
| 63 | config BOARD_GOOGLE_TENTACRUEL |
| 64 | select BOARD_GOOGLE_KRABBY_COMMON |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 65 | select DRIVER_PARADE_PS8640 |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 66 | |
| 67 | config BOARD_GOOGLE_MAGIKARP |
| 68 | select BOARD_GOOGLE_KRABBY_COMMON |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 69 | select DRIVER_PARADE_PS8640 |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 70 | |
| 71 | config BOARD_GOOGLE_STARMIE |
| 72 | select BOARD_GOOGLE_STARYU_COMMON |
Felix Singer | cfde50b | 2023-09-23 21:36:16 +0200 | [diff] [blame] | 73 | select MIPI_PANEL_STA_HIMAX83102_J02 |
| 74 | select MIPI_PANEL_STA_ILI9882T |
Felix Singer | f34fd3c | 2023-05-08 19:34:18 +0200 | [diff] [blame] | 75 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 76 | if BOARD_GOOGLE_CORSOLA_COMMON |
| 77 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 78 | config VBOOT |
| 79 | select EC_GOOGLE_CHROMEEC_SWITCHES |
| 80 | select VBOOT_VBNV_FLASH |
| 81 | |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 82 | config MAINBOARD_DIR |
| 83 | string |
| 84 | default "google/corsola" |
| 85 | |
| 86 | config MAINBOARD_PART_NUMBER |
| 87 | string |
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 |
Zanxi Chen | c055f35 | 2022-05-30 16:58:00 +0800 | [diff] [blame] | 90 | default "Steelix" if BOARD_GOOGLE_STEELIX |
Kane Chen | 7a4fa4e | 2022-06-17 13:39:57 +0800 | [diff] [blame] | 91 | default "Tentacruel" if BOARD_GOOGLE_TENTACRUEL |
van_chen | 2515c5e | 2022-08-25 12:20:16 +0800 | [diff] [blame] | 92 | default "Magikarp" if BOARD_GOOGLE_MAGIKARP |
Mars Chen | 83e9456 | 2022-11-01 17:47:08 +0800 | [diff] [blame] | 93 | default "Voltorb" if BOARD_GOOGLE_VOLTORB |
Ruihai Zhou | 0db0d20 | 2023-03-28 10:30:37 +0800 | [diff] [blame] | 94 | default "Starmie" if BOARD_GOOGLE_STARMIE |
cengjianeng | a8602a1 | 2023-07-07 11:39:05 +0800 | [diff] [blame] | 95 | default "Ponyta" if BOARD_GOOGLE_PONYTA |
wuyang5 | b621e08 | 2023-10-23 11:23:36 +0800 | [diff] [blame^] | 96 | default "Chinchou" if BOARD_GOOGLE_CHINCHOU |
Rex-BC Chen | c4db2db | 2021-11-04 13:59:42 +0800 | [diff] [blame] | 97 | |
| 98 | config BOOT_DEVICE_SPI_FLASH_BUS |
| 99 | int |
| 100 | default 7 |
Rex-BC Chen | fca89d3 | 2021-11-19 10:47:12 +0800 | [diff] [blame] | 101 | |
| 102 | config SDCARD_INIT |
| 103 | bool |
van_chen | 2515c5e | 2022-08-25 12:20:16 +0800 | [diff] [blame] | 104 | default y if BOARD_GOOGLE_MAGIKARP |
Kane Chen | 7a4fa4e | 2022-06-17 13:39:57 +0800 | [diff] [blame] | 105 | default y if BOARD_GOOGLE_TENTACRUEL |
Rex-BC Chen | 1e9dfd9 | 2022-01-04 22:35:23 +0800 | [diff] [blame] | 106 | default y if BOARD_GOOGLE_KINGLER_COMMON |
| 107 | default n if BOARD_GOOGLE_KRABBY_COMMON |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 108 | |
Rex-BC Chen | 858481e | 2021-11-18 15:43:40 +0800 | [diff] [blame] | 109 | config DRIVER_TPM_SPI_BUS |
| 110 | hex |
| 111 | default 0x2 |
| 112 | |
Rex-BC Chen | 9f01bbf | 2021-11-18 15:20:42 +0800 | [diff] [blame] | 113 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 114 | hex |
| 115 | default 0x1 |
Rex-BC Chen | 74a0629 | 2021-09-09 18:43:22 +0800 | [diff] [blame] | 116 | endif |