blob: d9ac731275e994108945bceac2a94fee1758fb0a [file] [log] [blame]
Bruce Griffithb266c6b2014-08-10 23:56:45 -06001#
2# This file is part of the coreboot project.
3#
4# Copyright (C) 2013-2014 Sage Electronic Engineering, LLC
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.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18#
19
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030020if CPU_AMD_PI
Bruce Griffithb266c6b2014-08-10 23:56:45 -060021
22menu "AMD Platform Initialization"
23
24source src/vendorcode/amd/pi/Kconfig
25
26choice
27 prompt "AGESA source"
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030028 default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_PI
Bruce Griffithb266c6b2014-08-10 23:56:45 -060029 default CPU_AMD_AGESA_OPENSOURCE
30 help
31 Select the method for including the AMD Platform Initialization
32 code into coreboot. Platform Initialization code is required for
33 all AMD processors.
34
35config CPU_AMD_AGESA_BINARY_PI
36 bool "binary PI"
37 select HUDSON_DISABLE_IMC
38 help
39 Use a binary PI package. Generally, these will be stored in the
40 "3rdparty" directory. For some processors, these must be obtained
41 directly from AMD Embedded Processors Group
42 (http://www.amdcom/embedded).
43
44config CPU_AMD_AGESA_OPENSOURCE
45 bool "open-source AGESA"
46 help
47 Build the PI package ("AGESA") from source code in the "vendorcode"
48 directory.
49
50endchoice
51
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030052if CPU_AMD_AGESA_BINARY_PI
53
Bruce Griffithb266c6b2014-08-10 23:56:45 -060054config AGESA_BINARY_PI_PATH_DEFAULT_SELECTED
55 bool
Bruce Griffithb266c6b2014-08-10 23:56:45 -060056 default n
57
58config AGESA_BINARY_PI_PATH
59 string "AGESA PI directory path"
Bruce Griffithb266c6b2014-08-10 23:56:45 -060060 default AGESA_BINARY_PI_PATH_DEFAULT if AGESA_BINARY_PI_PATH_DEFAULT_SELECTED
61 help
62 Specify where to find the AGESA headers and binary file
63 for AMD platform initialization.
64
65config AGESA_BINARY_PI_FILE_DEFAULT_SELECTED
66 bool
Bruce Griffithb266c6b2014-08-10 23:56:45 -060067 default n
68
69config AGESA_BINARY_PI_FILE
70 string "AGESA PI binary file name"
Bruce Griffithb266c6b2014-08-10 23:56:45 -060071 default AGESA_BINARY_PI_FILE_DEFAULT if AGESA_BINARY_PI_FILE_DEFAULT_SELECTED
72 help
73 Specify the binary file to use for AMD platform initialization.
74
75config AGESA_BINARY_PI_LOCATION_DEFAULT_SELECTED
76 bool
Bruce Griffithb266c6b2014-08-10 23:56:45 -060077 default n
78
79config AGESA_BINARY_PI_LOCATION
80 string "AGESA PI binary address in ROM"
Bruce Griffithb266c6b2014-08-10 23:56:45 -060081 default AGESA_BINARY_PI_LOCATION_DEFAULT if AGESA_BINARY_PI_FILE_DEFAULT_SELECTED
82 help
83 Specify the ROM address at which to store the binary Platform
84 Initialization code.
85
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030086endif
87
Bruce Griffithb266c6b2014-08-10 23:56:45 -060088endmenu
89
90endif