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