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