blob: b53e4b0feee454f12793af6f33c329999162c4b5 [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#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
Paul Menzela46a7122013-02-23 18:37:27 +010017# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Frank Vibrans420faca2011-02-14 18:42:12 +000018#
19
Kyösti Mälkkid11ca1d2012-03-16 15:40:56 +020020config CPU_AMD_AGESA
Paul Menzelea23a6b2013-05-02 10:34:49 +020021 bool
22 default y if CPU_AMD_AGESA_FAMILY10
23 default y if CPU_AMD_AGESA_FAMILY12
24 default y if CPU_AMD_AGESA_FAMILY14
25 default y if CPU_AMD_AGESA_FAMILY15
26 default y if CPU_AMD_AGESA_FAMILY15_TN
Siyuan Wang5d7d09c2013-07-09 17:08:41 +080027 default y if CPU_AMD_AGESA_FAMILY16_KB
Paul Menzelea23a6b2013-05-02 10:34:49 +020028 default n
Furquan Shaikh99ac98f2014-04-23 10:18:48 -070029 select ARCH_BOOTBLOCK_X86_32
30 select ARCH_ROMSTAGE_X86_32
31 select ARCH_RAMSTAGE_X86_32
Stefan Reinauer0db68202012-08-07 14:44:51 -070032 select TSC_SYNC_LFENCE
Patrick Georgie135ac52012-11-20 11:53:47 +010033 select UDELAY_LAPIC
Paul Menzel60c54cc2013-05-01 16:36:56 +020034 select LAPIC_MONOTONIC_TIMER
Kyösti Mälkkibb6c2162014-04-29 07:15:26 +030035 select SPI_FLASH if HAVE_ACPI_RESUME
Kerry Shehd3e990c2012-02-07 20:31:35 +080036
Kyösti Mälkkid11ca1d2012-03-16 15:40:56 +020037if CPU_AMD_AGESA
Kerry Shehd3e990c2012-02-07 20:31:35 +080038
Stefan Reinauer40f36e02012-11-15 16:03:27 -080039config UDELAY_IO
40 bool
41 default n
42
Kerry Shehd3e990c2012-02-07 20:31:35 +080043config XIP_ROM_SIZE
44 hex
45 default 0x100000
46 help
47 Overwride the default write through caching size as 1M Bytes.
48 On some AMD paltform, one socket support 2 or more kinds of
49 processor family, compiling several cpu families agesa code
50 will increase the romstage size.
51 In order to execute romstage in place on the flash rom,
52 more space is required to be set as write through caching.
53
Patrick Georgie135ac52012-11-20 11:53:47 +010054config UDELAY_LAPIC_FIXED_FSB
55 int
56 default 200
57
Kyösti Mälkkic984f4f2013-07-29 10:16:14 +030058# TODO: Sync these with definitions in AGESA vendorcode.
59# DCACHE_RAM_BASE must equal BSP_STACK_BASE_ADDR.
60# DCACHE_RAM_SIZE must equal BSP_STACK_SIZE.
61
62config DCACHE_RAM_BASE
63 hex
64 default 0x30000
65
66config DCACHE_RAM_SIZE
67 hex
68 default 0x10000
Kyösti Mälkki4f7cb872014-06-19 03:48:42 +030069
70config S3_DATA_POS
71 hex
72 default 0xFFFF0000
73
74config S3_DATA_SIZE
75 int
76 default 32768
77
Patrick Georgi5d41c1a2014-04-12 13:04:14 +020078endif # CPU_AMD_AGESA
Kyösti Mälkkic984f4f2013-07-29 10:16:14 +030079
efdesign984b508342011-07-13 17:16:13 -070080source src/cpu/amd/agesa/family10/Kconfig
efdesign987c0c64e2011-06-20 19:56:06 -070081source src/cpu/amd/agesa/family12/Kconfig
efdesign9805a89ab2011-06-20 17:38:49 -070082source src/cpu/amd/agesa/family14/Kconfig
Kerry Shehd3e990c2012-02-07 20:31:35 +080083source src/cpu/amd/agesa/family15/Kconfig
zbao2c08f6a2012-07-02 15:32:58 +080084source src/cpu/amd/agesa/family15tn/Kconfig
Siyuan Wang5d7d09c2013-07-09 17:08:41 +080085source src/cpu/amd/agesa/family16kb/Kconfig
Kyösti Mälkkif5bb4772012-03-16 15:15:20 +020086