blob: 3e585639c85ef2aaf1f9a89de50814e1db7159c6 [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
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
49 help
50 Add Hudson 2/3/4 XHCI Firmware to support the onboard usb3.0
zbao246e84b2012-07-13 18:47:03 +080051
52config HUDSON_IMC_FWM
53 bool "Add imc firmware"
54 default y
55 help
56 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
zbao246e84b2012-07-13 18:47:03 +080057
58config HUDSON_GEC_FWM
Bruce Griffith5c2025c2013-04-23 14:31:55 -060059 bool
zbao246e84b2012-07-13 18:47:03 +080060 default n
61 help
Bruce Griffith5c2025c2013-04-23 14:31:55 -060062 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
63 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
zbao246e84b2012-07-13 18:47:03 +080064
65config HUDSON_XHCI_FWM_FILE
66 string "XHCI firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080067 default "3rdparty/southbridge/amd/hudson/xhci.bin"
zbao246e84b2012-07-13 18:47:03 +080068 depends on HUDSON_XHCI_FWM
69
70config HUDSON_IMC_FWM_FILE
71 string "IMC firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080072 default "3rdparty/southbridge/amd/hudson/imc.bin"
zbao246e84b2012-07-13 18:47:03 +080073 depends on HUDSON_IMC_FWM
74
75config HUDSON_GEC_FWM_FILE
76 string "GEC firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080077 default "3rdparty/southbridge/amd/hudson/gec.bin"
zbao246e84b2012-07-13 18:47:03 +080078 depends on HUDSON_GEC_FWM
79
80config HUDSON_FWM
81 bool
82 default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM
83 default n if !HUDSON_XHCI_FWM && !HUDSON_IMC_FWM && !HUDSON_GEC_FWM
84
85if HUDSON_FWM
86
87config HUDSON_FWM_POSITION
88 hex "Hudson Firmware rom Position"
89 default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
90 default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
91 default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
92 default 0xFF820000 if BOARD_ROMSIZE_KB_8192
93 default 0xFF020000 if BOARD_ROMSIZE_KB_16384
94 help
Dave Frodinb5786272012-11-06 13:37:08 -070095 Hudson requires the firmware MUST be located at
zbao246e84b2012-07-13 18:47:03 +080096 a specific address (ROM start address + 0x20000), otherwise
97 xhci host Controller can not find or load the xhci firmware.
98
99 The firmware start address is dependent on the ROM chip size.
100 The default offset is 0x20000 from the ROM start address, namely
Dave Frodinb5786272012-11-06 13:37:08 -0700101 0xFFF20000 if flash chip size is 1M
102 0xFFE20000 if flash chip size is 2M
103 0xFFC20000 if flash chip size is 4M
104 0xFF820000 if flash chip size is 8M
105 0xFF020000 if flash chip size is 16M
Martin Roth80e35162013-01-21 19:33:22 -0700106endif # HUDSON_FWM
zbao246e84b2012-07-13 18:47:03 +0800107
108choice
109 prompt "SATA Mode"
110 default HUDSON_SATA_IDE
111 help
112 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
113 The default is NATIVE.
114
115config HUDSON_SATA_IDE
116 bool "NATIVE"
117 help
118 NATIVE is the default mode and does not require a ROM.
119
120config HUDSON_SATA_RAID
121 bool "RAID"
122 help
123 HUDSON RAID mode must have the two required ROM files.
124
125config HUDSON_SATA_AHCI
126 bool "AHCI"
127 help
128 AHCI may work with or without AHCI ROM. It depends on the payload support.
129 For example, seabios does not require the AHCI ROM.
130
131config HUDSON_SATA_LEGACY_IDE
132 bool "LEGACY IDE"
133 help
134 TODO
135
136config HUDSON_SATA_IDE2AHCI
137 bool "IDE to AHCI"
138 help
139 TODO
140
141config HUDSON_SATA_AHCI7804
142 bool "AHCI7804"
143 help
144 AHCI ROM Required, and AMD driver required in the OS.
145
146config HUDSON_SATA_IDE2AHCI7804
147 bool "IDE to AHCI7804"
148 help
149 AHCI ROM Required, and AMD driver required in the OS.
150endchoice
151
152config HUDSON_SATA_MODE
153 hex
154 depends on (HUDSON_SATA_IDE || HUDSON_SATA_RAID || HUDSON_SATA_AHCI)
155 default "0x0" if HUDSON_SATA_IDE
156 default "0x1" if HUDSON_SATA_RAID
157 default "0x2" if HUDSON_SATA_AHCI
158 default "0x3" if HUDSON_SATA_LEGACY_IDE
159 default "0x4" if HUDSON_SATA_IDE2AHCI
160 default "0x5" if HUDSON_SATA_AHCI7804
161 default "0x6" if HUDSON_SATA_IDE2AHCI7804
162
163if HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804
164config AHCI_ROM_ID
165 string "AHCI device PCI IDs"
166 default "1022,7801" if HUDSON_SATA_AHCI
167 default "1022,7804" if HUDSON_SATA_AHCI7804
168
169config HUDSON_AHCI_ROM
170 bool "Add a AHCI ROM"
171
172config AHCI_ROM_FILE
173 string "AHCI ROM path and filename"
174 depends on HUDSON_AHCI_ROM
175 default "src/southbridge/amd/agesa/hudson/ahci.bin"
Martin Roth80e35162013-01-21 19:33:22 -0700176endif # HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804
zbao246e84b2012-07-13 18:47:03 +0800177
178if HUDSON_SATA_RAID
179config RAID_ROM_ID
180 string "RAID device PCI IDs"
181 default "1022,7802"
182 help
183 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
184
185config RAID_ROM_FILE
186 string "RAID ROM path and filename"
187 depends on HUDSON_SATA_RAID
188 default "src/southbridge/amd/agesa/hudson/raid.bin"
189
190config RAID_MISC_ROM_FILE
191 string "RAID Misc ROM path and filename"
192 default "src/southbridge/amd/agesa/hudson/misc.bin"
193 depends on HUDSON_SATA_RAID
194
195config RAID_MISC_ROM_POSITION
196 hex "RAID Misc ROM Position"
197 default 0xFFF00000
198 depends on HUDSON_SATA_RAID
199 help
200 The RAID ROM requires that the MISC ROM is located between the range
201 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
202 The CONFIG_ROM_SIZE must larger than 0x100000.
Martin Roth80e35162013-01-21 19:33:22 -0700203endif # HUDSON_SATA_RAID
zbao246e84b2012-07-13 18:47:03 +0800204
Zheng Baof57d0dc2013-02-17 17:01:34 +0800205config S3_DATA_POS
Zheng Baoeb1d39b2012-08-27 17:45:01 +0800206 hex "S3 volatile storage position"
207 default 0xFFFF0000
208 depends on HAVE_ACPI_RESUME
209 help
210 For a system with S3 feature, the BIOS needs to save some data to
Zheng Bao178df112013-02-17 16:41:14 +0800211 non-volatile storage at cold boot stage.
Zheng Baoeb1d39b2012-08-27 17:45:01 +0800212
Zheng Bao22ec9f92013-02-18 16:56:09 +0800213config S3_DATA_SIZE
214 int "S3 volatile storage size"
215 default 32768
216 depends on HAVE_ACPI_RESUME
217 help
218 For a system with S3 feature, the BIOS needs to save some data to
219 non-volatile storage at cold boot stage.
220
Martin Rotheac220f2013-01-16 09:07:30 -0700221config HUDSON_LEGACY_FREE
222 bool "System is legacy free"
223 help
224 Select y if there is no keyboard controller in the system.
225 This sets variables in AGESA and ACPI.
Martin Roth80e35162013-01-21 19:33:22 -0700226
227endif # SOUTHBRIDGE_AMD_AGESA_HUDSON