summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/Kconfig
blob: d908c198cd5b699783defc21f4fe38b460db28f9 (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
#
# This file is part of the coreboot project.
#
# Copyright (C) 2015-2017 Advanced Micro Devices, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#

config BOARD_GOOGLE_BASEBOARD_KAHLEE
	bool
	select SOC_AMD_STONEYRIDGE_FT4
	select ALWAYS_LOAD_OPROM
	select ALWAYS_RUN_OPROM
	select BOARD_ROMSIZE_KB_16384
	select DRIVERS_I2C_GENERIC
	select EC_GOOGLE_CHROMEEC
	select EC_GOOGLE_CHROMEEC_BOARDID
	select EC_GOOGLE_CHROMEEC_LPC
	select HAVE_ACPI_TABLES
	select GENERIC_SPD_BIN
	select GFXUMA
	select GOOGLE_SMBIOS_MAINBOARD_VERSION
	select MAINBOARD_HAS_CHROMEOS
	select SERIRQ_CONTINUOUS_MODE
	select STONEYRIDGE_UART
	select SOC_AMD_PSP_SELECTABLE_SMU_FW
	select SOC_AMD_SMU_FANLESS
	select HAVE_ACPI_RESUME
	select DRIVERS_GENERIC_BH720
	select MAINBOARD_HAS_I2C_TPM_CR50
	select MAINBOARD_HAS_TPM2
	select DRIVERS_GENERIC_ADAU7002
	select DRIVERS_GENERIC_MAX98357A
	select DRIVERS_I2C_DA7219
	select PCIEXP_ASPM
	select PCIEXP_CLK_PM
	select PCIEXP_COMMON_CLOCK
	select PCIEXP_L1_SUB_STATE
	select HAVE_EM100_SUPPORT

if BOARD_GOOGLE_BASEBOARD_KAHLEE

config MAINBOARD_DIR
	string
	default google/kahlee

config VARIANT_DIR
	string
	default "aleena" if BOARD_GOOGLE_ALEENA
	default "careena" if BOARD_GOOGLE_CAREENA
	default "grunt" if BOARD_GOOGLE_GRUNT

config MAINBOARD_PART_NUMBER
	string
	default "Grunt"

config DEVICETREE
	string
	default "variants/${CONFIG_VARIANT_DIR}/devicetree.cb"

config MAINBOARD_FAMILY
	string
	default "Google_Kahlee"

config FMDFILE
	string
	default "src/mainboard/$(CONFIG_MAINBOARD_DIR)/variants/baseboard/chromeos.fmd" if CHROMEOS
	default ""
	help
	  The build system creates a default FMAP from ROM_SIZE and CBFS_SIZE,
	  but in some cases more complex setups are required.
	  When an fmd is specified, it overrides the default format.

config MAX_CPUS
	int
	default 4

config IRQ_SLOT_COUNT
	int
	default 11

config ONBOARD_VGA_IS_PRIMARY
	bool
	default y

config VBOOT
	select EC_GOOGLE_CHROMEEC_SWITCHES
	select VBOOT_LID_SWITCH

config VBOOT_VBNV_OFFSET
	hex
	default 0x2A

config CHROMEOS
	select LP_DEFCONFIG_OVERRIDE if PAYLOAD_DEPTHCHARGE

config GBB_HWID
	string
	depends on CHROMEOS
	default "ALEENA TEST 7281" if BOARD_GOOGLE_ALEENA
	default "CAREENA TEST 8777" if BOARD_GOOGLE_CAREENA
	default "GRUNT TEST 8296" if BOARD_GOOGLE_GRUNT

config AMD_FWM_POSITION_INDEX
	int
	default 1

config DRIVER_TPM_I2C_BUS
	hex
	default 0x01

config DRIVER_TPM_I2C_ADDR
	hex
	default 0x50

endif # BOARD_GOOGLE_BASEBOARD_KAHLEE