Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 2 | |
Kyösti Mälkki | c81800a | 2017-07-21 14:39:04 +0300 | [diff] [blame] | 3 | if CPU_AMD_AGESA || CPU_AMD_PI || SOC_AMD_PI |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 4 | |
| 5 | menu "AMD Platform Initialization" |
| 6 | |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 7 | choice |
| 8 | prompt "AGESA source" |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 9 | default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_PI |
Marc Jones | 21cde8b | 2017-05-07 16:47:36 -0600 | [diff] [blame] | 10 | default CPU_AMD_AGESA_BINARY_PI if SOC_AMD_PI |
Kyösti Mälkki | c81800a | 2017-07-21 14:39:04 +0300 | [diff] [blame] | 11 | default CPU_AMD_AGESA_OPENSOURCE if CPU_AMD_AGESA |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 12 | 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 | |
| 17 | config CPU_AMD_AGESA_BINARY_PI |
| 18 | bool "binary PI" |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 19 | help |
| 20 | Use a binary PI package. Generally, these will be stored in the |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 21 | "3rdparty/blobs" directory. For some processors, these must be obtained |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 22 | directly from AMD Embedded Processors Group |
Paul Menzel | 62a5ca4 | 2020-10-17 10:34:14 +0200 | [diff] [blame] | 23 | (http://www.amd.com/embedded). |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 24 | |
| 25 | config 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 | |
| 31 | endchoice |
| 32 | |
Mike Banon | 3ee9935 | 2020-04-17 14:35:20 +0300 | [diff] [blame] | 33 | if CPU_AMD_AGESA_OPENSOURCE |
| 34 | source "src/vendorcode/amd/agesa/Kconfig" |
| 35 | endif |
| 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 |