blob: 5cb17223f73e6c16b1909fcb82056a329a07b15b [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
Paul Menzela46a7122013-02-23 18:37:27 +010017## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
zbao246e84b2012-07-13 18:47:03 +080018##
19
20config SOUTHBRIDGE_AMD_AGESA_HUDSON
21 bool
22 select IOAPIC
23 select HAVE_USBDEBUG
Kyösti Mälkki56892fc2013-06-16 17:12:37 +030024 select HAVE_HARD_RESET
zbao246e84b2012-07-13 18:47:03 +080025
Siyuan Wang91571452013-07-09 17:32:42 +080026config SOUTHBRIDGE_AMD_AGESA_YANGTZE
27 bool
28 select IOAPIC
29 select HAVE_USBDEBUG
30 select HAVE_HARD_RESET
31
32if SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030033
zbao246e84b2012-07-13 18:47:03 +080034config BOOTBLOCK_SOUTHBRIDGE_INIT
35 string
36 default "southbridge/amd/agesa/hudson/bootblock.c"
zbao246e84b2012-07-13 18:47:03 +080037
38config SOUTHBRIDGE_AMD_HUDSON_SKIP_ISA_DMA_INIT
39 bool
40 default n
zbao246e84b2012-07-13 18:47:03 +080041
42config EHCI_BAR
43 hex
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030044 default 0xfef00000
zbao246e84b2012-07-13 18:47:03 +080045
46config EHCI_DEBUG_OFFSET
47 hex
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030048 default 0xe0
zbao246e84b2012-07-13 18:47:03 +080049
Dave Frodin1fa19042013-06-14 07:11:40 -060050config HUDSON_XHCI_ENABLE
51 bool "Enable Hudson XHCI Controller"
52 default y
53 help
54 The XHCI controller must be enabled and the XHCI firmware
55 must be added in order to have USB 3.0 support configured
56 by coreboot. The OS will be responsible for enabling the XHCI
57 controller if the the XHCI firmware is available but the
58 XHCI controller is not enabled by coreboot.
59
zbao246e84b2012-07-13 18:47:03 +080060config HUDSON_XHCI_FWM
61 bool "Add xhci firmware"
62 default y
Dave Frodin1fa19042013-06-14 07:11:40 -060063 help
64 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
zbao246e84b2012-07-13 18:47:03 +080065
66config HUDSON_IMC_FWM
67 bool "Add imc firmware"
68 default y
69 help
70 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
zbao246e84b2012-07-13 18:47:03 +080071
72config HUDSON_GEC_FWM
Bruce Griffith5c2025c2013-04-23 14:31:55 -060073 bool
zbao246e84b2012-07-13 18:47:03 +080074 default n
75 help
Bruce Griffith5c2025c2013-04-23 14:31:55 -060076 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
77 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
zbao246e84b2012-07-13 18:47:03 +080078
79config HUDSON_XHCI_FWM_FILE
80 string "XHCI firmware path and filename"
Siyuan Wang91571452013-07-09 17:32:42 +080081 default "3rdparty/southbridge/amd/hudson/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
82 default "3rdparty/southbridge/amd/yangtze/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080083 depends on HUDSON_XHCI_FWM
84
85config HUDSON_IMC_FWM_FILE
86 string "IMC firmware path and filename"
Siyuan Wang91571452013-07-09 17:32:42 +080087 default "3rdparty/southbridge/amd/hudson/imc.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
88 default "3rdparty/southbridge/amd/yangtze/imc.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080089 depends on HUDSON_IMC_FWM
90
91config HUDSON_GEC_FWM_FILE
92 string "GEC firmware path and filename"
Siyuan Wang91571452013-07-09 17:32:42 +080093 default "3rdparty/southbridge/amd/hudson/gec.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
94 default "3rdparty/southbridge/amd/yangtze/gec.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080095 depends on HUDSON_GEC_FWM
96
97config HUDSON_FWM
98 bool
99 default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM
100 default n if !HUDSON_XHCI_FWM && !HUDSON_IMC_FWM && !HUDSON_GEC_FWM
101
102if HUDSON_FWM
103
104config HUDSON_FWM_POSITION
105 hex "Hudson Firmware rom Position"
106 default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
107 default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
108 default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
109 default 0xFF820000 if BOARD_ROMSIZE_KB_8192
110 default 0xFF020000 if BOARD_ROMSIZE_KB_16384
111 help
Dave Frodinb5786272012-11-06 13:37:08 -0700112 Hudson requires the firmware MUST be located at
zbao246e84b2012-07-13 18:47:03 +0800113 a specific address (ROM start address + 0x20000), otherwise
114 xhci host Controller can not find or load the xhci firmware.
115
116 The firmware start address is dependent on the ROM chip size.
117 The default offset is 0x20000 from the ROM start address, namely
Dave Frodinb5786272012-11-06 13:37:08 -0700118 0xFFF20000 if flash chip size is 1M
119 0xFFE20000 if flash chip size is 2M
120 0xFFC20000 if flash chip size is 4M
121 0xFF820000 if flash chip size is 8M
122 0xFF020000 if flash chip size is 16M
Martin Roth80e35162013-01-21 19:33:22 -0700123endif # HUDSON_FWM
zbao246e84b2012-07-13 18:47:03 +0800124
125choice
126 prompt "SATA Mode"
127 default HUDSON_SATA_IDE
128 help
129 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
130 The default is NATIVE.
131
132config HUDSON_SATA_IDE
133 bool "NATIVE"
134 help
135 NATIVE is the default mode and does not require a ROM.
136
137config HUDSON_SATA_RAID
138 bool "RAID"
139 help
140 HUDSON RAID mode must have the two required ROM files.
141
142config HUDSON_SATA_AHCI
143 bool "AHCI"
144 help
145 AHCI may work with or without AHCI ROM. It depends on the payload support.
146 For example, seabios does not require the AHCI ROM.
147
148config HUDSON_SATA_LEGACY_IDE
149 bool "LEGACY IDE"
150 help
151 TODO
152
153config HUDSON_SATA_IDE2AHCI
154 bool "IDE to AHCI"
155 help
156 TODO
157
158config HUDSON_SATA_AHCI7804
159 bool "AHCI7804"
160 help
161 AHCI ROM Required, and AMD driver required in the OS.
162
163config HUDSON_SATA_IDE2AHCI7804
164 bool "IDE to AHCI7804"
165 help
166 AHCI ROM Required, and AMD driver required in the OS.
167endchoice
168
169config HUDSON_SATA_MODE
170 hex
171 depends on (HUDSON_SATA_IDE || HUDSON_SATA_RAID || HUDSON_SATA_AHCI)
172 default "0x0" if HUDSON_SATA_IDE
173 default "0x1" if HUDSON_SATA_RAID
174 default "0x2" if HUDSON_SATA_AHCI
175 default "0x3" if HUDSON_SATA_LEGACY_IDE
176 default "0x4" if HUDSON_SATA_IDE2AHCI
177 default "0x5" if HUDSON_SATA_AHCI7804
178 default "0x6" if HUDSON_SATA_IDE2AHCI7804
179
180if HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804
181config AHCI_ROM_ID
182 string "AHCI device PCI IDs"
183 default "1022,7801" if HUDSON_SATA_AHCI
184 default "1022,7804" if HUDSON_SATA_AHCI7804
185
186config HUDSON_AHCI_ROM
187 bool "Add a AHCI ROM"
188
189config AHCI_ROM_FILE
190 string "AHCI ROM path and filename"
191 depends on HUDSON_AHCI_ROM
192 default "src/southbridge/amd/agesa/hudson/ahci.bin"
Martin Roth80e35162013-01-21 19:33:22 -0700193endif # HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804
zbao246e84b2012-07-13 18:47:03 +0800194
195if HUDSON_SATA_RAID
196config RAID_ROM_ID
197 string "RAID device PCI IDs"
198 default "1022,7802"
199 help
200 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
201
202config RAID_ROM_FILE
203 string "RAID ROM path and filename"
204 depends on HUDSON_SATA_RAID
205 default "src/southbridge/amd/agesa/hudson/raid.bin"
206
207config RAID_MISC_ROM_FILE
208 string "RAID Misc ROM path and filename"
209 default "src/southbridge/amd/agesa/hudson/misc.bin"
210 depends on HUDSON_SATA_RAID
211
212config RAID_MISC_ROM_POSITION
213 hex "RAID Misc ROM Position"
214 default 0xFFF00000
215 depends on HUDSON_SATA_RAID
216 help
217 The RAID ROM requires that the MISC ROM is located between the range
218 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
219 The CONFIG_ROM_SIZE must larger than 0x100000.
Martin Roth80e35162013-01-21 19:33:22 -0700220endif # HUDSON_SATA_RAID
zbao246e84b2012-07-13 18:47:03 +0800221
Zheng Baof57d0dc2013-02-17 17:01:34 +0800222config S3_DATA_POS
Zheng Baoeb1d39b2012-08-27 17:45:01 +0800223 hex "S3 volatile storage position"
224 default 0xFFFF0000
225 depends on HAVE_ACPI_RESUME
226 help
227 For a system with S3 feature, the BIOS needs to save some data to
Zheng Bao178df112013-02-17 16:41:14 +0800228 non-volatile storage at cold boot stage.
Zheng Baoeb1d39b2012-08-27 17:45:01 +0800229
Zheng Bao22ec9f92013-02-18 16:56:09 +0800230config S3_DATA_SIZE
231 int "S3 volatile storage size"
232 default 32768
233 depends on HAVE_ACPI_RESUME
234 help
235 For a system with S3 feature, the BIOS needs to save some data to
236 non-volatile storage at cold boot stage.
237
Martin Rotheac220f2013-01-16 09:07:30 -0700238config HUDSON_LEGACY_FREE
239 bool "System is legacy free"
240 help
241 Select y if there is no keyboard controller in the system.
242 This sets variables in AGESA and ACPI.
Martin Roth80e35162013-01-21 19:33:22 -0700243
Siyuan Wang91571452013-07-09 17:32:42 +0800244endif # SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE
245
246if SOUTHBRIDGE_AMD_AGESA_YANGTZE
247 config AMD_SB_SPI_TX_LEN
248 int
249 default 64
250endif