Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 1 | ## |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | ## This file is part of the coreboot project. |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 3 | ## |
| 4 | ## Copyright (C) 2007 Philipp Degler <pdegler@rumms.uni-mannheim.de> |
| 5 | ## (Thanks to LSRA University of Mannheim for their support) |
| 6 | ## |
| 7 | ## This program is free software; you can redistribute it and/or modify |
| 8 | ## it under the terms of the GNU General Public License as published by |
| 9 | ## the Free Software Foundation; either version 2 of the License, or |
| 10 | ## (at your option) any later version. |
| 11 | ## |
| 12 | ## This program is distributed in the hope that it will be useful, |
| 13 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | ## GNU General Public License for more details. |
| 16 | ## |
| 17 | ## You should have received a copy of the GNU General Public License |
| 18 | ## along with this program; if not, write to the Free Software |
| 19 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | ## |
| 21 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 22 | uses CONFIG_HAVE_MP_TABLE |
Peter Stuge | 483b7bb | 2009-04-14 07:40:01 +0000 | [diff] [blame] | 23 | uses CONFIG_CBFS |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 24 | uses CONFIG_HAVE_PIRQ_TABLE |
| 25 | uses CONFIG_USE_FALLBACK_IMAGE |
| 26 | uses CONFIG_USE_FAILOVER_IMAGE |
| 27 | uses CONFIG_HAVE_FALLBACK_BOOT |
| 28 | uses CONFIG_HAVE_FAILOVER_BOOT |
| 29 | uses CONFIG_HAVE_HARD_RESET |
| 30 | uses CONFIG_IRQ_SLOT_COUNT |
| 31 | uses CONFIG_HAVE_OPTION_TABLE |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 32 | uses CONFIG_MAX_CPUS |
| 33 | uses CONFIG_MAX_PHYSICAL_CPUS |
| 34 | uses CONFIG_LOGICAL_CPUS |
| 35 | uses CONFIG_IOAPIC |
| 36 | uses CONFIG_SMP |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 37 | uses CONFIG_FALLBACK_SIZE |
| 38 | uses CONFIG_FAILOVER_SIZE |
| 39 | uses CONFIG_ROM_SIZE |
| 40 | uses CONFIG_ROM_SECTION_SIZE |
| 41 | uses CONFIG_ROM_IMAGE_SIZE |
| 42 | uses CONFIG_ROM_SECTION_SIZE |
| 43 | uses CONFIG_ROM_SECTION_OFFSET |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 44 | uses CONFIG_ROM_PAYLOAD |
| 45 | uses CONFIG_ROM_PAYLOAD_START |
| 46 | uses CONFIG_COMPRESSED_PAYLOAD_LZMA |
Myles Watson | 15674b7 | 2007-12-09 17:18:29 +0000 | [diff] [blame] | 47 | uses CONFIG_PRECOMPRESSED_PAYLOAD |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 48 | uses CONFIG_PAYLOAD_SIZE |
| 49 | uses CONFIG_ROMBASE |
| 50 | uses CONFIG_XIP_ROM_SIZE |
| 51 | uses CONFIG_XIP_ROM_BASE |
| 52 | uses CONFIG_STACK_SIZE |
| 53 | uses CONFIG_HEAP_SIZE |
| 54 | uses CONFIG_USE_OPTION_TABLE |
| 55 | uses CONFIG_LB_CKS_RANGE_START |
| 56 | uses CONFIG_LB_CKS_RANGE_END |
| 57 | uses CONFIG_LB_CKS_LOC |
| 58 | uses CONFIG_MAINBOARD_PART_NUMBER |
| 59 | uses CONFIG_MAINBOARD_VENDOR |
| 60 | uses CONFIG_MAINBOARD |
| 61 | uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID |
| 62 | uses CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 63 | uses COREBOOT_EXTRA_VERSION |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 64 | uses CONFIG_RAMBASE |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 65 | uses CONFIG_GDB_STUB |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 66 | uses CONFIG_CROSS_COMPILE |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 67 | uses CC |
Stefan Reinauer | 9dd27bc | 2009-06-30 17:13:58 +0000 | [diff] [blame] | 68 | uses HOSTCC |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 69 | uses CONFIG_OBJCOPY |
| 70 | uses CONFIG_TTYS0_BAUD |
| 71 | uses CONFIG_TTYS0_BASE |
| 72 | uses CONFIG_TTYS0_LCS |
| 73 | uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL |
| 74 | uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL |
| 75 | uses CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 76 | uses CONFIG_CONSOLE_SERIAL8250 |
| 77 | uses CONFIG_CONSOLE_BTEXT |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 78 | uses CONFIG_HAVE_INIT_TIMER |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 79 | uses CONFIG_GDB_STUB |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 80 | uses CONFIG_CONSOLE_VGA |
| 81 | uses CONFIG_PCI_ROM_RUN |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 82 | uses CONFIG_HW_MEM_HOLE_SIZEK |
| 83 | uses CONFIG_USE_DCACHE_RAM |
| 84 | uses CONFIG_DCACHE_RAM_BASE |
| 85 | uses CONFIG_DCACHE_RAM_SIZE |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 86 | uses CONFIG_USE_INIT |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 87 | uses CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 88 | uses CONFIG_AP_CODE_IN_CAR |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 89 | uses CONFIG_MEM_TRAIN_SEQ |
| 90 | uses CONFIG_WAIT_BEFORE_CPUS_INIT |
| 91 | uses CONFIG_ENABLE_APIC_EXT_ID |
| 92 | uses CONFIG_APIC_ID_OFFSET |
| 93 | uses CONFIG_LIFT_BSP_APIC_ID |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 94 | uses CONFIG_PCI_64BIT_PREF_MEM |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 95 | uses CONFIG_HT_CHAIN_UNITID_BASE |
| 96 | uses CONFIG_HT_CHAIN_END_UNITID_BASE |
| 97 | uses CONFIG_SB_HT_CHAIN_ON_BUS0 |
| 98 | uses CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 99 | uses CONFIG_LB_MEM_TOPK |
Carl-Daniel Hailfinger | 93159bf | 2008-12-22 09:53:24 +0000 | [diff] [blame] | 100 | uses CONFIG_USE_PRINTK_IN_CAR |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 101 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 102 | default CONFIG_ROM_SIZE = 512 * 1024 |
Patrick Georgi | b339e10 | 2009-08-11 17:35:02 +0000 | [diff] [blame^] | 103 | default CONFIG_ROM_IMAGE_SIZE = 64 * 1024 - CONFIG_FAILOVER_SIZE |
| 104 | default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 105 | default CONFIG_FAILOVER_SIZE = 4 * 1024 |
| 106 | default CONFIG_HAVE_FALLBACK_BOOT = 1 |
| 107 | default CONFIG_HAVE_FAILOVER_BOOT = 1 |
| 108 | default CONFIG_HAVE_HARD_RESET = 1 |
| 109 | default CONFIG_HAVE_PIRQ_TABLE = 1 |
| 110 | default CONFIG_IRQ_SLOT_COUNT = 13 |
| 111 | default CONFIG_HAVE_MP_TABLE = 1 |
| 112 | default CONFIG_HAVE_OPTION_TABLE = 1 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 113 | # Move the default coreboot CMOS range off of AMD RTC registers. |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 114 | default CONFIG_LB_CKS_RANGE_START = 49 |
| 115 | default CONFIG_LB_CKS_RANGE_END = 122 |
| 116 | default CONFIG_LB_CKS_LOC = 123 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 117 | # SMP support (only worry about 2 micro processors). |
| 118 | default CONFIG_SMP = 1 |
| 119 | default CONFIG_MAX_CPUS = 2 |
| 120 | default CONFIG_MAX_PHYSICAL_CPUS = 1 |
| 121 | default CONFIG_LOGICAL_CPUS = 1 |
| 122 | # 1G memory hole. |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 123 | default CONFIG_HW_MEM_HOLE_SIZEK = 0x100000 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 124 | # HT Unit ID offset, default is 1, the typical one. |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 125 | default CONFIG_HT_CHAIN_UNITID_BASE = 0 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 126 | # Real SB Unit ID, default is 0x20, mean don't touch it at last. |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 127 | # default CONFIG_HT_CHAIN_END_UNITID_BASE = 0x10 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 128 | # Make the SB HT chain on bus 0, default is not (0). |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 129 | default CONFIG_SB_HT_CHAIN_ON_BUS0 = 2 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 130 | # Only offset for SB chain?, default is yes(1). |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 131 | default CONFIG_SB_HT_CHAIN_UNITID_OFFSET_ONLY = 0 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 132 | # default CONFIG_CONSOLE_BTEXT = 1 # BTEXT console |
| 133 | default CONFIG_CONSOLE_VGA = 1 # For VGA console |
| 134 | default CONFIG_PCI_ROM_RUN = 1 # For VGA console |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 135 | default CONFIG_USE_DCACHE_RAM = 1 |
| 136 | default CONFIG_DCACHE_RAM_BASE = 0xc8000 |
| 137 | default CONFIG_DCACHE_RAM_SIZE = 32 * 1024 |
| 138 | default CONFIG_DCACHE_RAM_GLOBAL_VAR_SIZE = 4 * 1024 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 139 | default CONFIG_USE_INIT = 0 |
| 140 | default CONFIG_AP_CODE_IN_CAR = 0 |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 141 | default CONFIG_MEM_TRAIN_SEQ = 2 |
| 142 | default CONFIG_WAIT_BEFORE_CPUS_INIT = 0 |
| 143 | # default CONFIG_ENABLE_APIC_EXT_ID = 0 |
| 144 | # default CONFIG_APIC_ID_OFFSET = 0x10 |
| 145 | # default CONFIG_LIFT_BSP_APIC_ID = 0 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 146 | # default CONFIG_PCI_64BIT_PREF_MEM = 1 |
| 147 | default CONFIG_IOAPIC = 1 |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 148 | default CONFIG_MAINBOARD_PART_NUMBER = "A8N-E" |
| 149 | default CONFIG_MAINBOARD_VENDOR = "ASUS" |
| 150 | default CONFIG_MAINBOARD_PCI_SUBSYSTEM_VENDOR_ID = 0x1043 |
| 151 | default CONFIG_MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID = 0x815a |
| 152 | default CONFIG_STACK_SIZE = 8 * 1024 |
| 153 | default CONFIG_HEAP_SIZE = 16 * 1024 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 154 | # Only use the option table in a normal image. |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 155 | default CONFIG_USE_OPTION_TABLE = (!CONFIG_USE_FALLBACK_IMAGE) && (!CONFIG_USE_FAILOVER_IMAGE) |
| 156 | default CONFIG_RAMBASE = 0x00004000 |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 157 | default CONFIG_ROM_PAYLOAD = 1 |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 158 | default CC = "$(CONFIG_CROSS_COMPILE)gcc -m32" |
Stefan Reinauer | 9dd27bc | 2009-06-30 17:13:58 +0000 | [diff] [blame] | 159 | default HOSTCC = "gcc" |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 160 | default CONFIG_GDB_STUB = 0 |
Carl-Daniel Hailfinger | 93159bf | 2008-12-22 09:53:24 +0000 | [diff] [blame] | 161 | default CONFIG_USE_PRINTK_IN_CAR=1 |
Uwe Hermann | 336935c | 2008-09-30 15:02:40 +0000 | [diff] [blame] | 162 | default CONFIG_CONSOLE_SERIAL8250 = 1 |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 163 | default CONFIG_TTYS0_BAUD = 115200 |
| 164 | default CONFIG_TTYS0_BASE = 0x3f8 |
| 165 | default CONFIG_TTYS0_LCS = 0x3 |
| 166 | default CONFIG_DEFAULT_CONSOLE_LOGLEVEL = 8 |
| 167 | default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL = 8 |
| 168 | default CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL = "MAINBOARD_POWER_ON" |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 169 | |
Ronald G. Minnich | d469cda | 2009-03-31 16:32:01 +0000 | [diff] [blame] | 170 | # |
Peter Stuge | 483b7bb | 2009-04-14 07:40:01 +0000 | [diff] [blame] | 171 | # CBFS |
Ronald G. Minnich | d469cda | 2009-03-31 16:32:01 +0000 | [diff] [blame] | 172 | # |
| 173 | # |
Patrick Georgi | b339e10 | 2009-08-11 17:35:02 +0000 | [diff] [blame^] | 174 | default CONFIG_CBFS=1 |
Philipp Degler | cd3afc0 | 2007-05-24 20:39:48 +0000 | [diff] [blame] | 175 | end |