blob: acc2d7255aa4d3e7ecd6a60264179d47d2428922 [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
Kyösti Mälkki1b1b7952014-11-09 14:54:06 +020032if 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
Dave Frodin1fa19042013-06-14 07:11:40 -060046config HUDSON_XHCI_ENABLE
47 bool "Enable Hudson XHCI Controller"
48 default y
49 help
50 The XHCI controller must be enabled and the XHCI firmware
51 must be added in order to have USB 3.0 support configured
52 by coreboot. The OS will be responsible for enabling the XHCI
53 controller if the the XHCI firmware is available but the
54 XHCI controller is not enabled by coreboot.
55
zbao246e84b2012-07-13 18:47:03 +080056config HUDSON_XHCI_FWM
57 bool "Add xhci firmware"
Edward O'Callaghand2344d02014-12-04 04:50:40 +110058 default y if USE_BLOBS
Dave Frodin1fa19042013-06-14 07:11:40 -060059 help
60 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
zbao246e84b2012-07-13 18:47:03 +080061
62config HUDSON_IMC_FWM
Kyösti Mälkki1b1b7952014-11-09 14:54:06 +020063 bool "Add imc firmware"
Edward O'Callaghand2344d02014-12-04 04:50:40 +110064 default y if USE_BLOBS
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110065 help
zbao246e84b2012-07-13 18:47:03 +080066 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
zbao246e84b2012-07-13 18:47:03 +080067
68config HUDSON_GEC_FWM
Bruce Griffith5c2025c2013-04-23 14:31:55 -060069 bool
zbao246e84b2012-07-13 18:47:03 +080070 default n
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110071 help
Bruce Griffith5c2025c2013-04-23 14:31:55 -060072 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
73 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
zbao246e84b2012-07-13 18:47:03 +080074
75config HUDSON_XHCI_FWM_FILE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110076 string "XHCI firmware path and filename"
77 default "3rdparty/southbridge/amd/hudson/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
78 default "3rdparty/southbridge/amd/yangtze/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080079 depends on HUDSON_XHCI_FWM
80
81config HUDSON_IMC_FWM_FILE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110082 string "IMC firmware path and filename"
83 default "3rdparty/southbridge/amd/hudson/imc.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
84 default "3rdparty/southbridge/amd/yangtze/imc.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080085 depends on HUDSON_IMC_FWM
86
87config HUDSON_GEC_FWM_FILE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110088 string "GEC firmware path and filename"
89 default "3rdparty/southbridge/amd/hudson/gec.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
90 default "3rdparty/southbridge/amd/yangtze/gec.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080091 depends on HUDSON_GEC_FWM
92
93config HUDSON_FWM
94 bool
Kyösti Mälkki1b1b7952014-11-09 14:54:06 +020095 default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM
Bruce Griffith1a590392014-08-10 17:09:15 -060096 default n
zbao246e84b2012-07-13 18:47:03 +080097
98if HUDSON_FWM
99
100config HUDSON_FWM_POSITION
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +1100101 hex "Hudson Firmware ROM Position"
102 default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
103 default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
104 default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
105 default 0xFF820000 if BOARD_ROMSIZE_KB_8192
106 default 0xFF020000 if BOARD_ROMSIZE_KB_16384
zbao246e84b2012-07-13 18:47:03 +0800107 help
Dave Frodinb5786272012-11-06 13:37:08 -0700108 Hudson requires the firmware MUST be located at
zbao246e84b2012-07-13 18:47:03 +0800109 a specific address (ROM start address + 0x20000), otherwise
110 xhci host Controller can not find or load the xhci firmware.
111
112 The firmware start address is dependent on the ROM chip size.
113 The default offset is 0x20000 from the ROM start address, namely
Dave Frodinb5786272012-11-06 13:37:08 -0700114 0xFFF20000 if flash chip size is 1M
115 0xFFE20000 if flash chip size is 2M
116 0xFFC20000 if flash chip size is 4M
117 0xFF820000 if flash chip size is 8M
118 0xFF020000 if flash chip size is 16M
Martin Roth80e35162013-01-21 19:33:22 -0700119endif # HUDSON_FWM
zbao246e84b2012-07-13 18:47:03 +0800120
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200121config HUDSON_SATA_MODE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +1100122 int "SATA Mode"
123 default 0
124 range 0 6
zbao246e84b2012-07-13 18:47:03 +0800125 help
126 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
127 The default is NATIVE.
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200128 0: NATIVE mode does not require a ROM.
129 1: RAID mode must have the two ROM files.
130 2: 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 3: LEGACY IDE
133 4: IDE to AHCI
134 5: AHCI7804: ROM Required, and AMD driver required in the OS.
135 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
zbao246e84b2012-07-13 18:47:03 +0800136
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200137comment "NATIVE"
138 depends on HUDSON_SATA_MODE = 0
zbao246e84b2012-07-13 18:47:03 +0800139
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200140comment "RAID"
141 depends on HUDSON_SATA_MODE = 1
zbao246e84b2012-07-13 18:47:03 +0800142
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200143comment "AHCI"
144 depends on HUDSON_SATA_MODE = 2
zbao246e84b2012-07-13 18:47:03 +0800145
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200146comment "LEGACY IDE"
147 depends on HUDSON_SATA_MODE = 3
zbao246e84b2012-07-13 18:47:03 +0800148
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200149comment "IDE to AHCI"
150 depends on HUDSON_SATA_MODE = 4
zbao246e84b2012-07-13 18:47:03 +0800151
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200152comment "AHCI7804"
153 depends on HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800154
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200155comment "IDE to AHCI7804"
156 depends on HUDSON_SATA_MODE = 6
Daniele Forsi53847a22014-07-22 18:00:56 +0200157
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200158if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800159
zbao246e84b2012-07-13 18:47:03 +0800160config AHCI_ROM_ID
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200161 string "AHCI device PCI IDs"
162 default "1022,7801" if HUDSON_SATA_MODE = 2
163 default "1022,7804" if HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800164
165config HUDSON_AHCI_ROM
166 bool "Add a AHCI ROM"
167
168config AHCI_ROM_FILE
169 string "AHCI ROM path and filename"
170 depends on HUDSON_AHCI_ROM
171 default "src/southbridge/amd/agesa/hudson/ahci.bin"
zbao246e84b2012-07-13 18:47:03 +0800172
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200173endif
174
175if HUDSON_SATA_MODE = 1
176
zbao246e84b2012-07-13 18:47:03 +0800177config RAID_ROM_ID
178 string "RAID device PCI IDs"
179 default "1022,7802"
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +1100180 help
181 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
zbao246e84b2012-07-13 18:47:03 +0800182
183config RAID_ROM_FILE
184 string "RAID ROM path and filename"
zbao246e84b2012-07-13 18:47:03 +0800185 default "src/southbridge/amd/agesa/hudson/raid.bin"
186
187config RAID_MISC_ROM_FILE
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200188 string "RAID Misc ROM path and filename"
189 default "src/southbridge/amd/agesa/hudson/misc.bin"
zbao246e84b2012-07-13 18:47:03 +0800190
191config RAID_MISC_ROM_POSITION
192 hex "RAID Misc ROM Position"
193 default 0xFFF00000
zbao246e84b2012-07-13 18:47:03 +0800194 help
195 The RAID ROM requires that the MISC ROM is located between the range
196 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
Daniele Forsi53847a22014-07-22 18:00:56 +0200197 The CONFIG_ROM_SIZE must be larger than 0x100000.
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200198
199endif
zbao246e84b2012-07-13 18:47:03 +0800200
Martin Rotheac220f2013-01-16 09:07:30 -0700201config HUDSON_LEGACY_FREE
202 bool "System is legacy free"
203 help
204 Select y if there is no keyboard controller in the system.
205 This sets variables in AGESA and ACPI.
Martin Roth80e35162013-01-21 19:33:22 -0700206
WANG Siyuanb640fd32014-10-22 13:47:18 +0800207config ACPI_ENABLE_THERMAL_ZONE
208 bool
209 default y
210
Kyösti Mälkki1b1b7952014-11-09 14:54:06 +0200211endif # SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE
Siyuan Wang91571452013-07-09 17:32:42 +0800212
Kyösti Mälkki1b1b7952014-11-09 14:54:06 +0200213if SOUTHBRIDGE_AMD_AGESA_YANGTZE
WANG Siyuana9b01d12013-08-21 10:06:25 +0800214 config AZ_PIN
215 hex
216 default 0xaa
217 help
218 bit 1,0 - pin 0
219 bit 3,2 - pin 1
220 bit 5,4 - pin 2
221 bit 7,6 - pin 3
Siyuan Wang91571452013-07-09 17:32:42 +0800222endif