blob: 23786161d3b79989f61aab3e960f9ff62e6cca26 [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001# SPDX-License-Identifier: GPL-2.0-only
Bruce Griffithb266c6b2014-08-10 23:56:45 -06002
Kyösti Mälkkic81800a2017-07-21 14:39:04 +03003if CPU_AMD_AGESA || CPU_AMD_PI || SOC_AMD_PI
Bruce Griffithb266c6b2014-08-10 23:56:45 -06004
5menu "AMD Platform Initialization"
6
Bruce Griffithb266c6b2014-08-10 23:56:45 -06007choice
8 prompt "AGESA source"
Kyösti Mälkkie4c17ce2014-10-21 18:22:32 +03009 default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_PI
Marc Jones21cde8b2017-05-07 16:47:36 -060010 default CPU_AMD_AGESA_BINARY_PI if SOC_AMD_PI
Kyösti Mälkkic81800a2017-07-21 14:39:04 +030011 default CPU_AMD_AGESA_OPENSOURCE if CPU_AMD_AGESA
Bruce Griffithb266c6b2014-08-10 23:56:45 -060012 help
13 Select the method for including the AMD Platform Initialization
14 code into coreboot. Platform Initialization code is required for
15 all AMD processors.
16
17config CPU_AMD_AGESA_BINARY_PI
18 bool "binary PI"
Bruce Griffithb266c6b2014-08-10 23:56:45 -060019 help
20 Use a binary PI package. Generally, these will be stored in the
Patrick Georgi26e24cc2015-05-05 22:27:25 +020021 "3rdparty/blobs" directory. For some processors, these must be obtained
Bruce Griffithb266c6b2014-08-10 23:56:45 -060022 directly from AMD Embedded Processors Group
Paul Menzel62a5ca42020-10-17 10:34:14 +020023 (http://www.amd.com/embedded).
Bruce Griffithb266c6b2014-08-10 23:56:45 -060024
25config CPU_AMD_AGESA_OPENSOURCE
26 bool "open-source AGESA"
27 help
28 Build the PI package ("AGESA") from source code in the "vendorcode"
29 directory.
30
31endchoice
32
Mike Banon3ee99352020-04-17 14:35:20 +030033if CPU_AMD_AGESA_OPENSOURCE
34source "src/vendorcode/amd/agesa/Kconfig"
35endif
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