Julius Werner | 53b79be | 2023-11-14 15:41:03 -0800 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 2 | |
Julius Werner | 53b79be | 2023-11-14 15:41:03 -0800 | [diff] [blame] | 3 | config BOARD_GOOGLE_HEROBRINE_COMMON |
| 4 | def_bool BOARD_GOOGLE_EVOKER || \ |
| 5 | BOARD_GOOGLE_HEROBRINE || \ |
| 6 | BOARD_GOOGLE_HEROBRINE_REV0 || \ |
| 7 | BOARD_GOOGLE_HOGLIN || \ |
| 8 | BOARD_GOOGLE_PIGLIN || \ |
| 9 | BOARD_GOOGLE_SENOR || \ |
| 10 | BOARD_GOOGLE_VILLAGER || \ |
| 11 | BOARD_GOOGLE_ZOGLIN || \ |
| 12 | BOARD_GOOGLE_ZOMBIE |
Felix Singer | a2dffba | 2023-11-12 07:03:23 +0000 | [diff] [blame] | 13 | |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 14 | if BOARD_GOOGLE_HEROBRINE_COMMON |
| 15 | |
Shelley Chen | ffebd49 | 2021-09-28 12:42:11 -0700 | [diff] [blame] | 16 | config HEROBRINE_HAS_FINGERPRINT |
Julius Werner | 53b79be | 2023-11-14 15:41:03 -0800 | [diff] [blame] | 17 | def_bool BOARD_GOOGLE_HEROBRINE || \ |
| 18 | BOARD_GOOGLE_HEROBRINE_REV0 |
Shelley Chen | ffebd49 | 2021-09-28 12:42:11 -0700 | [diff] [blame] | 19 | |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 20 | config BOARD_SPECIFIC_OPTIONS |
| 21 | def_bool y |
Shelley Chen | 212f48d | 2021-09-16 10:40:15 -0700 | [diff] [blame] | 22 | select BOARD_ROMSIZE_KB_65536 if BOARD_GOOGLE_PIGLIN || BOARD_GOOGLE_HOGLIN |
| 23 | select BOARD_ROMSIZE_KB_8192 if !BOARD_GOOGLE_PIGLIN && !BOARD_GOOGLE_HOGLIN |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 24 | select COMMON_CBFS_SPI_WRAPPER |
Shelley Chen | 8790b9a | 2021-06-24 15:23:26 -0700 | [diff] [blame] | 25 | select EC_GOOGLE_CHROMEEC if !BOARD_GOOGLE_SENOR |
| 26 | select EC_GOOGLE_CHROMEEC_RTC if !BOARD_GOOGLE_SENOR |
Philip Chen | 1158f71 | 2021-07-15 15:31:51 -0700 | [diff] [blame] | 27 | select EC_GOOGLE_CHROMEEC_SKUID if !BOARD_GOOGLE_SENOR |
Shelley Chen | 8790b9a | 2021-06-24 15:23:26 -0700 | [diff] [blame] | 28 | select EC_GOOGLE_CHROMEEC_SPI if !BOARD_GOOGLE_SENOR |
| 29 | select RTC if !BOARD_GOOGLE_SENOR |
| 30 | select MISSING_BOARD_RESET if BOARD_GOOGLE_SENOR |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 31 | select SOC_QUALCOMM_SC7280 |
| 32 | select SPI_FLASH |
T Michael Turney | df81e07 | 2022-01-20 11:41:59 -0800 | [diff] [blame] | 33 | select SPI_FLASH_EXIT_4_BYTE_ADDR_MODE |
Shelley Chen | ffc8532 | 2022-02-15 20:22:20 -0800 | [diff] [blame] | 34 | select SPI_FLASH_GIGADEVICE |
Shaik Sajida Bhanu | 26ba026 | 2021-05-11 21:59:28 +0530 | [diff] [blame] | 35 | select SPI_FLASH_MACRONIX |
Shelley Chen | 4ffdd07 | 2022-02-15 23:32:30 -0800 | [diff] [blame] | 36 | select SPI_FLASH_WINBOND |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 37 | select TPM_GOOGLE_CR50 if !BOARD_GOOGLE_SENOR |
| 38 | select SPI_TPM if BOARD_GOOGLE_PIGLIN |
| 39 | select I2C_TPM if !BOARD_GOOGLE_PIGLIN && !BOARD_GOOGLE_SENOR |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 40 | select MAINBOARD_HAS_CHROMEOS |
Shelley Chen | 8790b9a | 2021-06-24 15:23:26 -0700 | [diff] [blame] | 41 | select MAINBOARD_HAS_TPM2 if !BOARD_GOOGLE_SENOR |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 42 | |
| 43 | config VBOOT |
Shelley Chen | 8790b9a | 2021-06-24 15:23:26 -0700 | [diff] [blame] | 44 | select EC_GOOGLE_CHROMEEC_SWITCHES if !BOARD_GOOGLE_SENOR |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 45 | select VBOOT_VBNV_FLASH |
Shelley Chen | 8790b9a | 2021-06-24 15:23:26 -0700 | [diff] [blame] | 46 | select VBOOT_NO_BOARD_SUPPORT if BOARD_GOOGLE_SENOR |
| 47 | select VBOOT_MOCK_SECDATA if BOARD_GOOGLE_SENOR |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 48 | |
| 49 | config MAINBOARD_DIR |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 50 | default "google/herobrine" |
| 51 | |
| 52 | config MAINBOARD_VENDOR |
| 53 | string |
| 54 | default "Google" |
| 55 | |
| 56 | |
| 57 | ########################################################## |
| 58 | #### Update below when adding a new derivative board. #### |
| 59 | ########################################################## |
| 60 | |
| 61 | config MAINBOARD_PART_NUMBER |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 62 | default "Herobrine" if BOARD_GOOGLE_HEROBRINE |
Shelley Chen | 8bdbe23 | 2021-12-21 13:17:33 -0800 | [diff] [blame] | 63 | default "Herobrine.rev0" if BOARD_GOOGLE_HEROBRINE_REV0 |
Shelley Chen | 8790b9a | 2021-06-24 15:23:26 -0700 | [diff] [blame] | 64 | default "Senor" if BOARD_GOOGLE_SENOR |
| 65 | default "Piglin" if BOARD_GOOGLE_PIGLIN |
Shelley Chen | 212f48d | 2021-09-16 10:40:15 -0700 | [diff] [blame] | 66 | default "Hoglin" if BOARD_GOOGLE_HOGLIN |
Shelley Chen | 1d72afb | 2022-02-24 15:25:20 -0800 | [diff] [blame] | 67 | default "Villager" if BOARD_GOOGLE_VILLAGER |
Sheng-Liang Pan | 281a55e | 2022-07-18 16:25:41 +0800 | [diff] [blame] | 68 | default "Evoker" if BOARD_GOOGLE_EVOKER |
Shelley Chen | 2a59875 | 2022-07-21 13:04:48 -0700 | [diff] [blame] | 69 | default "Zoglin" if BOARD_GOOGLE_ZOGLIN |
Maulik Vaghela | ffa7907 | 2022-10-11 09:40:19 +0000 | [diff] [blame] | 70 | default "Zombie" if BOARD_GOOGLE_ZOMBIE |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 71 | |
Shelley Chen | 3538461 | 2022-01-05 17:15:31 -0800 | [diff] [blame] | 72 | config DRIVER_TPM_I2C_BUS |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 73 | depends on I2C_TPM |
Shelley Chen | 3538461 | 2022-01-05 17:15:31 -0800 | [diff] [blame] | 74 | hex |
| 75 | default 0xC if BOARD_GOOGLE_HEROBRINE_REV0 |
| 76 | default 0xE |
| 77 | |
| 78 | config DRIVER_TPM_I2C_ADDR |
| 79 | default 0x50 |
| 80 | |
| 81 | config DRIVER_TPM_SPI_BUS |
Jes B. Klinke | c6b041a1 | 2022-04-19 14:00:33 -0700 | [diff] [blame] | 82 | depends on SPI_TPM |
Shelley Chen | 3538461 | 2022-01-05 17:15:31 -0800 | [diff] [blame] | 83 | hex |
| 84 | default 0xE |
| 85 | |
| 86 | config EC_GOOGLE_CHROMEEC_SPI_BUS |
| 87 | hex |
| 88 | default 0x8 if BOARD_GOOGLE_HEROBRINE_REV0 |
| 89 | default 0xA |
| 90 | |
T Michael Turney | b97e6f7 | 2021-03-18 09:16:44 -0700 | [diff] [blame] | 91 | endif # BOARD_GOOGLE_HEROBRINE_COMMON |