payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / google / herobrine / Kconfig
bloba95ac068b23b8d6d65115795e72b02b84932f170
1 config BOARD_GOOGLE_HEROBRINE_COMMON  # Umbrella option to be selected by variants
2         def_bool n
4 if BOARD_GOOGLE_HEROBRINE_COMMON
6 config HEROBRINE_HAS_FINGERPRINT
7         bool
8         default y if BOARD_GOOGLE_HEROBRINE || BOARD_GOOGLE_HEROBRINE_REV0
9         default n
11 config BOARD_SPECIFIC_OPTIONS
12         def_bool y
13         select BOARD_ROMSIZE_KB_65536 if BOARD_GOOGLE_PIGLIN || BOARD_GOOGLE_HOGLIN
14         select BOARD_ROMSIZE_KB_8192 if !BOARD_GOOGLE_PIGLIN && !BOARD_GOOGLE_HOGLIN
15         select COMMON_CBFS_SPI_WRAPPER
16         select EC_GOOGLE_CHROMEEC if !BOARD_GOOGLE_SENOR
17         select EC_GOOGLE_CHROMEEC_RTC if !BOARD_GOOGLE_SENOR
18         select EC_GOOGLE_CHROMEEC_SKUID if !BOARD_GOOGLE_SENOR
19         select EC_GOOGLE_CHROMEEC_SPI if !BOARD_GOOGLE_SENOR
20         select RTC if !BOARD_GOOGLE_SENOR
21         select MISSING_BOARD_RESET if BOARD_GOOGLE_SENOR
22         select SOC_QUALCOMM_SC7280
23         select SPI_FLASH
24         select SPI_FLASH_EXIT_4_BYTE_ADDR_MODE
25         select SPI_FLASH_GIGADEVICE
26         select SPI_FLASH_MACRONIX
27         select SPI_FLASH_WINBOND
28         select TPM_GOOGLE_CR50 if !BOARD_GOOGLE_SENOR
29         select SPI_TPM if BOARD_GOOGLE_PIGLIN
30         select I2C_TPM if !BOARD_GOOGLE_PIGLIN && !BOARD_GOOGLE_SENOR
31         select MAINBOARD_HAS_CHROMEOS
32         select MAINBOARD_HAS_TPM2 if !BOARD_GOOGLE_SENOR
34 config VBOOT
35         select EC_GOOGLE_CHROMEEC_SWITCHES if !BOARD_GOOGLE_SENOR
36         select VBOOT_VBNV_FLASH
37         select VBOOT_NO_BOARD_SUPPORT if BOARD_GOOGLE_SENOR
38         select VBOOT_MOCK_SECDATA if BOARD_GOOGLE_SENOR
40 config MAINBOARD_DIR
41         default "google/herobrine"
43 config MAINBOARD_VENDOR
44         string
45         default "Google"
48 ##########################################################
49 #### Update below when adding a new derivative board. ####
50 ##########################################################
52 config MAINBOARD_PART_NUMBER
53         default "Herobrine" if BOARD_GOOGLE_HEROBRINE
54         default "Herobrine.rev0" if BOARD_GOOGLE_HEROBRINE_REV0
55         default "Senor" if BOARD_GOOGLE_SENOR
56         default "Piglin" if BOARD_GOOGLE_PIGLIN
57         default "Hoglin" if BOARD_GOOGLE_HOGLIN
58         default "Villager" if BOARD_GOOGLE_VILLAGER
59         default "Evoker" if BOARD_GOOGLE_EVOKER
60         default "Zoglin" if BOARD_GOOGLE_ZOGLIN
61         default "Zombie" if BOARD_GOOGLE_ZOMBIE
63 config DRIVER_TPM_I2C_BUS
64         depends on I2C_TPM
65         hex
66         default 0xC if BOARD_GOOGLE_HEROBRINE_REV0
67         default 0xE
69 config DRIVER_TPM_I2C_ADDR
70         default 0x50
72 config DRIVER_TPM_SPI_BUS
73         depends on SPI_TPM
74         hex
75         default 0xE
77 config EC_GOOGLE_CHROMEEC_SPI_BUS
78         hex
79         default 0x8 if BOARD_GOOGLE_HEROBRINE_REV0
80         default 0xA
82 endif # BOARD_GOOGLE_HEROBRINE_COMMON