blob: 7d98d0e9b78fb338fbdc9bb3b193d845c1674d37 [file] [log] [blame]
Furquan Shaikh06cd9032016-12-14 12:10:21 -08001
Furquan Shaikh3189ea62017-04-13 13:36:59 -07002config BOARD_GOOGLE_BASEBOARD_POPPY
3 def_bool n
Furquan Shaikh06cd9032016-12-14 12:10:21 -08004 select BOARD_ROMSIZE_KB_16384
Furquan Shaikhbb1e5392018-01-11 20:29:38 -08005 select DRIVERS_GENERIC_GPIO_KEYS
Furquan Shaikh97535552017-02-17 20:25:46 -08006 select DRIVERS_I2C_GENERIC
Furquan Shaikh5360c7e2017-02-19 01:18:09 -08007 select DRIVERS_I2C_HID
Furquan Shaikh06cd9032016-12-14 12:10:21 -08008 select EC_GOOGLE_CHROMEEC
Furquan Shaikha4ab6652017-09-25 08:06:56 -07009 select EC_GOOGLE_CHROMEEC_BOARDID
Furquan Shaikh06cd9032016-12-14 12:10:21 -080010 select EC_GOOGLE_CHROMEEC_LPC
11 select HAVE_ACPI_RESUME
12 select HAVE_ACPI_TABLES
13 select MAINBOARD_HAS_CHROMEOS
14 select MAINBOARD_USES_FSP2_0
Rizwan Qureshib2b98f72017-02-09 16:32:20 +053015 select SOC_INTEL_KABYLAKE
Furquan Shaikh06cd9032016-12-14 12:10:21 -080016
Furquan Shaikh3189ea62017-04-13 13:36:59 -070017if BOARD_GOOGLE_BASEBOARD_POPPY
18
Furquan Shaikhdaec14d2018-03-12 06:33:55 -070019config CHROMEOS_WIFI_SAR
20 bool
21 depends on CHROMEOS
22 select DSAR_ENABLE
23 select SAR_ENABLE
24 select USE_SAR
25
Furquan Shaikh76c392d2017-04-13 14:15:56 -070026config DEVICETREE
27 string
Furquan Shaikh903472c2017-12-04 17:41:44 -080028 default "variants/nami/devicetree.cb" if BOARD_GOOGLE_NAMI
Chris Wang5547c372017-10-05 21:57:16 +080029 default "variants/nautilus/devicetree.cb" if BOARD_GOOGLE_NAUTILUS
Furquan Shaikh88880722017-05-01 14:23:37 -070030 default "variants/soraka/devicetree.cb" if BOARD_GOOGLE_SORAKA
Furquan Shaikh76c392d2017-04-13 14:15:56 -070031 default "variants/baseboard/devicetree.cb"
32
Furquan Shaikh553f7fb2017-05-01 15:47:06 -070033config DRIVER_TPM_I2C_BUS
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -080034 depends on VARIANT_HAS_I2C_TPM
Furquan Shaikhd271afc2017-05-16 01:40:00 -070035 default 0x1
Furquan Shaikh553f7fb2017-05-01 15:47:06 -070036
37config DRIVER_TPM_I2C_ADDR
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -080038 depends on VARIANT_HAS_I2C_TPM
Furquan Shaikh553f7fb2017-05-01 15:47:06 -070039 default 0x50
40
Furquan Shaikh3189ea62017-04-13 13:36:59 -070041config DRIVER_TPM_SPI_BUS
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -080042 depends on VARIANT_HAS_SPI_TPM
Furquan Shaikh3189ea62017-04-13 13:36:59 -070043 default 0x1
Furquan Shaikh06cd9032016-12-14 12:10:21 -080044
Furquan Shaikh06cd9032016-12-14 12:10:21 -080045config GBB_HWID
46 string
47 depends on CHROMEOS
Furquan Shaikh3189ea62017-04-13 13:36:59 -070048 default "POPPY TEST 8294" if BOARD_GOOGLE_POPPY
Furquan Shaikh903472c2017-12-04 17:41:44 -080049 default "NAMI TEST 1669" if BOARD_GOOGLE_NAMI
Chris Wang5547c372017-10-05 21:57:16 +080050 default "NAUTILUS TEST 3013" if BOARD_GOOGLE_NAUTILUS
YH Lin22b22b62017-04-18 15:32:55 -070051 default "SORAKA TEST 1869" if BOARD_GOOGLE_SORAKA
Furquan Shaikh06cd9032016-12-14 12:10:21 -080052
Rizwan Qureshi2f5446b2017-01-13 22:30:01 +053053config INCLUDE_NHLT_BLOBS
54 bool "Include blobs for audio."
55 select NHLT_DMIC_2CH
56 select NHLT_DMIC_4CH
57 select NHLT_MAX98927
58 select NHLT_RT5663
Furquan Shaikh3189ea62017-04-13 13:36:59 -070059
Chris Wang5547c372017-10-05 21:57:16 +080060config INCLUDE_NHLT_BLOBS_NAUTILUS
61 bool "Include blobs for nautilus audio."
Naveen Manohar351059a2017-11-04 03:16:42 +053062 select NHLT_DA7219
Naveen Manohar3417ee92017-11-14 00:35:21 +053063 select NHLT_DMIC_4CH
64 select NHLT_MAX98357
Chris Wang5547c372017-10-05 21:57:16 +080065
Gaggery Tsaiff9005b2017-12-13 16:47:57 +080066config INCLUDE_NHLT_BLOBS_NAMI
67 bool "Include blobs for nami audio."
68 select NHLT_DA7219
69 select NHLT_DMIC_4CH
70 select NHLT_MAX98357
71
Furquan Shaikh3189ea62017-04-13 13:36:59 -070072config MAINBOARD_DIR
73 string
74 default "google/poppy"
75
76config MAINBOARD_FAMILY
77 string
78 default "Google_Poppy" if BOARD_GOOGLE_POPPY
Furquan Shaikh903472c2017-12-04 17:41:44 -080079 default "Google_Nami" if BOARD_GOOGLE_NAMI
Chris Wang5547c372017-10-05 21:57:16 +080080 default "Google_Nautilus" if BOARD_GOOGLE_NAUTILUS
YH Lin22b22b62017-04-18 15:32:55 -070081 default "Google_Soraka" if BOARD_GOOGLE_SORAKA
Furquan Shaikh3189ea62017-04-13 13:36:59 -070082
83config MAINBOARD_PART_NUMBER
84 string
85 default "Poppy" if BOARD_GOOGLE_POPPY
Furquan Shaikh903472c2017-12-04 17:41:44 -080086 default "Nami" if BOARD_GOOGLE_NAMI
Chris Wang5547c372017-10-05 21:57:16 +080087 default "Nautilus" if BOARD_GOOGLE_NAUTILUS
YH Lin22b22b62017-04-18 15:32:55 -070088 default "Soraka" if BOARD_GOOGLE_SORAKA
Furquan Shaikh3189ea62017-04-13 13:36:59 -070089
90config MAX_CPUS
91 int
92 default 8
Furquan Shaikh82010832017-04-10 21:27:21 -070093
Furquan Shaikh553f7fb2017-05-01 15:47:06 -070094config TPM_TIS_ACPI_INTERRUPT
95 int
96 default 64 # GPE0_DW2_00 (GPP_E0)
97
Furquan Shaikh76c392d2017-04-13 14:15:56 -070098config VARIANT_DIR
99 string
100 default "poppy" if BOARD_GOOGLE_POPPY
Furquan Shaikh903472c2017-12-04 17:41:44 -0800101 default "nami" if BOARD_GOOGLE_NAMI
Chris Wang5547c372017-10-05 21:57:16 +0800102 default "nautilus" if BOARD_GOOGLE_NAUTILUS
YH Lin22b22b62017-04-18 15:32:55 -0700103 default "soraka" if BOARD_GOOGLE_SORAKA
Furquan Shaikh76c392d2017-04-13 14:15:56 -0700104
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -0800105# Select this option to enable use of cr50 I2C TPM on the variant.
106config VARIANT_HAS_I2C_TPM
107 bool
108 default n
109 select I2C_TPM
110 select MAINBOARD_HAS_I2C_TPM_CR50
111 select TPM2
112
Furquan Shaikhfc20ee42017-12-04 12:43:19 -0800113# Select this option to enable camera ACPI support on the variant.
114config VARIANT_HAS_CAMERA_ACPI
115 bool
116 default n
117
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -0800118# Select this option to enable use of cr50 SPI TPM on the variant.
119config VARIANT_HAS_SPI_TPM
120 bool
121 default n
122 select MAINBOARD_HAS_SPI_TPM_CR50
123 select SPI_TPM
124 select TPM2
125
Furquan Shaikhf3b97c52017-12-04 12:22:25 -0800126config VARIANT_SPECIFIC_OPTIONS_POPPY
127 def_bool n
128 select DRIVERS_I2C_MAX98927
129 select NO_FADT_8042
Furquan Shaikhfc20ee42017-12-04 12:43:19 -0800130 select VARIANT_HAS_CAMERA_ACPI
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -0800131 select VARIANT_HAS_I2C_TPM if !VBOOT_MOCK_SECDATA
Furquan Shaikhf3b97c52017-12-04 12:22:25 -0800132
Furquan Shaikh903472c2017-12-04 17:41:44 -0800133config VARIANT_SPECIFIC_OPTIONS_NAMI
134 def_bool n
Gaggery Tsaiff9005b2017-12-13 16:47:57 +0800135 select DRIVERS_GENERIC_MAX98357A
136 select DRIVERS_I2C_DA7219
Furquan Shaikh903472c2017-12-04 17:41:44 -0800137 select DRIVERS_PS2_KEYBOARD
138 select DRIVERS_SPI_ACPI
Furquan Shaikh55fa54d2017-12-11 23:34:45 -0800139 select EXCLUDE_NATIVE_SD_INTERFACE
Furquan Shaikh903472c2017-12-04 17:41:44 -0800140 select VARIANT_HAS_SPI_TPM if !VBOOT_MOCK_SECDATA
141
Furquan Shaikhf3b97c52017-12-04 12:22:25 -0800142config VARIANT_SPECIFIC_OPTIONS_NAUTILUS
143 def_bool n
Furquan Shaikhdaec14d2018-03-12 06:33:55 -0700144 select CHROMEOS_WIFI_SAR if CHROMEOS
Naveen Manohar1533dfd2017-10-12 15:50:21 +0900145 select DRIVERS_GENERIC_MAX98357A
Furquan Shaikhf3b97c52017-12-04 12:22:25 -0800146 select DRIVERS_I2C_DA7219
147 select DRIVERS_PS2_KEYBOARD
Andy Yehbc81b672017-12-14 13:14:35 +0800148 select VARIANT_HAS_CAMERA_ACPI
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -0800149 select VARIANT_HAS_I2C_TPM if !VBOOT_MOCK_SECDATA
Furquan Shaikhf3b97c52017-12-04 12:22:25 -0800150
151config VARIANT_SPECIFIC_OPTIONS_SORAKA
152 def_bool n
153 select DRIVERS_I2C_MAX98927
154 select NO_FADT_8042
Furquan Shaikhfc20ee42017-12-04 12:43:19 -0800155 select VARIANT_HAS_CAMERA_ACPI
Furquan Shaikhe7b0dce2017-12-04 12:36:15 -0800156 select VARIANT_HAS_I2C_TPM if !VBOOT_MOCK_SECDATA
Furquan Shaikhf3b97c52017-12-04 12:22:25 -0800157
Furquan Shaikh3189ea62017-04-13 13:36:59 -0700158config VBOOT
159 select EC_GOOGLE_CHROMEEC_SWITCHES
Furquan Shaikh8ac19c82017-04-25 22:48:31 -0700160 select HAS_RECOVERY_MRC_CACHE
161 select MRC_CLEAR_NORMAL_CACHE_ON_RECOVERY_RETRAIN
Furquan Shaikh3189ea62017-04-13 13:36:59 -0700162 select VBOOT_LID_SWITCH
163
164endif # BOARD_GOOGLE_BASEBOARD_POPPY