add Option.lb
[coreboot.git] / src / mainboard / tyan / s2882 / Options.lb
1 uses HAVE_MP_TABLE
2 uses HAVE_PIRQ_TABLE
3 uses USE_FALLBACK_IMAGE
4 uses HAVE_FALLBACK_BOOT
5 uses HAVE_HARD_RESET
6 uses HARD_RESET_BUS
7 uses HARD_RESET_DEVICE
8 uses HARD_RESET_FUNCTION
9 uses IRQ_SLOT_COUNT
10 uses HAVE_OPTION_TABLE
11 uses CONFIG_MAX_CPUS
12 uses CONFIG_IOAPIC
13 uses CONFIG_SMP
14 uses FALLBACK_SIZE
15 uses ROM_SIZE
16 uses ROM_SECTION_SIZE
17 uses ROM_IMAGE_SIZE
18 uses ROM_SECTION_SIZE
19 uses ROM_SECTION_OFFSET
20 uses CONFIG_ROM_STREAM
21 uses CONFIG_ROM_STREAM_START
22 uses PAYLOAD_SIZE
23 uses _ROMBASE
24 uses XIP_ROM_SIZE
25 uses XIP_ROM_BASE
26 uses STACK_SIZE
27 uses HEAP_SIZE
28 uses USE_OPTION_TABLE
29 uses LB_CKS_RANGE_START
30 uses LB_CKS_RANGE_END
31 uses LB_CKS_LOC
32 uses MAINBOARD_PART_NUMBER
33 uses MAINBOARD_VENDOR
34 uses MAINBOARD
35 uses LINUXBIOS_EXTRA_VERSION
36 uses _RAMBASE
37 uses CC
38 uses HOSTCC
39 uses TTYS0_BAUD
40 uses TTYS0_BASE
41 uses TTYS0_LCS
42 uses DEFAULT_CONSOLE_LOGLEVEL
43 uses MAXIMUM_CONSOLE_LOGLEVEL
44 uses MAINBOARD_POWER_ON_AFTER_POWER_FAIL
45 uses CONFIG_CONSOLE_SERIAL8250
46
47
48 ###
49 ### Build options
50 ###
51
52 ##
53 ## ROM_SIZE is the size of boot ROM that this board will use.
54 ##
55 default ROM_SIZE=524288
56
57 ##
58 ## FALLBACK_SIZE is the amount of the ROM the complete fallback image will use
59 ##
60 default FALLBACK_SIZE=131072
61
62 ##
63 ## Build code for the fallback boot
64 ##
65 default HAVE_FALLBACK_BOOT=1
66
67 ##
68 ## Build code to reset the motherboard from linuxBIOS
69 ##
70 default HAVE_HARD_RESET=1
71
72 ##
73 ## Funky hard reset implementation
74 ## 
75 default HARD_RESET_BUS=1
76 default HARD_RESET_DEVICE=4
77 default HARD_RESET_FUNCTION=0
78
79 ##
80 ## Build code to export a programmable irq routing table
81 ##
82 default HAVE_PIRQ_TABLE=1
83 default IRQ_SLOT_COUNT=9
84
85 ##
86 ## Build code to export an x86 MP table
87 ## Useful for specifying IRQ routing values
88 ##
89 default HAVE_MP_TABLE=1
90
91 ##
92 ## Build code to export a CMOS option table
93 ##
94 default HAVE_OPTION_TABLE=1
95
96 ##
97 ## Move the default LinuxBIOS cmos range off of AMD RTC registers
98 ##
99 default LB_CKS_RANGE_START=49
100 default LB_CKS_RANGE_END=122
101 default LB_CKS_LOC=123
102
103 ##
104 ## Build code for SMP support
105 ## Only worry about 2 micro processors
106 ##
107 default CONFIG_SMP=1
108 default CONFIG_MAX_CPUS=2
109
110 ##
111 ## Build code to setup a generic IOAPIC
112 ##
113 default CONFIG_IOAPIC=1
114
115 ##
116 ## Clean up the motherboard id strings
117 ##
118 default MAINBOARD_PART_NUMBER="Tyan"
119 default MAINBOARD_VENDOR="s2882"
120
121 ###
122 ### LinuxBIOS layout values
123 ###
124
125 ## ROM_IMAGE_SIZE is the amount of space to allow linuxBIOS to occupy.
126 default ROM_IMAGE_SIZE = 65536
127
128 ##
129 ## Use a small 8K stack
130 ##
131 default STACK_SIZE=0x2000
132
133 ##
134 ## Use a small 16K heap
135 ##
136 default HEAP_SIZE=0x4000
137
138 ##
139 ## Only use the option table in a normal image
140 ##
141 default USE_OPTION_TABLE = !USE_FALLBACK_IMAGE
142
143 ##
144 ## LinuxBIOS C code runs at this location in RAM
145 ##
146 default _RAMBASE=0x00004000
147
148 ##
149 ## Load the payload from the ROM
150 ##
151 default CONFIG_ROM_STREAM = 1
152
153 ###
154 ### Defaults of options that you may want to override in the target config file
155 ### 
156
157 ##
158 ## The default compiler
159 ##
160 default CC="gcc"
161 default HOSTCC="gcc"
162
163 ##
164 ## The Serial Console
165 ##
166
167 # To Enable the Serial Console
168 default CONFIG_CONSOLE_SERIAL8250=1
169
170 ## Select the serial console baud rate
171 default TTYS0_BAUD=115200
172 #default TTYS0_BAUD=57600
173 #default TTYS0_BAUD=38400
174 #default TTYS0_BAUD=19200
175 #default TTYS0_BAUD=9600
176 #default TTYS0_BAUD=4800
177 #default TTYS0_BAUD=2400
178 #default TTYS0_BAUD=1200
179
180 # Select the serial console base port
181 default TTYS0_BASE=0x3f8
182
183 # Select the serial protocol
184 # This defaults to 8 data bits, 1 stop bit, and no parity
185 default TTYS0_LCS=0x3
186
187 ##
188 ### Select the linuxBIOS loglevel
189 ##
190 ## EMERG      1   system is unusable               
191 ## ALERT      2   action must be taken immediately 
192 ## CRIT       3   critical conditions              
193 ## ERR        4   error conditions                 
194 ## WARNING    5   warning conditions               
195 ## NOTICE     6   normal but significant condition 
196 ## INFO       7   informational                    
197 ## DEBUG      8   debug-level messages             
198 ## SPEW       9   Way too many details             
199
200 ## Request this level of debugging output
201 default  DEFAULT_CONSOLE_LOGLEVEL=8
202 ## At a maximum only compile in this level of debugging
203 default  MAXIMUM_CONSOLE_LOGLEVEL=8
204
205 ##
206 ## Select power on after power fail setting
207 default MAINBOARD_POWER_ON_AFTER_POWER_FAIL="MAINBOARD_POWER_ON"
208
209 ### End Options.lb
210 end