blob: 6cc4b2c5205780c68a1f167763fec301afe60d4d [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
20if CPU_AMD_AGESA_00730F01
21
22menu "AMD Platform Initialization"
23
24source src/vendorcode/amd/pi/Kconfig
25
26choice
27 prompt "AGESA source"
28 depends on CPU_AMD_AGESA
29 default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_AGESA_00730F01
30 default CPU_AMD_AGESA_OPENSOURCE
31 help
32 Select the method for including the AMD Platform Initialization
33 code into coreboot. Platform Initialization code is required for
34 all AMD processors.
35
36config CPU_AMD_AGESA_BINARY_PI
37 bool "binary PI"
38 select HUDSON_DISABLE_IMC
39 help
40 Use a binary PI package. Generally, these will be stored in the
41 "3rdparty" directory. For some processors, these must be obtained
42 directly from AMD Embedded Processors Group
43 (http://www.amdcom/embedded).
44
45config CPU_AMD_AGESA_OPENSOURCE
46 bool "open-source AGESA"
47 help
48 Build the PI package ("AGESA") from source code in the "vendorcode"
49 directory.
50
51endchoice
52
53config AGESA_BINARY_PI_PATH_DEFAULT_SELECTED
54 bool
55 depends on CPU_AMD_AGESA_BINARY_PI
56 default n
57
58config AGESA_BINARY_PI_PATH
59 string "AGESA PI directory path"
60 depends on CPU_AMD_AGESA_BINARY_PI
61 default AGESA_BINARY_PI_PATH_DEFAULT if AGESA_BINARY_PI_PATH_DEFAULT_SELECTED
62 help
63 Specify where to find the AGESA headers and binary file
64 for AMD platform initialization.
65
66config AGESA_BINARY_PI_FILE_DEFAULT_SELECTED
67 bool
68 depends on CPU_AMD_AGESA_BINARY_PI
69 default n
70
71config AGESA_BINARY_PI_FILE
72 string "AGESA PI binary file name"
73 depends on CPU_AMD_AGESA_BINARY_PI
74 default AGESA_BINARY_PI_FILE_DEFAULT if AGESA_BINARY_PI_FILE_DEFAULT_SELECTED
75 help
76 Specify the binary file to use for AMD platform initialization.
77
78config AGESA_BINARY_PI_LOCATION_DEFAULT_SELECTED
79 bool
80 depends on CPU_AMD_AGESA_BINARY_PI
81 default n
82
83config AGESA_BINARY_PI_LOCATION
84 string "AGESA PI binary address in ROM"
85 depends on CPU_AMD_AGESA_BINARY_PI
86 default AGESA_BINARY_PI_LOCATION_DEFAULT if AGESA_BINARY_PI_FILE_DEFAULT_SELECTED
87 help
88 Specify the ROM address at which to store the binary Platform
89 Initialization code.
90
91endmenu
92
93endif