blob: 3a97e602eea1e99f76d215ead8f356d7ae70e1e2 [file] [log] [blame]
zbao246e84b2012-07-13 18:47:03 +08001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2010 Advanced Micro Devices, Inc.
5##
6## This program is free software; you can redistribute it and/or modify
7## it under the terms of the GNU General Public License as published by
8## the Free Software Foundation; version 2 of the License.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13## GNU General Public License for more details.
14##
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18##
19
20config SOUTHBRIDGE_AMD_AGESA_HUDSON
21 bool
22 select IOAPIC
23 select HAVE_USBDEBUG
zbao246e84b2012-07-13 18:47:03 +080024
25config BOOTBLOCK_SOUTHBRIDGE_INIT
26 string
27 default "southbridge/amd/agesa/hudson/bootblock.c"
28 depends on SOUTHBRIDGE_AMD_AGESA_HUDSON
29
30config SOUTHBRIDGE_AMD_HUDSON_SKIP_ISA_DMA_INIT
31 bool
32 default n
33 depends on SOUTHBRIDGE_AMD_AGESA_HUDSON
34
35config EHCI_BAR
36 hex
37 default 0xfef00000 if SOUTHBRIDGE_AMD_AGESA_HUDSON
38
39config EHCI_DEBUG_OFFSET
40 hex
41 default 0xe0 if SOUTHBRIDGE_AMD_AGESA_HUDSON
42
43
44if SOUTHBRIDGE_AMD_AGESA_HUDSON
45
46config HUDSON_XHCI_FWM
47 bool "Add xhci firmware"
48 default y
Marc Jones6c6b2e82012-12-27 15:23:03 -070049 select REQUIRES_BLOB
zbao246e84b2012-07-13 18:47:03 +080050 help
51 Add Hudson 2/3/4 XHCI Firmware to support the onboard usb3.0
zbao246e84b2012-07-13 18:47:03 +080052
53config HUDSON_IMC_FWM
54 bool "Add imc firmware"
55 default y
Marc Jones6c6b2e82012-12-27 15:23:03 -070056 select REQUIRES_BLOB
zbao246e84b2012-07-13 18:47:03 +080057 help
58 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
zbao246e84b2012-07-13 18:47:03 +080059
60config HUDSON_GEC_FWM
61 bool "Add gec firmware"
62 default n
Marc Jones6c6b2e82012-12-27 15:23:03 -070063 select REQUIRES_BLOB
zbao246e84b2012-07-13 18:47:03 +080064 help
65 Add Hudson 2/3/4 GEC Firmware
zbao246e84b2012-07-13 18:47:03 +080066
67config HUDSON_XHCI_FWM_FILE
68 string "XHCI firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080069 default "3rdparty/southbridge/amd/hudson/xhci.bin"
zbao246e84b2012-07-13 18:47:03 +080070 depends on HUDSON_XHCI_FWM
71
72config HUDSON_IMC_FWM_FILE
73 string "IMC firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080074 default "3rdparty/southbridge/amd/hudson/imc.bin"
zbao246e84b2012-07-13 18:47:03 +080075 depends on HUDSON_IMC_FWM
76
77config HUDSON_GEC_FWM_FILE
78 string "GEC firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080079 default "3rdparty/southbridge/amd/hudson/gec.bin"
zbao246e84b2012-07-13 18:47:03 +080080 depends on HUDSON_GEC_FWM
81
82config HUDSON_FWM
83 bool
84 default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM
85 default n if !HUDSON_XHCI_FWM && !HUDSON_IMC_FWM && !HUDSON_GEC_FWM
86
87if HUDSON_FWM
88
89config HUDSON_FWM_POSITION
90 hex "Hudson Firmware rom Position"
91 default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
92 default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
93 default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
94 default 0xFF820000 if BOARD_ROMSIZE_KB_8192
95 default 0xFF020000 if BOARD_ROMSIZE_KB_16384
96 help
Dave Frodinb5786272012-11-06 13:37:08 -070097 Hudson requires the firmware MUST be located at
zbao246e84b2012-07-13 18:47:03 +080098 a specific address (ROM start address + 0x20000), otherwise
99 xhci host Controller can not find or load the xhci firmware.
100
101 The firmware start address is dependent on the ROM chip size.
102 The default offset is 0x20000 from the ROM start address, namely
Dave Frodinb5786272012-11-06 13:37:08 -0700103 0xFFF20000 if flash chip size is 1M
104 0xFFE20000 if flash chip size is 2M
105 0xFFC20000 if flash chip size is 4M
106 0xFF820000 if flash chip size is 8M
107 0xFF020000 if flash chip size is 16M
zbao246e84b2012-07-13 18:47:03 +0800108endif
109
110choice
111 prompt "SATA Mode"
112 default HUDSON_SATA_IDE
113 help
114 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
115 The default is NATIVE.
116
117config HUDSON_SATA_IDE
118 bool "NATIVE"
119 help
120 NATIVE is the default mode and does not require a ROM.
121
122config HUDSON_SATA_RAID
123 bool "RAID"
124 help
125 HUDSON RAID mode must have the two required ROM files.
126
127config HUDSON_SATA_AHCI
128 bool "AHCI"
129 help
130 AHCI may work with or without AHCI ROM. It depends on the payload support.
131 For example, seabios does not require the AHCI ROM.
132
133config HUDSON_SATA_LEGACY_IDE
134 bool "LEGACY IDE"
135 help
136 TODO
137
138config HUDSON_SATA_IDE2AHCI
139 bool "IDE to AHCI"
140 help
141 TODO
142
143config HUDSON_SATA_AHCI7804
144 bool "AHCI7804"
145 help
146 AHCI ROM Required, and AMD driver required in the OS.
147
148config HUDSON_SATA_IDE2AHCI7804
149 bool "IDE to AHCI7804"
150 help
151 AHCI ROM Required, and AMD driver required in the OS.
152endchoice
153
154config HUDSON_SATA_MODE
155 hex
156 depends on (HUDSON_SATA_IDE || HUDSON_SATA_RAID || HUDSON_SATA_AHCI)
157 default "0x0" if HUDSON_SATA_IDE
158 default "0x1" if HUDSON_SATA_RAID
159 default "0x2" if HUDSON_SATA_AHCI
160 default "0x3" if HUDSON_SATA_LEGACY_IDE
161 default "0x4" if HUDSON_SATA_IDE2AHCI
162 default "0x5" if HUDSON_SATA_AHCI7804
163 default "0x6" if HUDSON_SATA_IDE2AHCI7804
164
165if HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804
166config AHCI_ROM_ID
167 string "AHCI device PCI IDs"
168 default "1022,7801" if HUDSON_SATA_AHCI
169 default "1022,7804" if HUDSON_SATA_AHCI7804
170
171config HUDSON_AHCI_ROM
172 bool "Add a AHCI ROM"
173
174config AHCI_ROM_FILE
175 string "AHCI ROM path and filename"
176 depends on HUDSON_AHCI_ROM
177 default "src/southbridge/amd/agesa/hudson/ahci.bin"
178endif
179
180if HUDSON_SATA_RAID
181config RAID_ROM_ID
182 string "RAID device PCI IDs"
183 default "1022,7802"
184 help
185 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
186
187config RAID_ROM_FILE
188 string "RAID ROM path and filename"
189 depends on HUDSON_SATA_RAID
190 default "src/southbridge/amd/agesa/hudson/raid.bin"
191
192config RAID_MISC_ROM_FILE
193 string "RAID Misc ROM path and filename"
194 default "src/southbridge/amd/agesa/hudson/misc.bin"
195 depends on HUDSON_SATA_RAID
196
197config RAID_MISC_ROM_POSITION
198 hex "RAID Misc ROM Position"
199 default 0xFFF00000
200 depends on HUDSON_SATA_RAID
201 help
202 The RAID ROM requires that the MISC ROM is located between the range
203 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
204 The CONFIG_ROM_SIZE must larger than 0x100000.
205endif
206
Zheng Baoeb1d39b2012-08-27 17:45:01 +0800207config S3_VOLATILE_POS
208 hex "S3 volatile storage position"
209 default 0xFFFF0000
210 depends on HAVE_ACPI_RESUME
211 help
212 For a system with S3 feature, the BIOS needs to save some data to
213 non-volitile storage at cold boot stage.
214
zbao246e84b2012-07-13 18:47:03 +0800215endif
Martin Rotheac220f2013-01-16 09:07:30 -0700216
217config HUDSON_LEGACY_FREE
218 bool "System is legacy free"
219 help
220 Select y if there is no keyboard controller in the system.
221 This sets variables in AGESA and ACPI.