Ronald G. Minnich | cbc95f3 | 2007-09-09 19:43:31 +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. |
Ronald G. Minnich | cbc95f3 | 2007-09-09 19:43:31 +0000 | [diff] [blame] | 3 | ## |
| 4 | ## Copyright (C) 2006-2007 Ronald G. Minnich <rminnich@gmail.com> |
| 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; either version 2 of the License, or |
| 9 | ## (at your option) any later version. |
| 10 | ## |
| 11 | ## This program is distributed in the hope that it will be useful, |
| 12 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | ## GNU General Public License for more details. |
| 15 | ## |
| 16 | ## You should have received a copy of the GNU General Public License |
| 17 | ## along with this program; if not, write to the Free Software |
| 18 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | ## |
| 20 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 21 | uses CONFIG_HAVE_MP_TABLE |
Peter Stuge | 483b7bb | 2009-04-14 07:40:01 +0000 | [diff] [blame] | 22 | uses CONFIG_CBFS |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 23 | uses CONFIG_HAVE_PIRQ_TABLE |
| 24 | uses CONFIG_USE_FALLBACK_IMAGE |
| 25 | uses CONFIG_HAVE_FALLBACK_BOOT |
| 26 | uses CONFIG_HAVE_HARD_RESET |
| 27 | uses CONFIG_HAVE_OPTION_TABLE |
| 28 | uses CONFIG_USE_OPTION_TABLE |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 29 | uses CONFIG_ROM_PAYLOAD |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 30 | uses CONFIG_IRQ_SLOT_COUNT |
| 31 | uses CONFIG_MAINBOARD |
| 32 | uses CONFIG_MAINBOARD_VENDOR |
| 33 | uses CONFIG_MAINBOARD_PART_NUMBER |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 34 | uses COREBOOT_EXTRA_VERSION |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 35 | uses CONFIG_ARCH |
| 36 | uses CONFIG_FALLBACK_SIZE |
| 37 | uses CONFIG_STACK_SIZE |
| 38 | uses CONFIG_HEAP_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 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 44 | uses CONFIG_ROM_PAYLOAD_START |
| 45 | uses CONFIG_COMPRESSED_PAYLOAD_NRV2B |
| 46 | uses CONFIG_COMPRESSED_PAYLOAD_LZMA |
| 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_RAMBASE |
| 51 | uses CONFIG_XIP_ROM_SIZE |
| 52 | uses CONFIG_XIP_ROM_BASE |
| 53 | uses CONFIG_HAVE_MP_TABLE |
| 54 | uses CONFIG_CROSS_COMPILE |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 55 | uses CC |
Stefan Reinauer | 9dd27bc | 2009-06-30 17:13:58 +0000 | [diff] [blame] | 56 | uses HOSTCC |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 57 | uses CONFIG_OBJCOPY |
| 58 | uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL |
| 59 | uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 60 | uses CONFIG_CONSOLE_SERIAL8250 |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 61 | uses CONFIG_TTYS0_BAUD |
| 62 | uses CONFIG_TTYS0_BASE |
| 63 | uses CONFIG_TTYS0_LCS |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 64 | uses CONFIG_UDELAY_TSC |
| 65 | uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 |
| 66 | uses CONFIG_CONSOLE_VGA |
| 67 | uses CONFIG_PCI_ROM_RUN |
| 68 | uses CONFIG_VIDEO_MB |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 69 | uses CONFIG_USE_DCACHE_RAM |
| 70 | uses CONFIG_DCACHE_RAM_BASE |
| 71 | uses CONFIG_DCACHE_RAM_SIZE |
Stefan Reinauer | 94875b3 | 2009-04-30 10:16:39 +0000 | [diff] [blame] | 72 | uses CONFIG_USE_PRINTK_IN_CAR |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 73 | uses CONFIG_PIRQ_ROUTE |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 74 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 75 | ## CONFIG_ROM_SIZE is the size of boot ROM that this board will use. |
| 76 | default CONFIG_ROM_SIZE = 512*1024 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 77 | |
| 78 | ### |
| 79 | ### Build options |
| 80 | ### |
| 81 | default CONFIG_CONSOLE_VGA=0 |
| 82 | default CONFIG_VIDEO_MB=8 |
| 83 | default CONFIG_PCI_ROM_RUN=0 |
| 84 | |
| 85 | ## |
| 86 | ## Build code for the fallback boot |
| 87 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 88 | default CONFIG_HAVE_FALLBACK_BOOT=1 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 89 | |
| 90 | ## |
| 91 | ## no MP table |
| 92 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 93 | default CONFIG_HAVE_MP_TABLE=0 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 94 | |
| 95 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 96 | ## Build code to reset the motherboard from coreboot |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 97 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 98 | default CONFIG_HAVE_HARD_RESET=0 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 99 | |
| 100 | ## Delay timer options |
| 101 | ## |
| 102 | default CONFIG_UDELAY_TSC=1 |
| 103 | default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2=1 |
| 104 | |
| 105 | ## |
| 106 | ## Build code to export a programmable irq routing table |
| 107 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 108 | default CONFIG_HAVE_PIRQ_TABLE=1 |
| 109 | default CONFIG_IRQ_SLOT_COUNT=5 |
| 110 | default CONFIG_PIRQ_ROUTE=1 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 111 | ## |
| 112 | ## Build code to export a CMOS option table |
| 113 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 114 | default CONFIG_HAVE_OPTION_TABLE=0 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 115 | |
| 116 | ### |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 117 | ### coreboot layout values |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 118 | ### |
| 119 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 120 | ## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy. |
| 121 | default CONFIG_ROM_IMAGE_SIZE = 65536 |
Patrick Georgi | b339e10 | 2009-08-11 17:35:02 +0000 | [diff] [blame^] | 122 | default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 123 | |
| 124 | ## |
| 125 | ## enable CACHE_AS_RAM specifics |
| 126 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 127 | default CONFIG_USE_DCACHE_RAM=1 |
| 128 | default CONFIG_DCACHE_RAM_BASE=0xc8000 |
| 129 | default CONFIG_DCACHE_RAM_SIZE=0x08000 |
Stefan Reinauer | 94875b3 | 2009-04-30 10:16:39 +0000 | [diff] [blame] | 130 | default CONFIG_USE_PRINTK_IN_CAR=1 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 131 | |
| 132 | ## |
| 133 | ## Use a small 8K stack |
| 134 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 135 | default CONFIG_STACK_SIZE=0x2000 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 136 | |
| 137 | ## |
| 138 | ## Use a small 16K heap |
| 139 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 140 | default CONFIG_HEAP_SIZE=0x4000 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 141 | |
| 142 | ## |
| 143 | ## Only use the option table in a normal image |
| 144 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 145 | #default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE |
| 146 | default CONFIG_USE_OPTION_TABLE = 0 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 147 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 148 | default CONFIG_RAMBASE = 0x00004000 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 149 | |
| 150 | default CONFIG_ROM_PAYLOAD = 1 |
| 151 | |
| 152 | ## |
| 153 | ## The default compiler |
| 154 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 155 | default CONFIG_CROSS_COMPILE="" |
| 156 | default CC="$(CONFIG_CROSS_COMPILE)gcc -m32" |
Stefan Reinauer | 9dd27bc | 2009-06-30 17:13:58 +0000 | [diff] [blame] | 157 | default HOSTCC="gcc" |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 158 | |
| 159 | ## |
| 160 | ## The Serial Console |
| 161 | ## |
| 162 | |
| 163 | # To Enable the Serial Console |
| 164 | default CONFIG_CONSOLE_SERIAL8250=1 |
| 165 | |
| 166 | ## Select the serial console baud rate |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 167 | default CONFIG_TTYS0_BAUD=115200 |
| 168 | #default CONFIG_TTYS0_BAUD=57600 |
| 169 | #default CONFIG_TTYS0_BAUD=38400 |
| 170 | #default CONFIG_TTYS0_BAUD=19200 |
| 171 | #default CONFIG_TTYS0_BAUD=9600 |
| 172 | #default CONFIG_TTYS0_BAUD=4800 |
| 173 | #default CONFIG_TTYS0_BAUD=2400 |
| 174 | #default CONFIG_TTYS0_BAUD=1200 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 175 | |
| 176 | # Select the serial console base port |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 177 | default CONFIG_TTYS0_BASE=0x3f8 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 178 | |
| 179 | # Select the serial protocol |
| 180 | # This defaults to 8 data bits, 1 stop bit, and no parity |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 181 | default CONFIG_TTYS0_LCS=0x3 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 182 | |
| 183 | ## |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 184 | ### Select the coreboot loglevel |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 185 | ## |
| 186 | ## EMERG 1 system is unusable |
| 187 | ## ALERT 2 action must be taken immediately |
| 188 | ## CRIT 3 critical conditions |
| 189 | ## ERR 4 error conditions |
| 190 | ## WARNING 5 warning conditions |
| 191 | ## NOTICE 6 normal but significant condition |
| 192 | ## INFO 7 informational |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 193 | ## CONFIG_DEBUG 8 debug-level messages |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 194 | ## SPEW 9 Way too many details |
| 195 | |
| 196 | ## Request this level of debugging output |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 197 | default CONFIG_DEFAULT_CONSOLE_LOGLEVEL=8 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 198 | ## At a maximum only compile in this level of debugging |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 199 | default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=8 |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 200 | |
Ronald G. Minnich | 6226f13 | 2007-09-08 18:32:53 +0000 | [diff] [blame] | 201 | |
Ronald G. Minnich | d469cda | 2009-03-31 16:32:01 +0000 | [diff] [blame] | 202 | # |
Peter Stuge | 483b7bb | 2009-04-14 07:40:01 +0000 | [diff] [blame] | 203 | # CBFS |
Ronald G. Minnich | d469cda | 2009-03-31 16:32:01 +0000 | [diff] [blame] | 204 | # |
| 205 | # |
Patrick Georgi | b339e10 | 2009-08-11 17:35:02 +0000 | [diff] [blame^] | 206 | default CONFIG_CBFS=1 |
Ronald G. Minnich | d469cda | 2009-03-31 16:32:01 +0000 | [diff] [blame] | 207 | end |