Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
Marc Jones | 21cde8b | 2017-05-07 16:47:36 -0600 | [diff] [blame] | 4 | # Copyright (C) 2013-2017 Sage Electronic Engineering, LLC |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 5 | # |
| 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 Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 15 | |
Kyösti Mälkki | c81800a | 2017-07-21 14:39:04 +0300 | [diff] [blame] | 16 | if CPU_AMD_AGESA || CPU_AMD_PI || SOC_AMD_PI |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 17 | |
| 18 | menu "AMD Platform Initialization" |
| 19 | |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 20 | choice |
| 21 | prompt "AGESA source" |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 22 | default CPU_AMD_AGESA_BINARY_PI if CPU_AMD_PI |
Marc Jones | 21cde8b | 2017-05-07 16:47:36 -0600 | [diff] [blame] | 23 | default CPU_AMD_AGESA_BINARY_PI if SOC_AMD_PI |
Kyösti Mälkki | c81800a | 2017-07-21 14:39:04 +0300 | [diff] [blame] | 24 | default CPU_AMD_AGESA_OPENSOURCE if CPU_AMD_AGESA |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 25 | 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 | |
| 30 | config CPU_AMD_AGESA_BINARY_PI |
| 31 | bool "binary PI" |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 32 | help |
| 33 | Use a binary PI package. Generally, these will be stored in the |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 34 | "3rdparty/blobs" directory. For some processors, these must be obtained |
Bruce Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 35 | directly from AMD Embedded Processors Group |
| 36 | (http://www.amdcom/embedded). |
| 37 | |
| 38 | config 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 | |
| 44 | endchoice |
| 45 | |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 46 | if CPU_AMD_AGESA_BINARY_PI |
Marc Jones | 74234eb | 2015-07-19 16:20:41 -0600 | [diff] [blame] | 47 | source src/vendorcode/amd/pi/Kconfig |
Kyösti Mälkki | e4c17ce | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 48 | endif |
| 49 | |
Kyösti Mälkki | 43f6d9d | 2019-03-14 14:59:31 +0200 | [diff] [blame^] | 50 | config 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 Griffith | b266c6b | 2014-08-10 23:56:45 -0600 | [diff] [blame] | 59 | endmenu |
| 60 | |
| 61 | endif |