Patrick Georgi | c49d7a3 | 2020-05-08 22:50:46 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Frank Vibrans | 420faca | 2011-02-14 18:42:12 +0000 | [diff] [blame] | 2 | |
Kyösti Mälkki | d11ca1d | 2012-03-16 15:40:56 +0200 | [diff] [blame] | 3 | config CPU_AMD_AGESA |
Paul Menzel | ea23a6b | 2013-05-02 10:34:49 +0200 | [diff] [blame] | 4 | bool |
Paul Menzel | ea23a6b | 2013-05-02 10:34:49 +0200 | [diff] [blame] | 5 | default y if CPU_AMD_AGESA_FAMILY14 |
Paul Menzel | ea23a6b | 2013-05-02 10:34:49 +0200 | [diff] [blame] | 6 | default y if CPU_AMD_AGESA_FAMILY15_TN |
Siyuan Wang | 5d7d09c | 2013-07-09 17:08:41 +0800 | [diff] [blame] | 7 | default y if CPU_AMD_AGESA_FAMILY16_KB |
Paul Menzel | ea23a6b | 2013-05-02 10:34:49 +0200 | [diff] [blame] | 8 | default n |
Angel Pons | a32df26 | 2020-09-25 10:20:11 +0200 | [diff] [blame] | 9 | select ARCH_ALL_STAGES_X86_32 |
Angel Pons | 8e035e3 | 2021-06-22 12:58:20 +0200 | [diff] [blame^] | 10 | select ARCH_X86 |
Kyösti Mälkki | d4955f0 | 2017-09-08 07:14:17 +0300 | [diff] [blame] | 11 | select DRIVERS_AMD_PI |
Stefan Reinauer | 0db6820 | 2012-08-07 14:44:51 -0700 | [diff] [blame] | 12 | select TSC_SYNC_LFENCE |
Patrick Georgi | e135ac5 | 2012-11-20 11:53:47 +0100 | [diff] [blame] | 13 | select UDELAY_LAPIC |
Paul Menzel | 60c54cc | 2013-05-01 16:36:56 +0200 | [diff] [blame] | 14 | select LAPIC_MONOTONIC_TIMER |
Kyösti Mälkki | bb6c216 | 2014-04-29 07:15:26 +0300 | [diff] [blame] | 15 | select SPI_FLASH if HAVE_ACPI_RESUME |
Kyösti Mälkki | 4d372c7 | 2019-07-08 13:48:57 +0300 | [diff] [blame] | 16 | select SMM_ASEG |
Michał Żygowski | a3ce27d | 2019-11-27 22:29:44 +0100 | [diff] [blame] | 17 | select SSE2 |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 18 | |
Kyösti Mälkki | d11ca1d | 2012-03-16 15:40:56 +0200 | [diff] [blame] | 19 | if CPU_AMD_AGESA |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 20 | |
Patrick Georgi | e135ac5 | 2012-11-20 11:53:47 +0100 | [diff] [blame] | 21 | config UDELAY_LAPIC_FIXED_FSB |
| 22 | int |
| 23 | default 200 |
| 24 | |
Kyösti Mälkki | c984f4f | 2013-07-29 10:16:14 +0300 | [diff] [blame] | 25 | # TODO: Sync these with definitions in AGESA vendorcode. |
| 26 | # DCACHE_RAM_BASE must equal BSP_STACK_BASE_ADDR. |
| 27 | # DCACHE_RAM_SIZE must equal BSP_STACK_SIZE. |
| 28 | |
| 29 | config DCACHE_RAM_BASE |
| 30 | hex |
| 31 | default 0x30000 |
| 32 | |
| 33 | config DCACHE_RAM_SIZE |
| 34 | hex |
| 35 | default 0x10000 |
Kyösti Mälkki | 4f7cb87 | 2014-06-19 03:48:42 +0300 | [diff] [blame] | 36 | |
Michał Żygowski | 1b12b64 | 2019-11-24 16:32:05 +0100 | [diff] [blame] | 37 | config DCACHE_BSP_STACK_SIZE |
| 38 | hex |
| 39 | default 0x4000 |
| 40 | |
Kyösti Mälkki | 0e1ea27 | 2017-09-01 19:23:35 +0300 | [diff] [blame] | 41 | config ENABLE_MRC_CACHE |
| 42 | bool "Use cached memory configuration" |
| 43 | default n |
| 44 | select SPI_FLASH |
| 45 | help |
| 46 | Try to restore memory training results |
| 47 | from non-volatile memory. |
| 48 | |
Kyösti Mälkki | 4f7cb87 | 2014-06-19 03:48:42 +0300 | [diff] [blame] | 49 | config S3_DATA_POS |
| 50 | hex |
| 51 | default 0xFFFF0000 |
| 52 | |
| 53 | config S3_DATA_SIZE |
| 54 | int |
Kyösti Mälkki | 6b9cff4 | 2019-12-03 08:21:30 +0200 | [diff] [blame] | 55 | default 8192 |
Kyösti Mälkki | 4f7cb87 | 2014-06-19 03:48:42 +0300 | [diff] [blame] | 56 | |
Patrick Georgi | 5d41c1a | 2014-04-12 13:04:14 +0200 | [diff] [blame] | 57 | endif # CPU_AMD_AGESA |
Kyösti Mälkki | c984f4f | 2013-07-29 10:16:14 +0300 | [diff] [blame] | 58 | |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 59 | source "src/cpu/amd/agesa/family14/Kconfig" |
| 60 | source "src/cpu/amd/agesa/family15tn/Kconfig" |
| 61 | source "src/cpu/amd/agesa/family16kb/Kconfig" |