zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 1 | ## |
| 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 | ## |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 15 | |
| 16 | config SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 17 | bool |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 18 | |
Siyuan Wang | 9157145 | 2013-07-09 17:32:42 +0800 | [diff] [blame] | 19 | config SOUTHBRIDGE_AMD_AGESA_YANGTZE |
| 20 | bool |
Siyuan Wang | 9157145 | 2013-07-09 17:32:42 +0800 | [diff] [blame] | 21 | |
Kyösti Mälkki | 109a58a | 2019-01-10 10:00:38 +0200 | [diff] [blame^] | 22 | if SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE |
Kyösti Mälkki | 59d0d15 | 2013-06-11 16:30:48 +0300 | [diff] [blame] | 23 | |
Nico Huber | f418105 | 2018-10-07 13:25:59 +0200 | [diff] [blame] | 24 | config 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 |
| 30 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 31 | config BOOTBLOCK_SOUTHBRIDGE_INIT |
| 32 | string |
| 33 | default "southbridge/amd/agesa/hudson/bootblock.c" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 34 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 35 | config EHCI_BAR |
| 36 | hex |
Kyösti Mälkki | 59d0d15 | 2013-06-11 16:30:48 +0300 | [diff] [blame] | 37 | default 0xfef00000 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 38 | |
Dave Frodin | 1fa1904 | 2013-06-14 07:11:40 -0600 | [diff] [blame] | 39 | config HUDSON_XHCI_ENABLE |
| 40 | bool "Enable Hudson XHCI Controller" |
| 41 | default y |
| 42 | help |
| 43 | The XHCI controller must be enabled and the XHCI firmware |
| 44 | must be added in order to have USB 3.0 support configured |
| 45 | by coreboot. The OS will be responsible for enabling the XHCI |
Jonathan Neuschäfer | 45e6c82 | 2018-12-11 17:53:07 +0100 | [diff] [blame] | 46 | controller if the XHCI firmware is available but the |
Dave Frodin | 1fa1904 | 2013-06-14 07:11:40 -0600 | [diff] [blame] | 47 | XHCI controller is not enabled by coreboot. |
| 48 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 49 | config HUDSON_XHCI_FWM |
| 50 | bool "Add xhci firmware" |
Edward O'Callaghan | d2344d0 | 2014-12-04 04:50:40 +1100 | [diff] [blame] | 51 | default y if USE_BLOBS |
Dave Frodin | 1fa1904 | 2013-06-14 07:11:40 -0600 | [diff] [blame] | 52 | help |
| 53 | Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 54 | |
Mike Banon | 7515cd0 | 2019-01-09 02:37:07 +0300 | [diff] [blame] | 55 | config HUDSON_IMC_ENABLE |
| 56 | bool |
| 57 | default n |
| 58 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 59 | config HUDSON_IMC_FWM |
Mike Banon | 7515cd0 | 2019-01-09 02:37:07 +0300 | [diff] [blame] | 60 | bool "Add IMC firmware" |
| 61 | depends on HUDSON_IMC_ENABLE |
Edward O'Callaghan | d2344d0 | 2014-12-04 04:50:40 +1100 | [diff] [blame] | 62 | default y if USE_BLOBS |
Furquan Shaikh | c28984d | 2016-11-20 21:04:00 -0800 | [diff] [blame] | 63 | select SPI_FLASH_HAS_VOLATILE_GROUP if SPI_FLASH |
Edward O'Callaghan | 5cb29b8 | 2014-12-04 04:47:16 +1100 | [diff] [blame] | 64 | help |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 65 | Add Hudson 2/3/4 IMC Firmware to support the onboard fan control |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 66 | |
| 67 | config HUDSON_GEC_FWM |
Bruce Griffith | 5c2025c | 2013-04-23 14:31:55 -0600 | [diff] [blame] | 68 | bool |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 69 | default n |
Edward O'Callaghan | 5cb29b8 | 2014-12-04 04:47:16 +1100 | [diff] [blame] | 70 | help |
Bruce Griffith | 5c2025c | 2013-04-23 14:31:55 -0600 | [diff] [blame] | 71 | Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC. |
| 72 | Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard. |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 73 | |
| 74 | config HUDSON_XHCI_FWM_FILE |
Edward O'Callaghan | 5cb29b8 | 2014-12-04 04:47:16 +1100 | [diff] [blame] | 75 | string "XHCI firmware path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 76 | default "3rdparty/blobs/southbridge/amd/hudson/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 77 | default "3rdparty/blobs/southbridge/amd/yangtze/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 78 | depends on HUDSON_XHCI_FWM |
| 79 | |
| 80 | config HUDSON_IMC_FWM_FILE |
Edward O'Callaghan | 5cb29b8 | 2014-12-04 04:47:16 +1100 | [diff] [blame] | 81 | string "IMC firmware path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 82 | default "3rdparty/blobs/southbridge/amd/hudson/imc.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 83 | default "3rdparty/blobs/southbridge/amd/yangtze/imc.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 84 | depends on HUDSON_IMC_FWM |
| 85 | |
| 86 | config HUDSON_GEC_FWM_FILE |
Edward O'Callaghan | 5cb29b8 | 2014-12-04 04:47:16 +1100 | [diff] [blame] | 87 | string "GEC firmware path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 88 | default "3rdparty/blobs/southbridge/amd/hudson/gec.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 89 | default "3rdparty/blobs/southbridge/amd/yangtze/gec.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 90 | depends on HUDSON_GEC_FWM |
| 91 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 92 | config HUDSON_SATA_MODE |
Edward O'Callaghan | 5cb29b8 | 2014-12-04 04:47:16 +1100 | [diff] [blame] | 93 | int "SATA Mode" |
| 94 | default 0 |
| 95 | range 0 6 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 96 | help |
| 97 | Select the mode in which SATA should be driven. NATIVE AHCI, or RAID. |
| 98 | The default is NATIVE. |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 99 | 0: NATIVE mode does not require a ROM. |
| 100 | 1: RAID mode must have the two ROM files. |
| 101 | 2: AHCI may work with or without AHCI ROM. It depends on the payload support. |
| 102 | For example, seabios does not require the AHCI ROM. |
| 103 | 3: LEGACY IDE |
| 104 | 4: IDE to AHCI |
| 105 | 5: AHCI7804: ROM Required, and AMD driver required in the OS. |
| 106 | 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS. |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 107 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 108 | comment "NATIVE" |
| 109 | depends on HUDSON_SATA_MODE = 0 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 110 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 111 | comment "RAID" |
| 112 | depends on HUDSON_SATA_MODE = 1 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 113 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 114 | comment "AHCI" |
| 115 | depends on HUDSON_SATA_MODE = 2 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 116 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 117 | comment "LEGACY IDE" |
| 118 | depends on HUDSON_SATA_MODE = 3 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 119 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 120 | comment "IDE to AHCI" |
| 121 | depends on HUDSON_SATA_MODE = 4 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 122 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 123 | comment "AHCI7804" |
| 124 | depends on HUDSON_SATA_MODE = 5 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 125 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 126 | comment "IDE to AHCI7804" |
| 127 | depends on HUDSON_SATA_MODE = 6 |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 128 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 129 | if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 130 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 131 | config AHCI_ROM_ID |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 132 | string "AHCI device PCI IDs" |
| 133 | default "1022,7801" if HUDSON_SATA_MODE = 2 |
| 134 | default "1022,7804" if HUDSON_SATA_MODE = 5 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 135 | |
| 136 | config HUDSON_AHCI_ROM |
| 137 | bool "Add a AHCI ROM" |
| 138 | |
| 139 | config AHCI_ROM_FILE |
| 140 | string "AHCI ROM path and filename" |
| 141 | depends on HUDSON_AHCI_ROM |
| 142 | default "src/southbridge/amd/agesa/hudson/ahci.bin" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 143 | |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 144 | endif |
| 145 | |
| 146 | if HUDSON_SATA_MODE = 1 |
| 147 | |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 148 | config RAID_ROM_ID |
| 149 | string "RAID device PCI IDs" |
| 150 | default "1022,7802" |
Edward O'Callaghan | 5cb29b8 | 2014-12-04 04:47:16 +1100 | [diff] [blame] | 151 | help |
| 152 | 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 153 | |
| 154 | config RAID_ROM_FILE |
| 155 | string "RAID ROM path and filename" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 156 | default "src/southbridge/amd/agesa/hudson/raid.bin" |
| 157 | |
| 158 | config RAID_MISC_ROM_FILE |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 159 | string "RAID Misc ROM path and filename" |
| 160 | default "src/southbridge/amd/agesa/hudson/misc.bin" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 161 | |
| 162 | config RAID_MISC_ROM_POSITION |
| 163 | hex "RAID Misc ROM Position" |
| 164 | default 0xFFF00000 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 165 | help |
| 166 | The RAID ROM requires that the MISC ROM is located between the range |
| 167 | 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned. |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 168 | The CONFIG_ROM_SIZE must be larger than 0x100000. |
Kyösti Mälkki | 84693d3 | 2014-11-14 20:56:43 +0200 | [diff] [blame] | 169 | |
| 170 | endif |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 171 | |
Martin Roth | eac220f | 2013-01-16 09:07:30 -0700 | [diff] [blame] | 172 | config HUDSON_LEGACY_FREE |
| 173 | bool "System is legacy free" |
| 174 | help |
| 175 | Select y if there is no keyboard controller in the system. |
| 176 | This sets variables in AGESA and ACPI. |
Martin Roth | 80e3516 | 2013-01-21 19:33:22 -0700 | [diff] [blame] | 177 | |
WANG Siyuan | b640fd3 | 2014-10-22 13:47:18 +0800 | [diff] [blame] | 178 | config ACPI_ENABLE_THERMAL_ZONE |
| 179 | bool |
| 180 | default y |
| 181 | |
Kyösti Mälkki | 109a58a | 2019-01-10 10:00:38 +0200 | [diff] [blame^] | 182 | endif # SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE |
Siyuan Wang | 9157145 | 2013-07-09 17:32:42 +0800 | [diff] [blame] | 183 | |
Kyösti Mälkki | 1b1b795 | 2014-11-09 14:54:06 +0200 | [diff] [blame] | 184 | if SOUTHBRIDGE_AMD_AGESA_YANGTZE |
WANG Siyuan | a9b01d1 | 2013-08-21 10:06:25 +0800 | [diff] [blame] | 185 | config AZ_PIN |
| 186 | hex |
| 187 | default 0xaa |
| 188 | help |
| 189 | bit 1,0 - pin 0 |
| 190 | bit 3,2 - pin 1 |
| 191 | bit 5,4 - pin 2 |
| 192 | bit 7,6 - pin 3 |
Siyuan Wang | 9157145 | 2013-07-09 17:32:42 +0800 | [diff] [blame] | 193 | endif |