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