Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 4 | # |
Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0-only |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 6 | |
Kyösti Mälkki | c81800a | 2017-07-21 14:39:04 +0300 | [diff] [blame] | 7 | if CPU_AMD_AGESA || CPU_AMD_PI || SOC_AMD_PI |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 8 | |
| 9 | menu "AMD Platform Initialization" |
| 10 | |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 11 | choice |
| 12 | prompt "AGESA source" |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 13 | default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_PI |
Marc Jones | 21cde8b | 2017-05-07 16:47:36 -0600 | [diff] [blame] | 14 | default CPU_AMD_AGESA_BINARY_PI if SOC_AMD_PI |
Kyösti Mälkki | c81800a | 2017-07-21 14:39:04 +0300 | [diff] [blame] | 15 | default CPU_AMD_AGESA_OPENSOURCE if CPU_AMD_AGESA |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 16 | 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 | |
| 21 | config CPU_AMD_AGESA_BINARY_PI |
| 22 | bool "binary PI" |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 23 | help |
| 24 | Use a binary PI package. Generally, these will be stored in the |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 25 | "3rdparty/blobs" directory. For some processors, these must be obtained |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 26 | directly from AMD Embedded Processors Group |
| 27 | (http://www.amdcom/embedded). |
| 28 | |
| 29 | config 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 | |
| 35 | endchoice |
| 36 | |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 37 | if CPU_AMD_AGESA_BINARY_PI |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 38 | source "src/vendorcode/amd/pi/Kconfig" |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 39 | endif |
| 40 | |
Kyösti Mälkki | 43f6d9d | 2019-03-14 14:59:31 +0200 | [diff] [blame] | 41 | config AGESA_EXTRA_TIMESTAMPS |
| 42 | bool "Add instrumentation for AGESA calls" |
| 43 | default n |
Kyösti Mälkki | 43f6d9d | 2019-03-14 14:59:31 +0200 | [diff] [blame] | 44 | depends on DRIVERS_AMD_PI |
| 45 | help |
| 46 | Insert additional timestamps around each entrypoint into |
| 47 | AGESA vendorcode. |
| 48 | |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 49 | endmenu |
| 50 | |
| 51 | endif |