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