8297ecff7d8da79efce3493fda1da5336e80b446
[coreboot.git] / src / mainboard / tyan / s2882 / Config.lb
1 uses HAVE_MP_TABLE
2 uses HAVE_PIRQ_TABLE
3 uses USE_FALLBACK_IMAGE
4 uses USE_NORMAL_IMAGE
5 uses AMD8111_DEV
6 uses MAINBOARD
7 uses ARCH
8 uses ENABLE_IOMMU
9 #
10 #
11 ###
12 ### Set all of the defaults for an x86 architecture
13 ###
14 #
15 #
16 ###
17 ### Build the objects we have code for in this directory.
18 ###
19 ##object mainboard.o
20 config chip.h
21 register "fixup_scsi" = "1" 
22 register "fixup_vga" = "1"
23
24
25 driver mainboard.o
26 driver adaptec_scsi.o
27 #driver si_sata.o
28 #driver intel_nic.o
29 object static_devices.o
30 if HAVE_MP_TABLE object mptable.o end
31 if HAVE_PIRQ_TABLE object irq_tables.o end
32 #
33 arch i386 end
34 #cpu k8 end
35 #
36 ###
37 ### Build our 16 bit and 32 bit linuxBIOS entry code
38 ###
39 mainboardinit cpu/i386/entry16.inc
40 mainboardinit cpu/i386/entry32.inc
41 ldscript /cpu/i386/entry16.lds
42 ldscript /cpu/i386/entry32.lds
43 #
44 ###
45 ### Build our reset vector (This is where linuxBIOS is entered)
46 ###
47 if USE_FALLBACK_IMAGE 
48   mainboardinit cpu/i386/reset16.inc 
49   ldscript /cpu/i386/reset16.lds 
50 else
51 #  print "NO FALLBACK USED!"
52 end
53
54 if USE_NORMAL_IMAGE
55   mainboardinit cpu/i386/reset32.inc 
56   ldscript /cpu/i386/reset32.lds 
57 end
58 #
59 #### Should this be in the northbridge code?
60 mainboardinit arch/i386/lib/cpu_reset.inc
61 #
62 ###
63 ### Include an id string (For safe flashing)
64 ###
65 mainboardinit arch/i386/lib/id.inc
66 ldscript /arch/i386/lib/id.lds
67 #
68 ####
69 #### This is the early phase of linuxBIOS startup 
70 #### Things are delicate and we test to see if we should
71 #### failover to another image.
72 ####
73 #option MAX_REBOOT_CNT=2
74 if USE_FALLBACK_IMAGE
75   ldscript /arch/i386/lib/failover.lds 
76 end
77 #
78 ###
79 ### Setup our mtrrs
80 ###
81 mainboardinit cpu/k8/earlymtrr.inc
82 ###
83 ### Only the bootstrap cpu makes it here.
84 ### Failover if we need to 
85 ###
86 #
87 if USE_FALLBACK_IMAGE
88   mainboardinit ./failover.inc
89 #  mainboardinit southbridge/amd/amd8111/cmos_boot_failover.inc 
90 end
91
92 #
93 #
94 ###
95 ### Setup the serial port
96 ###
97 #mainboardinit superiowinbond/w83627hf/setup_serial.inc
98 mainboardinit pc80/serial.inc
99 mainboardinit arch/i386/lib/console.inc
100 #
101 ####
102 #### O.k. We aren't just an intermediary anymore!
103 ####
104 #
105 ###
106 ### When debugging disable the watchdog timer
107 ###
108 ##option MAXIMUM_CONSOLE_LOGLEVEL=7
109 #default MAXIMUM_CONSOLE_LOGLEVEL=7
110 #option DISABLE_WATCHDOG= (MAXIMUM_CONSOLE_LOGLEVEL >= 8) 
111 #if DISABLE_WATCHDOG
112 #  mainboardinit southbridgeamd/amd8111/disable_watchdog.inc 
113 #end
114 #
115 #if USE_FALLBACK_IMAGE mainboardinit arch/i386/lib/noop_failover.inc  end
116 #
117 ###
118 ### Romcc output
119 ###
120 #makerule ./failover.E dep "$(MAINBOARD)/failover.c" act "$(CPP) -I$(TOP)/src $(CPPFLAGS) $(MAINBOARD)/failover.c > ./failever.E"
121 #makerule ./failover.inc dep "./romcc ./failover.E" act "./romcc -O ./failover.E > failover.inc"
122 #mainboardinit .failover.inc
123
124 makerule ./failover.E
125         depends "$(MAINBOARD)/failover.c" 
126         action "$(CPP) -I$(TOP)/src $(ROMCCPPFLAGS) $(CPPFLAGS) $(MAINBOARD)/failover.c > ./failover.E"
127 end
128
129 makerule ./failover.inc
130         depends "./romcc ./failover.E"
131         action "./romcc -O -o failover.inc --label-prefix=failover ./failover.E"end
132
133 makerule ./auto.E 
134         depends "$(MAINBOARD)/auto.c" 
135         action  "$(CPP) -I$(TOP)/src $(ROMCCPPFLAGS) $(CPPFLAGS) $(MAINBOARD)/auto.c > ./auto.E"
136 end
137 makerule ./auto.inc 
138         depends "./romcc ./auto.E"
139         action "./romcc -O -mcpu=k8 -o auto.inc --label-prefix=auto ./auto.E" 
140 #       action  "./romcc -mcpu=k8  -O ./auto.E > auto.inc"
141 end
142 mainboardinit cpu/k8/enable_mmx_sse.inc
143 mainboardinit ./auto.inc
144 mainboardinit cpu/k8/disable_mmx_sse.inc
145 #
146 ###
147 ### Setup RAM
148 ###
149 #mainboardinit ram/ramtest.inc
150 #mainboardinit southbridge/amd/amd8111/smbus.inc
151 #mainboardinit sdram/generic_dump_spd.inc
152 #
153 ###
154 ### Include the secondary Configuration files 
155 ###
156 northbridge amd/amdk8
157 end
158 southbridge amd/amd8111 "amd8111"
159 end
160 southbridge amd/amd8131 "amd8131"
161 end
162 #mainboardinit archi386/smp/secondary.inc
163 #superio NSC/pc87360
164 #       register "com1" = "{1}"
165 #       register "lpt" = "{1}"
166 #end
167 dir /pc80
168 ##dir /src/superio/winbond/w83627hf
169 dir /bioscall
170 dir /cpu/k8
171 cpu k8 "cpu0"
172   register "up" = "{.chip = &amd8131, .ht_width=8, .ht_speed=200}"
173 end
174
175 cpu k8 "cpu1"
176 end
177
178 option ENABLE_IOMMU=1