Frank Vibrans | 420faca | 2011-02-14 18:42:12 +0000 | [diff] [blame] | 1 | # |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 4 | # Copyright (C) 2011 - 2012 Advanced Micro Devices, Inc. |
Frank Vibrans | 420faca | 2011-02-14 18:42:12 +0000 | [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 | # |
| 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 Menzel | a46a712 | 2013-02-23 18:37:27 +0100 | [diff] [blame] | 17 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Frank Vibrans | 420faca | 2011-02-14 18:42:12 +0000 | [diff] [blame] | 18 | # |
| 19 | |
Kyösti Mälkki | d11ca1d | 2012-03-16 15:40:56 +0200 | [diff] [blame] | 20 | config CPU_AMD_AGESA |
Paul Menzel | ea23a6b | 2013-05-02 10:34:49 +0200 | [diff] [blame] | 21 | 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 Wang | 5d7d09c | 2013-07-09 17:08:41 +0800 | [diff] [blame] | 27 | default y if CPU_AMD_AGESA_FAMILY16_KB |
Paul Menzel | ea23a6b | 2013-05-02 10:34:49 +0200 | [diff] [blame] | 28 | default n |
Stefan Reinauer | 0db6820 | 2012-08-07 14:44:51 -0700 | [diff] [blame] | 29 | select TSC_SYNC_LFENCE |
Patrick Georgi | e135ac5 | 2012-11-20 11:53:47 +0100 | [diff] [blame] | 30 | select UDELAY_LAPIC |
Paul Menzel | 60c54cc | 2013-05-01 16:36:56 +0200 | [diff] [blame] | 31 | select LAPIC_MONOTONIC_TIMER |
Kyösti Mälkki | bb6c216 | 2014-04-29 07:15:26 +0300 | [diff] [blame^] | 32 | select SPI_FLASH if HAVE_ACPI_RESUME |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 33 | |
Kyösti Mälkki | d11ca1d | 2012-03-16 15:40:56 +0200 | [diff] [blame] | 34 | if CPU_AMD_AGESA |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 35 | |
Stefan Reinauer | 40f36e0 | 2012-11-15 16:03:27 -0800 | [diff] [blame] | 36 | config UDELAY_IO |
| 37 | bool |
| 38 | default n |
| 39 | |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 40 | config XIP_ROM_SIZE |
| 41 | hex |
| 42 | default 0x100000 |
| 43 | help |
| 44 | Overwride the default write through caching size as 1M Bytes. |
| 45 | On some AMD paltform, one socket support 2 or more kinds of |
| 46 | processor family, compiling several cpu families agesa code |
| 47 | will increase the romstage size. |
| 48 | In order to execute romstage in place on the flash rom, |
| 49 | more space is required to be set as write through caching. |
| 50 | |
Patrick Georgi | e135ac5 | 2012-11-20 11:53:47 +0100 | [diff] [blame] | 51 | config UDELAY_LAPIC_FIXED_FSB |
| 52 | int |
| 53 | default 200 |
| 54 | |
Kyösti Mälkki | c984f4f | 2013-07-29 10:16:14 +0300 | [diff] [blame] | 55 | # TODO: Sync these with definitions in AGESA vendorcode. |
| 56 | # DCACHE_RAM_BASE must equal BSP_STACK_BASE_ADDR. |
| 57 | # DCACHE_RAM_SIZE must equal BSP_STACK_SIZE. |
| 58 | |
| 59 | config DCACHE_RAM_BASE |
| 60 | hex |
| 61 | default 0x30000 |
| 62 | |
| 63 | config DCACHE_RAM_SIZE |
| 64 | hex |
| 65 | default 0x10000 |
Patrick Georgi | 5d41c1a | 2014-04-12 13:04:14 +0200 | [diff] [blame] | 66 | endif # CPU_AMD_AGESA |
Kyösti Mälkki | c984f4f | 2013-07-29 10:16:14 +0300 | [diff] [blame] | 67 | |
efdesign98 | 4b50834 | 2011-07-13 17:16:13 -0700 | [diff] [blame] | 68 | source src/cpu/amd/agesa/family10/Kconfig |
efdesign98 | 7c0c64e | 2011-06-20 19:56:06 -0700 | [diff] [blame] | 69 | source src/cpu/amd/agesa/family12/Kconfig |
efdesign98 | 05a89ab | 2011-06-20 17:38:49 -0700 | [diff] [blame] | 70 | source src/cpu/amd/agesa/family14/Kconfig |
Kerry Sheh | d3e990c | 2012-02-07 20:31:35 +0800 | [diff] [blame] | 71 | source src/cpu/amd/agesa/family15/Kconfig |
zbao | 2c08f6a | 2012-07-02 15:32:58 +0800 | [diff] [blame] | 72 | source src/cpu/amd/agesa/family15tn/Kconfig |
Siyuan Wang | 5d7d09c | 2013-07-09 17:08:41 +0800 | [diff] [blame] | 73 | source src/cpu/amd/agesa/family16kb/Kconfig |
Kyösti Mälkki | f5bb477 | 2012-03-16 15:15:20 +0200 | [diff] [blame] | 74 | |