Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
| 4 | ## Copyright (C) 2008 LiPPERT Embedded Computers GmbH |
| 5 | ## |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 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 | |
Uwe Hermann | 86c9b88 | 2008-11-19 13:42:14 +0000 | [diff] [blame] | 21 | ## Based on Options.lb from AMD's DB800 mainboard. |
| 22 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 23 | uses CONFIG_HAVE_MP_TABLE |
Peter Stuge | 483b7bb | 2009-04-14 07:40:01 +0000 | [diff] [blame] | 24 | uses CONFIG_CBFS |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 25 | uses CONFIG_HAVE_PIRQ_TABLE |
| 26 | uses CONFIG_USE_FALLBACK_IMAGE |
| 27 | uses CONFIG_HAVE_FALLBACK_BOOT |
| 28 | uses CONFIG_HAVE_HARD_RESET |
| 29 | uses CONFIG_HAVE_OPTION_TABLE |
| 30 | uses CONFIG_USE_OPTION_TABLE |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 31 | uses CONFIG_ROM_PAYLOAD |
| 32 | uses CONFIG_IDE |
| 33 | uses CONFIG_FS_PAYLOAD |
| 34 | uses CONFIG_FS_EXT2 |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 35 | uses CONFIG_AUTOBOOT_DELAY |
| 36 | uses CONFIG_AUTOBOOT_CMDLINE |
| 37 | uses CONFIG_IRQ_SLOT_COUNT |
| 38 | uses CONFIG_MAINBOARD |
| 39 | uses CONFIG_MAINBOARD_VENDOR |
| 40 | uses CONFIG_MAINBOARD_PART_NUMBER |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 41 | uses COREBOOT_EXTRA_VERSION |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 42 | uses CONFIG_ARCH |
| 43 | uses CONFIG_FALLBACK_SIZE |
| 44 | uses CONFIG_STACK_SIZE |
| 45 | uses CONFIG_HEAP_SIZE |
| 46 | uses CONFIG_ROM_SIZE |
| 47 | uses CONFIG_ROM_SECTION_SIZE |
| 48 | uses CONFIG_ROM_IMAGE_SIZE |
| 49 | uses CONFIG_ROM_SECTION_SIZE |
| 50 | uses CONFIG_ROM_SECTION_OFFSET |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 51 | uses CONFIG_ROM_PAYLOAD_START |
| 52 | uses CONFIG_COMPRESS |
| 53 | uses CONFIG_COMPRESSED_PAYLOAD_NRV2B |
| 54 | uses CONFIG_COMPRESSED_PAYLOAD_LZMA |
| 55 | uses CONFIG_PRECOMPRESSED_PAYLOAD |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 56 | uses CONFIG_PAYLOAD_SIZE |
| 57 | uses CONFIG_ROMBASE |
| 58 | uses CONFIG_RAMBASE |
| 59 | uses CONFIG_XIP_ROM_SIZE |
| 60 | uses CONFIG_XIP_ROM_BASE |
| 61 | uses CONFIG_HAVE_MP_TABLE |
| 62 | uses CONFIG_CROSS_COMPILE |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 63 | uses CC |
Stefan Reinauer | 9dd27bc | 2009-06-30 17:13:58 +0000 | [diff] [blame] | 64 | uses HOSTCC |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 65 | uses CONFIG_OBJCOPY |
| 66 | uses CONFIG_DEBUG |
| 67 | uses CONFIG_DEFAULT_CONSOLE_LOGLEVEL |
| 68 | uses CONFIG_MAXIMUM_CONSOLE_LOGLEVEL |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 69 | uses CONFIG_CONSOLE_SERIAL8250 |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 70 | uses CONFIG_TTYS0_BAUD |
| 71 | uses CONFIG_TTYS0_BASE |
| 72 | uses CONFIG_TTYS0_LCS |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 73 | uses CONFIG_UDELAY_TSC |
| 74 | uses CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 |
| 75 | uses CONFIG_CONSOLE_VGA |
| 76 | uses CONFIG_PCI_ROM_RUN |
| 77 | uses CONFIG_VIDEO_MB |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 78 | uses CONFIG_USE_DCACHE_RAM |
| 79 | uses CONFIG_DCACHE_RAM_BASE |
| 80 | uses CONFIG_DCACHE_RAM_SIZE |
Stefan Reinauer | 94875b3 | 2009-04-30 10:16:39 +0000 | [diff] [blame] | 81 | uses CONFIG_USE_PRINTK_IN_CAR |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 82 | uses CONFIG_PIRQ_ROUTE |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 83 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 84 | ## CONFIG_ROM_SIZE is the size of boot ROM that this board will use. |
| 85 | default CONFIG_ROM_SIZE = 512 * 1024 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 86 | |
| 87 | ### |
| 88 | ### Build options |
| 89 | ### |
Uwe Hermann | 86c9b88 | 2008-11-19 13:42:14 +0000 | [diff] [blame] | 90 | default CONFIG_CONSOLE_VGA = 0 |
| 91 | default CONFIG_VIDEO_MB = 8 |
| 92 | default CONFIG_PCI_ROM_RUN = 0 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 93 | |
| 94 | ## |
| 95 | ## Build code for the fallback boot |
| 96 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 97 | default CONFIG_HAVE_FALLBACK_BOOT = 1 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 98 | |
| 99 | ## |
| 100 | ## no MP table |
| 101 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 102 | default CONFIG_HAVE_MP_TABLE = 0 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 103 | |
| 104 | ## |
| 105 | ## Build code to reset the motherboard from coreboot |
| 106 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 107 | default CONFIG_HAVE_HARD_RESET = 0 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 108 | |
| 109 | ## Delay timer options |
| 110 | ## |
Uwe Hermann | 86c9b88 | 2008-11-19 13:42:14 +0000 | [diff] [blame] | 111 | default CONFIG_UDELAY_TSC = 1 |
| 112 | default CONFIG_TSC_X86RDTSC_CALIBRATE_WITH_TIMER2 = 1 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 113 | |
| 114 | ## |
| 115 | ## Build code to export a programmable irq routing table |
| 116 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 117 | default CONFIG_HAVE_PIRQ_TABLE = 1 |
| 118 | default CONFIG_IRQ_SLOT_COUNT = 7 |
| 119 | default CONFIG_PIRQ_ROUTE = 1 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 120 | |
| 121 | ## |
| 122 | ## Build code to export a CMOS option table |
| 123 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 124 | default CONFIG_HAVE_OPTION_TABLE = 0 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 125 | |
| 126 | ### |
| 127 | ### coreboot layout values |
| 128 | ### |
| 129 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 130 | ## CONFIG_ROM_IMAGE_SIZE is the amount of space to allow coreboot to occupy. |
| 131 | default CONFIG_ROM_IMAGE_SIZE = 64 * 1024 |
Patrick Georgi | b339e10 | 2009-08-11 17:35:02 +0000 | [diff] [blame^] | 132 | default CONFIG_FALLBACK_SIZE = CONFIG_ROM_IMAGE_SIZE |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 133 | |
| 134 | ## |
| 135 | ## enable CACHE_AS_RAM specifics |
| 136 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 137 | default CONFIG_USE_DCACHE_RAM = 1 |
| 138 | default CONFIG_DCACHE_RAM_BASE = 0xc8000 |
| 139 | default CONFIG_DCACHE_RAM_SIZE = 0x08000 |
Stefan Reinauer | 94875b3 | 2009-04-30 10:16:39 +0000 | [diff] [blame] | 140 | default CONFIG_USE_PRINTK_IN_CAR=1 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 141 | |
| 142 | ## |
| 143 | ## Use a small 8K stack |
| 144 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 145 | default CONFIG_STACK_SIZE = 8 * 1024 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 146 | |
| 147 | ## |
| 148 | ## Use a small 16K heap |
| 149 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 150 | default CONFIG_HEAP_SIZE = 16 * 1024 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 151 | |
| 152 | ## |
| 153 | ## Only use the option table in a normal image |
| 154 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 155 | #default CONFIG_USE_OPTION_TABLE = !CONFIG_USE_FALLBACK_IMAGE |
| 156 | default CONFIG_USE_OPTION_TABLE = 0 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 157 | |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 158 | default CONFIG_RAMBASE = 0x00004000 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 159 | |
| 160 | default CONFIG_ROM_PAYLOAD = 1 |
| 161 | |
| 162 | ## |
| 163 | ## The default compiler |
| 164 | ## |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 165 | default CONFIG_CROSS_COMPILE = "" |
| 166 | default CC = "$(CONFIG_CROSS_COMPILE)gcc -m32" |
Stefan Reinauer | 9dd27bc | 2009-06-30 17:13:58 +0000 | [diff] [blame] | 167 | default HOSTCC = "gcc" |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 168 | |
| 169 | ## |
| 170 | ## The Serial Console |
| 171 | ## |
| 172 | |
| 173 | # To Enable the Serial Console |
Uwe Hermann | 86c9b88 | 2008-11-19 13:42:14 +0000 | [diff] [blame] | 174 | default CONFIG_CONSOLE_SERIAL8250 = 1 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 175 | |
| 176 | ## Select the serial console baud rate |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 177 | default CONFIG_TTYS0_BAUD = 115200 |
| 178 | #default CONFIG_TTYS0_BAUD = 57600 |
| 179 | #default CONFIG_TTYS0_BAUD = 38400 |
| 180 | #default CONFIG_TTYS0_BAUD = 19200 |
| 181 | #default CONFIG_TTYS0_BAUD = 9600 |
| 182 | #default CONFIG_TTYS0_BAUD = 4800 |
| 183 | #default CONFIG_TTYS0_BAUD = 2400 |
| 184 | #default CONFIG_TTYS0_BAUD = 1200 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 185 | |
| 186 | # Select the serial console base port |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 187 | default CONFIG_TTYS0_BASE = 0x3f8 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 188 | |
| 189 | # Select the serial protocol |
| 190 | # This defaults to 8 data bits, 1 stop bit, and no parity |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 191 | default CONFIG_TTYS0_LCS = 0x3 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 192 | |
| 193 | # Compile extra debugging code |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 194 | default CONFIG_DEBUG = 1 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 195 | |
| 196 | ## |
| 197 | ### Select the coreboot loglevel |
| 198 | ## |
| 199 | ## EMERG 1 system is unusable |
| 200 | ## ALERT 2 action must be taken immediately |
| 201 | ## CRIT 3 critical conditions |
| 202 | ## ERR 4 error conditions |
| 203 | ## WARNING 5 warning conditions |
| 204 | ## NOTICE 6 normal but significant condition |
| 205 | ## INFO 7 informational |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 206 | ## CONFIG_DEBUG 8 debug-level messages |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 207 | ## SPEW 9 Way too many details |
| 208 | |
| 209 | ## Request this level of debugging output |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 210 | default CONFIG_DEFAULT_CONSOLE_LOGLEVEL = 8 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 211 | ## At a maximum only compile in this level of debugging |
Stefan Reinauer | 0867062 | 2009-06-30 15:17:49 +0000 | [diff] [blame] | 212 | default CONFIG_MAXIMUM_CONSOLE_LOGLEVEL = 8 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 213 | |
Ronald G. Minnich | d469cda | 2009-03-31 16:32:01 +0000 | [diff] [blame] | 214 | # |
Peter Stuge | 483b7bb | 2009-04-14 07:40:01 +0000 | [diff] [blame] | 215 | # CBFS |
Ronald G. Minnich | d469cda | 2009-03-31 16:32:01 +0000 | [diff] [blame] | 216 | # |
| 217 | # |
Patrick Georgi | b339e10 | 2009-08-11 17:35:02 +0000 | [diff] [blame^] | 218 | default CONFIG_CBFS=1 |
Jens Rottmann | f31ca16 | 2008-11-19 12:19:09 +0000 | [diff] [blame] | 219 | end |