mb/*/*/acpi_tables: Remove unnecessary function call
[coreboot.git] / src / mainboard / google / oak / Kconfig
blobdc12816d6c4f624313b6475034dae67c7b9adedf
1 ##
2 ## This file is part of the coreboot project.
3 ##
4 ## Copyright 2015 MediaTek Inc.
5 ##
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.
9 ##
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
17         def_bool n
19 if BOARD_GOOGLE_OAK_COMMON
21 config OTHERS_HAVE_TPM1
22         bool
23         default y
24         select MAINBOARD_HAS_I2C_TPM_GENERIC
25         select MAINBOARD_HAS_TPM1
27 config OAK_HAS_TPM2
28         bool
29         default n
30         select MAINBOARD_HAS_I2C_TPM_CR50
31         select MAINBOARD_HAS_TPM2
33 config BOARD_SPECIFIC_OPTIONS
34         def_bool y
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
45         select SPI_FLASH
47 config VBOOT
48         select EC_GOOGLE_CHROMEEC_SWITCHES
49         select VBOOT_VBNV_FLASH
51 config MAINBOARD_DIR
52         string
53         default "google/oak"
55 config EC_GOOGLE_CHROMEEC_SPI_BUS
56         hex
57         default 0x0
59 config DRIVER_TPM_I2C_BUS
60         hex
61         default 0x2
63 config DRIVER_TPM_I2C_ADDR
64         hex
65         default 0x20 if !OAK_HAS_TPM2
66         default 0x50 if OAK_HAS_TPM2
68 config BOOT_DEVICE_SPI_FLASH_BUS
69         int
70         default 9
72 config EC_GOOGLE_CHROMEEC_BOARDNAME
73         string
74         default "oak"
76 config EC_GOOGLE_CHROMEEC_PD_BOARDNAME
77         string
78         default "oak_pd"
80 ##########################################################
81 #### Update below when adding a new derivative board. ####
82 ##########################################################
83 config MAINBOARD_PART_NUMBER
84         string
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
91         int
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