blob: ddfe707d79ae092f54f9aa3b09adcbc59a450bde [file] [log] [blame]
Frank Vibrans420faca2011-02-14 18:42:12 +00001#
2# This file is part of the coreboot project.
3#
Frank Vibrans420faca2011-02-14 18:42:12 +00004# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; version 2 of the License.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
Frank Vibrans420faca2011-02-14 18:42:12 +000013
Kyösti Mälkkid11ca1d2012-03-16 15:40:56 +020014config CPU_AMD_AGESA
Paul Menzelea23a6b2013-05-02 10:34:49 +020015 bool
Paul Menzelea23a6b2013-05-02 10:34:49 +020016 default y if CPU_AMD_AGESA_FAMILY14
Paul Menzelea23a6b2013-05-02 10:34:49 +020017 default y if CPU_AMD_AGESA_FAMILY15_TN
Siyuan Wang5d7d09c2013-07-09 17:08:41 +080018 default y if CPU_AMD_AGESA_FAMILY16_KB
Paul Menzelea23a6b2013-05-02 10:34:49 +020019 default n
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070020 select ARCH_BOOTBLOCK_X86_32
Stefan Reinauer77b16552015-01-14 19:51:47 +010021 select ARCH_VERSTAGE_X86_32
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070022 select ARCH_ROMSTAGE_X86_32
23 select ARCH_RAMSTAGE_X86_32
Kyösti Mälkkid4955f02017-09-08 07:14:17 +030024 select DRIVERS_AMD_PI
Stefan Reinauer0db68202012-08-07 14:44:51 -070025 select TSC_SYNC_LFENCE
Patrick Georgie135ac52012-11-20 11:53:47 +010026 select UDELAY_LAPIC
Paul Menzel60c54cc2013-05-01 16:36:56 +020027 select LAPIC_MONOTONIC_TIMER
Kyösti Mälkkibb6c2162014-04-29 07:15:26 +030028 select SPI_FLASH if HAVE_ACPI_RESUME
Kyösti Mälkki898ca042019-11-10 18:20:36 +020029 select CBMEM_STAGE_CACHE if HAVE_ACPI_RESUME
Kyösti Mälkki4d372c72019-07-08 13:48:57 +030030 select SMM_ASEG
Arthur Heymanse33c50d2019-10-06 17:39:44 +020031 select NO_FIXED_XIP_ROM_SIZE
Kerry Shehd3e990c2012-02-07 20:31:35 +080032
Kyösti Mälkkid11ca1d2012-03-16 15:40:56 +020033if CPU_AMD_AGESA
Kerry Shehd3e990c2012-02-07 20:31:35 +080034
Patrick Georgie135ac52012-11-20 11:53:47 +010035config UDELAY_LAPIC_FIXED_FSB
36 int
37 default 200
38
Kyösti Mälkkic984f4f2013-07-29 10:16:14 +030039# TODO: Sync these with definitions in AGESA vendorcode.
40# DCACHE_RAM_BASE must equal BSP_STACK_BASE_ADDR.
41# DCACHE_RAM_SIZE must equal BSP_STACK_SIZE.
42
43config DCACHE_RAM_BASE
44 hex
45 default 0x30000
46
47config DCACHE_RAM_SIZE
48 hex
49 default 0x10000
Kyösti Mälkki4f7cb872014-06-19 03:48:42 +030050
Kyösti Mälkki0e1ea272017-09-01 19:23:35 +030051config ENABLE_MRC_CACHE
52 bool "Use cached memory configuration"
53 default n
54 select SPI_FLASH
55 help
56 Try to restore memory training results
57 from non-volatile memory.
58
Kyösti Mälkki4f7cb872014-06-19 03:48:42 +030059config S3_DATA_POS
60 hex
61 default 0xFFFF0000
62
63config S3_DATA_SIZE
64 int
65 default 32768
66
Patrick Georgi5d41c1a2014-04-12 13:04:14 +020067endif # CPU_AMD_AGESA
Kyösti Mälkkic984f4f2013-07-29 10:16:14 +030068
Patrick Georgi0bb83462019-11-22 20:58:58 +010069source "src/cpu/amd/agesa/family14/Kconfig"
70source "src/cpu/amd/agesa/family15tn/Kconfig"
71source "src/cpu/amd/agesa/family16kb/Kconfig"