blob: 4605dd3ba9b7bcd7e46e54ac8a7a21adfda996fa [file] [log] [blame]
Frank Vibrans420faca2011-02-14 18:42:12 +00001#
2# This file is part of the coreboot project.
3#
Kerry Shehd3e990c2012-02-07 20:31:35 +08004# Copyright (C) 2011 - 2012 Advanced Micro Devices, Inc.
Frank Vibrans420faca2011-02-14 18:42:12 +00005#
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#
Frank Vibrans420faca2011-02-14 18:42:12 +000015
Kyösti Mälkkid11ca1d2012-03-16 15:40:56 +020016config CPU_AMD_AGESA
Paul Menzelea23a6b2013-05-02 10:34:49 +020017 bool
Paul Menzelea23a6b2013-05-02 10:34:49 +020018 default y if CPU_AMD_AGESA_FAMILY12
19 default y if CPU_AMD_AGESA_FAMILY14
20 default y if CPU_AMD_AGESA_FAMILY15
21 default y if CPU_AMD_AGESA_FAMILY15_TN
Siyuan Wang5d7d09c2013-07-09 17:08:41 +080022 default y if CPU_AMD_AGESA_FAMILY16_KB
Paul Menzelea23a6b2013-05-02 10:34:49 +020023 default n
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070024 select ARCH_BOOTBLOCK_X86_32
Stefan Reinauer77b16552015-01-14 19:51:47 +010025 select ARCH_VERSTAGE_X86_32
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070026 select ARCH_ROMSTAGE_X86_32
27 select ARCH_RAMSTAGE_X86_32
Kyösti Mälkkid4955f02017-09-08 07:14:17 +030028 select DRIVERS_AMD_PI
Stefan Reinauer0db68202012-08-07 14:44:51 -070029 select TSC_SYNC_LFENCE
Patrick Georgie135ac52012-11-20 11:53:47 +010030 select UDELAY_LAPIC
Paul Menzel60c54cc2013-05-01 16:36:56 +020031 select LAPIC_MONOTONIC_TIMER
Kyösti Mälkkibb6c2162014-04-29 07:15:26 +030032 select SPI_FLASH if HAVE_ACPI_RESUME
Kyösti Mälkki63fac812017-09-02 16:41:43 +030033 select POSTCAR_STAGE if !AGESA_LEGACY_WRAPPER
Kerry Shehd3e990c2012-02-07 20:31:35 +080034
Kyösti Mälkkid11ca1d2012-03-16 15:40:56 +020035if CPU_AMD_AGESA
Kerry Shehd3e990c2012-02-07 20:31:35 +080036
Kyösti Mälkki967d94d2016-11-22 11:52:14 +020037config AGESA_LEGACY
38 def_bool n
39
Kyösti Mälkki28c4d2f2016-11-25 11:21:02 +020040config AGESA_LEGACY_WRAPPER
41 bool
42 default AGESA_LEGACY
43
Kyösti Mälkki967d94d2016-11-22 11:52:14 +020044config AGESA_NO_LEGACY
45 bool
46 default !AGESA_LEGACY
47
Kerry Shehd3e990c2012-02-07 20:31:35 +080048config XIP_ROM_SIZE
49 hex
50 default 0x100000
51 help
52 Overwride the default write through caching size as 1M Bytes.
Daniele Forsi53847a22014-07-22 18:00:56 +020053 On some AMD platforms, one socket supports 2 or more kinds of
54 processor family, compiling several CPU families agesa code
Kerry Shehd3e990c2012-02-07 20:31:35 +080055 will increase the romstage size.
Daniele Forsi53847a22014-07-22 18:00:56 +020056 In order to execute romstage in place on the flash ROM,
Kerry Shehd3e990c2012-02-07 20:31:35 +080057 more space is required to be set as write through caching.
58
Patrick Georgie135ac52012-11-20 11:53:47 +010059config UDELAY_LAPIC_FIXED_FSB
60 int
61 default 200
62
Kyösti Mälkkic984f4f2013-07-29 10:16:14 +030063# TODO: Sync these with definitions in AGESA vendorcode.
64# DCACHE_RAM_BASE must equal BSP_STACK_BASE_ADDR.
65# DCACHE_RAM_SIZE must equal BSP_STACK_SIZE.
66
67config DCACHE_RAM_BASE
68 hex
69 default 0x30000
70
71config DCACHE_RAM_SIZE
72 hex
73 default 0x10000
Kyösti Mälkki4f7cb872014-06-19 03:48:42 +030074
75config S3_DATA_POS
76 hex
77 default 0xFFFF0000
78
79config S3_DATA_SIZE
80 int
81 default 32768
82
Patrick Georgi5d41c1a2014-04-12 13:04:14 +020083endif # CPU_AMD_AGESA
Kyösti Mälkkic984f4f2013-07-29 10:16:14 +030084
efdesign987c0c64e2011-06-20 19:56:06 -070085source src/cpu/amd/agesa/family12/Kconfig
efdesign9805a89ab2011-06-20 17:38:49 -070086source src/cpu/amd/agesa/family14/Kconfig
Kerry Shehd3e990c2012-02-07 20:31:35 +080087source src/cpu/amd/agesa/family15/Kconfig
zbao2c08f6a2012-07-02 15:32:58 +080088source src/cpu/amd/agesa/family15tn/Kconfig
Siyuan Wang5d7d09c2013-07-09 17:08:41 +080089source src/cpu/amd/agesa/family16kb/Kconfig