blob: 44b3940fa7adc593f02895d34683f5a8a6657c80 [file] [log] [blame]
Bruce Griffithb266c6b2014-08-10 23:56:45 -06001#
2# This file is part of the coreboot project.
3#
Marc Jones21cde8b2017-05-07 16:47:36 -06004# Copyright (C) 2013-2017 Sage Electronic Engineering, LLC
Bruce Griffithb266c6b2014-08-10 23:56:45 -06005#
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#
Bruce Griffithb266c6b2014-08-10 23:56:45 -060015
Kyösti Mälkkic81800a2017-07-21 14:39:04 +030016if CPU_AMD_AGESA || CPU_AMD_PI || SOC_AMD_PI
Bruce Griffithb266c6b2014-08-10 23:56:45 -060017
18menu "AMD Platform Initialization"
19
Bruce Griffithb266c6b2014-08-10 23:56:45 -060020choice
21 prompt "AGESA source"
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030022 default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_PI
Marc Jones21cde8b2017-05-07 16:47:36 -060023 default CPU_AMD_AGESA_BINARY_PI if SOC_AMD_PI
Kyösti Mälkkic81800a2017-07-21 14:39:04 +030024 default CPU_AMD_AGESA_OPENSOURCE if CPU_AMD_AGESA
Bruce Griffithb266c6b2014-08-10 23:56:45 -060025 help
26 Select the method for including the AMD Platform Initialization
27 code into coreboot. Platform Initialization code is required for
28 all AMD processors.
29
30config CPU_AMD_AGESA_BINARY_PI
31 bool "binary PI"
Bruce Griffithb266c6b2014-08-10 23:56:45 -060032 help
33 Use a binary PI package. Generally, these will be stored in the
Patrick Georgi26e24cc2015-05-05 22:27:25 +020034 "3rdparty/blobs" directory. For some processors, these must be obtained
Bruce Griffithb266c6b2014-08-10 23:56:45 -060035 directly from AMD Embedded Processors Group
36 (http://www.amdcom/embedded).
37
38config CPU_AMD_AGESA_OPENSOURCE
39 bool "open-source AGESA"
40 help
41 Build the PI package ("AGESA") from source code in the "vendorcode"
42 directory.
43
44endchoice
45
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030046if CPU_AMD_AGESA_BINARY_PI
Marc Jones74234eb2015-07-19 16:20:41 -060047source src/vendorcode/amd/pi/Kconfig
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030048endif
49
Kyösti Mälkki43f6d9d2019-03-14 14:59:31 +020050config AGESA_EXTRA_TIMESTAMPS
51 bool "Add instrumentation for AGESA calls"
52 default n
53 depends on !BINARYPI_LEGACY_WRAPPER
54 depends on DRIVERS_AMD_PI
55 help
56 Insert additional timestamps around each entrypoint into
57 AGESA vendorcode.
58
Bruce Griffithb266c6b2014-08-10 23:56:45 -060059endmenu
60
61endif