blob: d4017d0fbaf907f407203966fe7642f34b75fe13 [file] [log] [blame]
Bruce Griffithb266c6b2014-08-10 23:56:45 -06001#
2# This file is part of the coreboot project.
3#
Bruce Griffithb266c6b2014-08-10 23:56:45 -06004#
Patrick Georgic49d7a32020-05-08 22:50:46 +02005# SPDX-License-Identifier: GPL-2.0-only
Bruce Griffithb266c6b2014-08-10 23:56:45 -06006
Kyösti Mälkkic81800a2017-07-21 14:39:04 +03007if CPU_AMD_AGESA || CPU_AMD_PI || SOC_AMD_PI
Bruce Griffithb266c6b2014-08-10 23:56:45 -06008
9menu "AMD Platform Initialization"
10
Bruce Griffithb266c6b2014-08-10 23:56:45 -060011choice
12 prompt "AGESA source"
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030013 default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_PI
Marc Jones21cde8b2017-05-07 16:47:36 -060014 default CPU_AMD_AGESA_BINARY_PI if SOC_AMD_PI
Kyösti Mälkkic81800a2017-07-21 14:39:04 +030015 default CPU_AMD_AGESA_OPENSOURCE if CPU_AMD_AGESA
Bruce Griffithb266c6b2014-08-10 23:56:45 -060016 help
17 Select the method for including the AMD Platform Initialization
18 code into coreboot. Platform Initialization code is required for
19 all AMD processors.
20
21config CPU_AMD_AGESA_BINARY_PI
22 bool "binary PI"
Bruce Griffithb266c6b2014-08-10 23:56:45 -060023 help
24 Use a binary PI package. Generally, these will be stored in the
Patrick Georgi26e24cc2015-05-05 22:27:25 +020025 "3rdparty/blobs" directory. For some processors, these must be obtained
Bruce Griffithb266c6b2014-08-10 23:56:45 -060026 directly from AMD Embedded Processors Group
27 (http://www.amdcom/embedded).
28
29config CPU_AMD_AGESA_OPENSOURCE
30 bool "open-source AGESA"
31 help
32 Build the PI package ("AGESA") from source code in the "vendorcode"
33 directory.
34
35endchoice
36
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030037if CPU_AMD_AGESA_BINARY_PI
Patrick Georgi0bb83462019-11-22 20:58:58 +010038source "src/vendorcode/amd/pi/Kconfig"
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +030039endif
40
Kyösti Mälkki43f6d9d2019-03-14 14:59:31 +020041config AGESA_EXTRA_TIMESTAMPS
42 bool "Add instrumentation for AGESA calls"
43 default n
Kyösti Mälkki43f6d9d2019-03-14 14:59:31 +020044 depends on DRIVERS_AMD_PI
45 help
46 Insert additional timestamps around each entrypoint into
47 AGESA vendorcode.
48
Bruce Griffithb266c6b2014-08-10 23:56:45 -060049endmenu
50
51endif