blob: df7d76f5decd49bd3df18d947b93883b4d8f5577 [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
Kyösti Mälkki8232bc22013-09-24 21:04:12 +030023 select HAVE_USBDEBUG_OPTIONS
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
Kyösti Mälkki8232bc22013-09-24 21:04:12 +030029 select HAVE_USBDEBUG_OPTIONS
Siyuan Wang91571452013-07-09 17:32:42 +080030 select HAVE_HARD_RESET
31
Bruce Griffith1a590392014-08-10 17:09:15 -060032config SOUTHBRIDGE_AMD_AGESA_AVALON
33 bool
34 select IOAPIC
35 select HAVE_USBDEBUG_OPTIONS
36 select HAVE_HARD_RESET
37
38if SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE || SOUTHBRIDGE_AMD_AGESA_AVALON
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030039
zbao246e84b2012-07-13 18:47:03 +080040config BOOTBLOCK_SOUTHBRIDGE_INIT
41 string
42 default "southbridge/amd/agesa/hudson/bootblock.c"
zbao246e84b2012-07-13 18:47:03 +080043
44config SOUTHBRIDGE_AMD_HUDSON_SKIP_ISA_DMA_INIT
45 bool
46 default n
zbao246e84b2012-07-13 18:47:03 +080047
48config EHCI_BAR
49 hex
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030050 default 0xfef00000
zbao246e84b2012-07-13 18:47:03 +080051
Dave Frodin1fa19042013-06-14 07:11:40 -060052config HUDSON_XHCI_ENABLE
53 bool "Enable Hudson XHCI Controller"
54 default y
55 help
56 The XHCI controller must be enabled and the XHCI firmware
57 must be added in order to have USB 3.0 support configured
58 by coreboot. The OS will be responsible for enabling the XHCI
59 controller if the the XHCI firmware is available but the
60 XHCI controller is not enabled by coreboot.
61
zbao246e84b2012-07-13 18:47:03 +080062config HUDSON_XHCI_FWM
63 bool "Add xhci firmware"
64 default y
Dave Frodin1fa19042013-06-14 07:11:40 -060065 help
66 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
zbao246e84b2012-07-13 18:47:03 +080067
Bruce Griffith1a590392014-08-10 17:09:15 -060068config HUDSON_DISABLE_IMC
69 bool
70 default n
71
zbao246e84b2012-07-13 18:47:03 +080072config HUDSON_IMC_FWM
Bruce Griffith1a590392014-08-10 17:09:15 -060073 bool "Add IMC firmware"
74 depends on !HUDSON_DISABLE_IMC
zbao246e84b2012-07-13 18:47:03 +080075 default y
76 help
77 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
zbao246e84b2012-07-13 18:47:03 +080078
79config HUDSON_GEC_FWM
Bruce Griffith5c2025c2013-04-23 14:31:55 -060080 bool
zbao246e84b2012-07-13 18:47:03 +080081 default n
82 help
Bruce Griffith5c2025c2013-04-23 14:31:55 -060083 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
84 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
zbao246e84b2012-07-13 18:47:03 +080085
Bruce Griffith1a590392014-08-10 17:09:15 -060086config HUDSON_PSP
87 bool
88 default y if CPU_AMD_AGESA_00730F01
89
zbao246e84b2012-07-13 18:47:03 +080090config HUDSON_XHCI_FWM_FILE
91 string "XHCI firmware path and filename"
Siyuan Wang91571452013-07-09 17:32:42 +080092 default "3rdparty/southbridge/amd/hudson/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
93 default "3rdparty/southbridge/amd/yangtze/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
Bruce Griffith1a590392014-08-10 17:09:15 -060094 default "3rdparty/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_AVALON
zbao246e84b2012-07-13 18:47:03 +080095 depends on HUDSON_XHCI_FWM
96
97config HUDSON_IMC_FWM_FILE
98 string "IMC firmware path and filename"
Siyuan Wang91571452013-07-09 17:32:42 +080099 default "3rdparty/southbridge/amd/hudson/imc.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
100 default "3rdparty/southbridge/amd/yangtze/imc.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
Bruce Griffith1a590392014-08-10 17:09:15 -0600101 default "3rdparty/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_AGESA_AVALON
zbao246e84b2012-07-13 18:47:03 +0800102 depends on HUDSON_IMC_FWM
103
104config HUDSON_GEC_FWM_FILE
105 string "GEC firmware path and filename"
Siyuan Wang91571452013-07-09 17:32:42 +0800106 default "3rdparty/southbridge/amd/hudson/gec.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
107 default "3rdparty/southbridge/amd/yangtze/gec.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +0800108 depends on HUDSON_GEC_FWM
109
110config HUDSON_FWM
111 bool
Bruce Griffith1a590392014-08-10 17:09:15 -0600112 default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM || HUDSON_PSP
113 default n
zbao246e84b2012-07-13 18:47:03 +0800114
115if HUDSON_FWM
116
117config HUDSON_FWM_POSITION
Daniele Forsi53847a22014-07-22 18:00:56 +0200118 hex "Hudson Firmware ROM Position"
zbao246e84b2012-07-13 18:47:03 +0800119 default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
120 default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
121 default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
122 default 0xFF820000 if BOARD_ROMSIZE_KB_8192
123 default 0xFF020000 if BOARD_ROMSIZE_KB_16384
124 help
Dave Frodinb5786272012-11-06 13:37:08 -0700125 Hudson requires the firmware MUST be located at
zbao246e84b2012-07-13 18:47:03 +0800126 a specific address (ROM start address + 0x20000), otherwise
127 xhci host Controller can not find or load the xhci firmware.
128
129 The firmware start address is dependent on the ROM chip size.
130 The default offset is 0x20000 from the ROM start address, namely
Dave Frodinb5786272012-11-06 13:37:08 -0700131 0xFFF20000 if flash chip size is 1M
132 0xFFE20000 if flash chip size is 2M
133 0xFFC20000 if flash chip size is 4M
134 0xFF820000 if flash chip size is 8M
135 0xFF020000 if flash chip size is 16M
Martin Roth80e35162013-01-21 19:33:22 -0700136endif # HUDSON_FWM
zbao246e84b2012-07-13 18:47:03 +0800137
Bruce Griffith1a590392014-08-10 17:09:15 -0600138config AMD_PUBKEY_FILE
139 depends on HUDSON_PSP
140 string "AMD public Key"
141 default "3rdparty/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_AGESA_00730F01
142
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200143config HUDSON_SATA_MODE
144 int "SATA Mode"
145 default 0
146 range 0 6
zbao246e84b2012-07-13 18:47:03 +0800147 help
148 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
149 The default is NATIVE.
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200150 0: NATIVE mode does not require a ROM.
151 1: RAID mode must have the two ROM files.
152 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
153 For example, seabios does not require the AHCI ROM.
154 3: LEGACY IDE
155 4: IDE to AHCI
156 5: AHCI7804: ROM Required, and AMD driver required in the OS.
157 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
zbao246e84b2012-07-13 18:47:03 +0800158
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200159comment "NATIVE"
160 depends on HUDSON_SATA_MODE = 0
zbao246e84b2012-07-13 18:47:03 +0800161
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200162comment "RAID"
163 depends on HUDSON_SATA_MODE = 1
zbao246e84b2012-07-13 18:47:03 +0800164
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200165comment "AHCI"
166 depends on HUDSON_SATA_MODE = 2
zbao246e84b2012-07-13 18:47:03 +0800167
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200168comment "LEGACY IDE"
169 depends on HUDSON_SATA_MODE = 3
zbao246e84b2012-07-13 18:47:03 +0800170
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200171comment "IDE to AHCI"
172 depends on HUDSON_SATA_MODE = 4
zbao246e84b2012-07-13 18:47:03 +0800173
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200174comment "AHCI7804"
175 depends on HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800176
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200177comment "IDE to AHCI7804"
178 depends on HUDSON_SATA_MODE = 6
Daniele Forsi53847a22014-07-22 18:00:56 +0200179
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200180if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800181
zbao246e84b2012-07-13 18:47:03 +0800182config AHCI_ROM_ID
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200183 string "AHCI device PCI IDs"
184 default "1022,7801" if HUDSON_SATA_MODE = 2
185 default "1022,7804" if HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800186
187config HUDSON_AHCI_ROM
188 bool "Add a AHCI ROM"
189
190config AHCI_ROM_FILE
191 string "AHCI ROM path and filename"
192 depends on HUDSON_AHCI_ROM
193 default "src/southbridge/amd/agesa/hudson/ahci.bin"
zbao246e84b2012-07-13 18:47:03 +0800194
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200195endif
196
197if HUDSON_SATA_MODE = 1
198
zbao246e84b2012-07-13 18:47:03 +0800199config RAID_ROM_ID
200 string "RAID device PCI IDs"
201 default "1022,7802"
202 help
203 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
204
205config RAID_ROM_FILE
206 string "RAID ROM path and filename"
zbao246e84b2012-07-13 18:47:03 +0800207 default "src/southbridge/amd/agesa/hudson/raid.bin"
208
209config RAID_MISC_ROM_FILE
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200210 string "RAID Misc ROM path and filename"
211 default "src/southbridge/amd/agesa/hudson/misc.bin"
zbao246e84b2012-07-13 18:47:03 +0800212
213config RAID_MISC_ROM_POSITION
214 hex "RAID Misc ROM Position"
215 default 0xFFF00000
zbao246e84b2012-07-13 18:47:03 +0800216 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.
Daniele Forsi53847a22014-07-22 18:00:56 +0200219 The CONFIG_ROM_SIZE must be larger than 0x100000.
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200220
221endif
zbao246e84b2012-07-13 18:47:03 +0800222
Martin Rotheac220f2013-01-16 09:07:30 -0700223config HUDSON_LEGACY_FREE
224 bool "System is legacy free"
225 help
226 Select y if there is no keyboard controller in the system.
227 This sets variables in AGESA and ACPI.
Martin Roth80e35162013-01-21 19:33:22 -0700228
WANG Siyuanb640fd32014-10-22 13:47:18 +0800229config ACPI_ENABLE_THERMAL_ZONE
230 bool
231 default y
232
Bruce Griffith1a590392014-08-10 17:09:15 -0600233endif # SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE || SOUTHBRIDGE_AMD_AGESA_AVALON
Siyuan Wang91571452013-07-09 17:32:42 +0800234
Bruce Griffith1a590392014-08-10 17:09:15 -0600235if SOUTHBRIDGE_AMD_AGESA_YANGTZE || SOUTHBRIDGE_AMD_AGESA_AVALON
WANG Siyuana9b01d12013-08-21 10:06:25 +0800236 config AZ_PIN
237 hex
238 default 0xaa
239 help
240 bit 1,0 - pin 0
241 bit 3,2 - pin 1
242 bit 5,4 - pin 2
243 bit 7,6 - pin 3
Siyuan Wang91571452013-07-09 17:32:42 +0800244endif