summaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy/Kconfig
blob: 409bfeee6b855907a04094ea1a872f432b9d2133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132

config BOARD_GOOGLE_BASEBOARD_POPPY
	def_bool n
	select BOARD_ID_AUTO
	select BOARD_ROMSIZE_KB_16384
	select DRIVERS_I2C_GENERIC
	select DRIVERS_I2C_HID
	select EC_GOOGLE_CHROMEEC
	select EC_GOOGLE_CHROMEEC_BOARDID
	select EC_GOOGLE_CHROMEEC_LPC
	select HAVE_ACPI_RESUME
	select HAVE_ACPI_TABLES
	select MAINBOARD_HAS_CHROMEOS
	select MAINBOARD_USES_FSP2_0
	select SOC_INTEL_KABYLAKE

if BOARD_GOOGLE_BASEBOARD_POPPY

config DEVICETREE
	string
	default "variants/nautilus/devicetree.cb" if BOARD_GOOGLE_NAUTILUS
	default "variants/soraka/devicetree.cb" if BOARD_GOOGLE_SORAKA
	default "variants/baseboard/devicetree.cb"

config DRIVER_TPM_I2C_BUS
	depends on VARIANT_HAS_I2C_TPM
	default 0x1

config DRIVER_TPM_I2C_ADDR
	depends on VARIANT_HAS_I2C_TPM
	default 0x50

config DRIVER_TPM_SPI_BUS
	depends on VARIANT_HAS_SPI_TPM
	default 0x1

config GBB_HWID
	string
	depends on CHROMEOS
	default "POPPY TEST 8294" if BOARD_GOOGLE_POPPY
	default "NAUTILUS TEST 3013" if BOARD_GOOGLE_NAUTILUS
	default "SORAKA TEST 1869" if BOARD_GOOGLE_SORAKA

config INCLUDE_NHLT_BLOBS
	bool "Include blobs for audio."
	select NHLT_DMIC_2CH
	select NHLT_DMIC_4CH
	select NHLT_MAX98927
	select NHLT_RT5663

config INCLUDE_NHLT_BLOBS_NAUTILUS
	bool "Include blobs for nautilus audio."
	select NHLT_DA7219

config MAINBOARD_DIR
	string
	default "google/poppy"

config MAINBOARD_FAMILY
	string
	default "Google_Poppy" if BOARD_GOOGLE_POPPY
	default "Google_Nautilus" if BOARD_GOOGLE_NAUTILUS
	default "Google_Soraka" if BOARD_GOOGLE_SORAKA

config MAINBOARD_PART_NUMBER
	string
	default "Poppy" if BOARD_GOOGLE_POPPY
	default "Nautilus" if BOARD_GOOGLE_NAUTILUS
	default "Soraka" if BOARD_GOOGLE_SORAKA

config MAX_CPUS
	int
	default 8

config TPM_TIS_ACPI_INTERRUPT
	int
	default 64  # GPE0_DW2_00 (GPP_E0)

config VARIANT_DIR
	string
	default "poppy" if BOARD_GOOGLE_POPPY
	default "nautilus" if BOARD_GOOGLE_NAUTILUS
	default "soraka" if BOARD_GOOGLE_SORAKA

# Select this option to enable use of cr50 I2C TPM on the variant.
config VARIANT_HAS_I2C_TPM
	bool
	default n
	select I2C_TPM
	select MAINBOARD_HAS_I2C_TPM_CR50
	select TPM2

# Select this option to enable camera ACPI support on the variant.
config VARIANT_HAS_CAMERA_ACPI
	bool
	default n

# Select this option to enable use of cr50 SPI TPM on the variant.
config VARIANT_HAS_SPI_TPM
	bool
	default n
	select MAINBOARD_HAS_SPI_TPM_CR50
	select SPI_TPM
	select TPM2

config VARIANT_SPECIFIC_OPTIONS_POPPY
	def_bool n
	select DRIVERS_I2C_MAX98927
	select NO_FADT_8042
	select VARIANT_HAS_CAMERA_ACPI
	select VARIANT_HAS_I2C_TPM if !VBOOT_MOCK_SECDATA

config VARIANT_SPECIFIC_OPTIONS_NAUTILUS
	def_bool n
	select DRIVERS_I2C_DA7219
	select DRIVERS_PS2_KEYBOARD
	select VARIANT_HAS_I2C_TPM if !VBOOT_MOCK_SECDATA

config VARIANT_SPECIFIC_OPTIONS_SORAKA
	def_bool n
	select DRIVERS_I2C_MAX98927
	select NO_FADT_8042
	select VARIANT_HAS_CAMERA_ACPI
	select VARIANT_HAS_I2C_TPM if !VBOOT_MOCK_SECDATA

config VBOOT
	select EC_GOOGLE_CHROMEEC_SWITCHES
	select HAS_RECOVERY_MRC_CACHE
	select MRC_CLEAR_NORMAL_CACHE_ON_RECOVERY_RETRAIN
	select VBOOT_LID_SWITCH

endif # BOARD_GOOGLE_BASEBOARD_POPPY