2 ## This file is part of the coreboot project.
4 ## Copyright 2015 MediaTek Inc.
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; version 2 of the License.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
16 config BOARD_GOOGLE_OAK_COMMON
19 if BOARD_GOOGLE_OAK_COMMON
21 config OTHERS_HAVE_TPM1
24 select MAINBOARD_HAS_I2C_TPM_GENERIC
25 select MAINBOARD_HAS_TPM1
30 select MAINBOARD_HAS_I2C_TPM_CR50
31 select MAINBOARD_HAS_TPM2
33 config BOARD_SPECIFIC_OPTIONS
35 select SOC_MEDIATEK_MT8173
36 select BOARD_ROMSIZE_KB_4096
37 select COMMON_CBFS_SPI_WRAPPER
38 select DRIVER_PARADE_PS8640
39 select EC_GOOGLE_CHROMEEC
40 select EC_GOOGLE_CHROMEEC_SPI
41 select MAINBOARD_HAS_NATIVE_VGA_INIT
42 select MAINBOARD_FORCE_NATIVE_VGA_INIT
43 select HAVE_LINEAR_FRAMEBUFFER
44 select MAINBOARD_HAS_CHROMEOS
48 select EC_GOOGLE_CHROMEEC_SWITCHES
49 select VBOOT_VBNV_FLASH
55 config EC_GOOGLE_CHROMEEC_SPI_BUS
59 config DRIVER_TPM_I2C_BUS
63 config DRIVER_TPM_I2C_ADDR
65 default 0x20 if !OAK_HAS_TPM2
66 default 0x50 if OAK_HAS_TPM2
68 config BOOT_DEVICE_SPI_FLASH_BUS
72 config EC_GOOGLE_CHROMEEC_BOARDNAME
76 config EC_GOOGLE_CHROMEEC_PD_BOARDNAME
80 ##########################################################
81 #### Update below when adding a new derivative board. ####
82 ##########################################################
83 config MAINBOARD_PART_NUMBER
85 default "Oak" if BOARD_GOOGLE_OAK
86 default "Elm" if BOARD_GOOGLE_ELM
87 default "Hana" if BOARD_GOOGLE_HANA
89 # All Oak-derivatives count their board IDs as 0 being equivalent to Oak rev6.
90 config BOARD_ID_ADJUSTMENT
92 default 0 if BOARD_GOOGLE_OAK
93 default 7 if BOARD_GOOGLE_ELM
94 default 11 if BOARD_GOOGLE_HANA
96 endif # BOARD_GOOGLE_OAK