- Updates to config.g so that it works more reliably and has initial support
[coreboot.git] / src / mainboard / amd / quartet / Config.lb
1 uses HAVE_MP_TABLE
2 uses HAVE_PIRQ_TABLE
3 uses USE_FALLBACK_IMAGE
4 #
5 #
6 ###
7 ### Set all of the defaults for an x86 architecture
8 ###
9 #
10 #
11 ###
12 ### Build the objects we have code for in this directory.
13 ###
14 ##object mainboard.o
15 driver mainboard.o
16 object static_devices.o
17 if HAVE_MP_TABLE object mptable.o end
18 if HAVE_PIRQ_TABLE object irq_tables.o end
19 #
20 arch i386 end
21 #cpu k8 end
22 #
23 ###
24 ### Build our 16 bit and 32 bit linuxBIOS entry code
25 ###
26 mainboardinit cpu/i386/entry16.inc
27 mainboardinit cpu/i386/entry32.inc
28 ldscript /cpu/i386/entry16.lds
29 ldscript /cpu/i386/entry32.lds
30 #
31 ###
32 ### Build our reset vector (This is where linuxBIOS is entered)
33 ###
34 if USE_FALLBACK_IMAGE 
35         mainboardinit cpu/i386/reset16.inc 
36         ldscript /cpu/i386/reset16.lds 
37 else
38         mainboardinit cpu/i386/reset32.inc 
39         ldscript /cpu/i386/reset32.lds 
40 end
41 #
42 #### Should this be in the northbridge code?
43 mainboardinit arch/i386/lib/cpu_reset.inc
44 ###
45 ### Setup the serial port
46 ###
47 #mainboardinit superiowinbond/w83627hf/setup_serial.inc
48 mainboardinit pc80/serial.inc
49 mainboardinit arch/i386/lib/console.inc
50 #
51 ###
52 ### Include an id string (For safe flashing)
53 ###
54 mainboardinit arch/i386/lib/id.inc
55 ldscript /arch/i386/lib/id.lds
56 #
57 ####
58 #### This is the early phase of linuxBIOS startup 
59 #### Things are delicate and we test to see if we should
60 #### failover to another image.
61 ####
62 #option MAX_REBOOT_CNT=2
63 if USE_FALLBACK_IMAGE
64   ldscript /arch/i386/lib/failover.lds 
65 end
66 #
67 ###
68 ### Setup our mtrrs
69 ###
70 mainboardinit cpu/k8/earlymtrr.inc
71 #
72 #
73 ####
74 #### O.k. We aren't just an intermediary anymore!
75 ####
76 #
77 ###
78 ### When debugging disable the watchdog timer
79 ###
80 ##option MAXIMUM_CONSOLE_LOGLEVEL=7
81 #default MAXIMUM_CONSOLE_LOGLEVEL=7
82 #
83 if USE_FALLBACK_IMAGE mainboardinit arch/i386/lib/noop_failover.inc  end
84 #
85 ###
86 ### Romcc output
87 ###
88 #makerule ./failover.E dep "$(MAINBOARD)/failover.c" act "$(CPP) -I$(TOP)/src $(CPPFLAGS) $(MAINBOARD)/failover.c > ./failever.E"
89 #makerule ./failover.inc dep "./romcc ./failover.E" act "./romcc -O ./failover.E > failover.inc"
90 #mainboardinit .failover.inc
91 makerule ./auto.E 
92         depends "$(MAINBOARD)/auto.c" 
93         action  "$(CPP) -I$(TOP)/src $(ROMCCPPFLAGS) $(CPPFLAGS) $(MAINBOARD)/auto.c > ./auto.E"
94 end
95 makerule ./auto.inc 
96         depends "./romcc ./auto.E" 
97         action  "./romcc -O ./auto.E > auto.inc"
98 end
99 mainboardinit ./auto.inc
100 #
101 ###
102 ### Include the secondary Configuration files 
103 ###
104 northbridge amd/amdk8
105 end
106 southbridge amd/amd8111
107 end
108 #mainboardinit archi386/smp/secondary.inc
109 superio NSC/pc87360
110         register ".com1={1}, .com2={0}, .floppy=1, .lpt=1, .keyboard=1"
111 end
112 dir /pc80
113 ##dir /src/superio/winbond/w83627hf
114 cpu p5 end
115 cpu p6 end
116 cpu k7 end
117 cpu k8 end
118