blob: 93db1a920c2ff9455eae85067beababfe31fba85 [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##
zbao246e84b2012-07-13 18:47:03 +080015
16config SOUTHBRIDGE_AMD_AGESA_HUDSON
17 bool
zbao246e84b2012-07-13 18:47:03 +080018
Siyuan Wang91571452013-07-09 17:32:42 +080019config SOUTHBRIDGE_AMD_AGESA_YANGTZE
20 bool
Siyuan Wang91571452013-07-09 17:32:42 +080021
Kyösti Mälkki109a58a2019-01-10 10:00:38 +020022if SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030023
Nico Huberf4181052018-10-07 13:25:59 +020024config SOUTHBRIDGE_SPECIFIC_OPTIONS # dummy
25 def_bool y
26 select IOAPIC
27 select HAVE_USBDEBUG_OPTIONS
28 select HAVE_CF9_RESET
29 select HAVE_CF9_RESET_PREPARE
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010030 select SOC_AMD_COMMON
31 select SOC_AMD_COMMON_BLOCK
32 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Nico Huberf4181052018-10-07 13:25:59 +020033
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
zbao246e84b2012-07-13 18:47:03 +080038config EHCI_BAR
39 hex
Kyösti Mälkki59d0d152013-06-11 16:30:48 +030040 default 0xfef00000
zbao246e84b2012-07-13 18:47:03 +080041
Dave Frodin1fa19042013-06-14 07:11:40 -060042config HUDSON_XHCI_ENABLE
43 bool "Enable Hudson XHCI Controller"
Mike Banon5b230022019-02-03 12:50:51 +030044 default y if HUDSON_XHCI_FWM
Dave Frodin1fa19042013-06-14 07:11:40 -060045 help
46 The XHCI controller must be enabled and the XHCI firmware
47 must be added in order to have USB 3.0 support configured
48 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +010049 controller if the XHCI firmware is available but the
Dave Frodin1fa19042013-06-14 07:11:40 -060050 XHCI controller is not enabled by coreboot.
51
zbao246e84b2012-07-13 18:47:03 +080052config HUDSON_XHCI_FWM
53 bool "Add xhci firmware"
Edward O'Callaghand2344d02014-12-04 04:50:40 +110054 default y if USE_BLOBS
Dave Frodin1fa19042013-06-14 07:11:40 -060055 help
56 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
zbao246e84b2012-07-13 18:47:03 +080057
Mike Banon7515cd02019-01-09 02:37:07 +030058config HUDSON_IMC_ENABLE
59 bool
60 default n
61
zbao246e84b2012-07-13 18:47:03 +080062config HUDSON_IMC_FWM
Mike Banon7515cd02019-01-09 02:37:07 +030063 bool "Add IMC firmware"
64 depends on HUDSON_IMC_ENABLE
Edward O'Callaghand2344d02014-12-04 04:50:40 +110065 default y if USE_BLOBS
Furquan Shaikhc28984d2016-11-20 21:04:00 -080066 select SPI_FLASH_HAS_VOLATILE_GROUP if SPI_FLASH
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110067 help
zbao246e84b2012-07-13 18:47:03 +080068 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
zbao246e84b2012-07-13 18:47:03 +080069
70config HUDSON_GEC_FWM
Bruce Griffith5c2025c2013-04-23 14:31:55 -060071 bool
zbao246e84b2012-07-13 18:47:03 +080072 default n
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110073 help
Bruce Griffith5c2025c2013-04-23 14:31:55 -060074 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
75 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
zbao246e84b2012-07-13 18:47:03 +080076
77config HUDSON_XHCI_FWM_FILE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110078 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020079 default "3rdparty/blobs/southbridge/amd/hudson/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
80 default "3rdparty/blobs/southbridge/amd/yangtze/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080081 depends on HUDSON_XHCI_FWM
82
83config HUDSON_IMC_FWM_FILE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110084 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020085 default "3rdparty/blobs/southbridge/amd/hudson/imc.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
86 default "3rdparty/blobs/southbridge/amd/yangtze/imc.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080087 depends on HUDSON_IMC_FWM
88
89config HUDSON_GEC_FWM_FILE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110090 string "GEC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020091 default "3rdparty/blobs/southbridge/amd/hudson/gec.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
92 default "3rdparty/blobs/southbridge/amd/yangtze/gec.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
zbao246e84b2012-07-13 18:47:03 +080093 depends on HUDSON_GEC_FWM
94
Kyösti Mälkki84693d32014-11-14 20:56:43 +020095config HUDSON_SATA_MODE
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +110096 int "SATA Mode"
97 default 0
98 range 0 6
zbao246e84b2012-07-13 18:47:03 +080099 help
100 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
101 The default is NATIVE.
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200102 0: NATIVE mode does not require a ROM.
103 1: RAID mode must have the two ROM files.
104 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
105 For example, seabios does not require the AHCI ROM.
106 3: LEGACY IDE
107 4: IDE to AHCI
108 5: AHCI7804: ROM Required, and AMD driver required in the OS.
109 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
zbao246e84b2012-07-13 18:47:03 +0800110
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200111comment "NATIVE"
112 depends on HUDSON_SATA_MODE = 0
zbao246e84b2012-07-13 18:47:03 +0800113
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200114comment "RAID"
115 depends on HUDSON_SATA_MODE = 1
zbao246e84b2012-07-13 18:47:03 +0800116
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200117comment "AHCI"
118 depends on HUDSON_SATA_MODE = 2
zbao246e84b2012-07-13 18:47:03 +0800119
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200120comment "LEGACY IDE"
121 depends on HUDSON_SATA_MODE = 3
zbao246e84b2012-07-13 18:47:03 +0800122
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200123comment "IDE to AHCI"
124 depends on HUDSON_SATA_MODE = 4
zbao246e84b2012-07-13 18:47:03 +0800125
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200126comment "AHCI7804"
127 depends on HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800128
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200129comment "IDE to AHCI7804"
130 depends on HUDSON_SATA_MODE = 6
Daniele Forsi53847a22014-07-22 18:00:56 +0200131
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200132if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800133
zbao246e84b2012-07-13 18:47:03 +0800134config AHCI_ROM_ID
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200135 string "AHCI device PCI IDs"
136 default "1022,7801" if HUDSON_SATA_MODE = 2
137 default "1022,7804" if HUDSON_SATA_MODE = 5
zbao246e84b2012-07-13 18:47:03 +0800138
139config HUDSON_AHCI_ROM
140 bool "Add a AHCI ROM"
141
142config AHCI_ROM_FILE
143 string "AHCI ROM path and filename"
144 depends on HUDSON_AHCI_ROM
145 default "src/southbridge/amd/agesa/hudson/ahci.bin"
zbao246e84b2012-07-13 18:47:03 +0800146
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200147endif
148
149if HUDSON_SATA_MODE = 1
150
zbao246e84b2012-07-13 18:47:03 +0800151config RAID_ROM_ID
152 string "RAID device PCI IDs"
153 default "1022,7802"
Edward O'Callaghan5cb29b82014-12-04 04:47:16 +1100154 help
155 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
zbao246e84b2012-07-13 18:47:03 +0800156
157config RAID_ROM_FILE
158 string "RAID ROM path and filename"
zbao246e84b2012-07-13 18:47:03 +0800159 default "src/southbridge/amd/agesa/hudson/raid.bin"
160
161config RAID_MISC_ROM_FILE
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200162 string "RAID Misc ROM path and filename"
163 default "src/southbridge/amd/agesa/hudson/misc.bin"
zbao246e84b2012-07-13 18:47:03 +0800164
165config RAID_MISC_ROM_POSITION
166 hex "RAID Misc ROM Position"
167 default 0xFFF00000
zbao246e84b2012-07-13 18:47:03 +0800168 help
169 The RAID ROM requires that the MISC ROM is located between the range
170 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
Daniele Forsi53847a22014-07-22 18:00:56 +0200171 The CONFIG_ROM_SIZE must be larger than 0x100000.
Kyösti Mälkki84693d32014-11-14 20:56:43 +0200172
173endif
zbao246e84b2012-07-13 18:47:03 +0800174
Martin Rotheac220f2013-01-16 09:07:30 -0700175config HUDSON_LEGACY_FREE
176 bool "System is legacy free"
177 help
178 Select y if there is no keyboard controller in the system.
179 This sets variables in AGESA and ACPI.
Martin Roth80e35162013-01-21 19:33:22 -0700180
WANG Siyuanb640fd32014-10-22 13:47:18 +0800181config ACPI_ENABLE_THERMAL_ZONE
182 bool
183 default y
184
Kyösti Mälkki109a58a2019-01-10 10:00:38 +0200185endif # SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE
Siyuan Wang91571452013-07-09 17:32:42 +0800186
Kyösti Mälkki1b1b7952014-11-09 14:54:06 +0200187if SOUTHBRIDGE_AMD_AGESA_YANGTZE
WANG Siyuana9b01d12013-08-21 10:06:25 +0800188 config AZ_PIN
189 hex
190 default 0xaa
191 help
192 bit 1,0 - pin 0
193 bit 3,2 - pin 1
194 bit 5,4 - pin 2
195 bit 7,6 - pin 3
Siyuan Wang91571452013-07-09 17:32:42 +0800196endif