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