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 | ## |
| 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 Menzel | a46a712 | 2013-02-23 18:37:27 +0100 | [diff] [blame] | 17 | ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 18 | ## |
| 19 | |
| 20 | config SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 21 | bool |
| 22 | select IOAPIC |
| 23 | select HAVE_USBDEBUG |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 24 | |
| 25 | config BOOTBLOCK_SOUTHBRIDGE_INIT |
| 26 | string |
| 27 | default "southbridge/amd/agesa/hudson/bootblock.c" |
| 28 | depends on SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 29 | |
| 30 | config SOUTHBRIDGE_AMD_HUDSON_SKIP_ISA_DMA_INIT |
| 31 | bool |
| 32 | default n |
| 33 | depends on SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 34 | |
| 35 | config EHCI_BAR |
| 36 | hex |
| 37 | default 0xfef00000 if SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 38 | |
| 39 | config EHCI_DEBUG_OFFSET |
| 40 | hex |
| 41 | default 0xe0 if SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 42 | |
| 43 | |
| 44 | if SOUTHBRIDGE_AMD_AGESA_HUDSON |
| 45 | |
| 46 | config HUDSON_XHCI_FWM |
| 47 | bool "Add xhci firmware" |
| 48 | default y |
| 49 | help |
| 50 | Add Hudson 2/3/4 XHCI Firmware to support the onboard usb3.0 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 51 | |
| 52 | config HUDSON_IMC_FWM |
| 53 | bool "Add imc firmware" |
| 54 | default y |
| 55 | help |
| 56 | Add Hudson 2/3/4 IMC Firmware to support the onboard fan control |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 57 | |
| 58 | config HUDSON_GEC_FWM |
Bruce Griffith | 5c2025c | 2013-04-23 14:31:55 -0600 | [diff] [blame^] | 59 | bool |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 60 | default n |
| 61 | help |
Bruce Griffith | 5c2025c | 2013-04-23 14:31:55 -0600 | [diff] [blame^] | 62 | Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC. |
| 63 | Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard. |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 64 | |
| 65 | config HUDSON_XHCI_FWM_FILE |
| 66 | string "XHCI firmware path and filename" |
zbao | 6db7f34 | 2012-07-19 16:38:12 +0800 | [diff] [blame] | 67 | default "3rdparty/southbridge/amd/hudson/xhci.bin" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 68 | depends on HUDSON_XHCI_FWM |
| 69 | |
| 70 | config HUDSON_IMC_FWM_FILE |
| 71 | string "IMC firmware path and filename" |
zbao | 6db7f34 | 2012-07-19 16:38:12 +0800 | [diff] [blame] | 72 | default "3rdparty/southbridge/amd/hudson/imc.bin" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 73 | depends on HUDSON_IMC_FWM |
| 74 | |
| 75 | config HUDSON_GEC_FWM_FILE |
| 76 | string "GEC firmware path and filename" |
zbao | 6db7f34 | 2012-07-19 16:38:12 +0800 | [diff] [blame] | 77 | default "3rdparty/southbridge/amd/hudson/gec.bin" |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 78 | depends on HUDSON_GEC_FWM |
| 79 | |
| 80 | config HUDSON_FWM |
| 81 | bool |
| 82 | default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM |
| 83 | default n if !HUDSON_XHCI_FWM && !HUDSON_IMC_FWM && !HUDSON_GEC_FWM |
| 84 | |
| 85 | if HUDSON_FWM |
| 86 | |
| 87 | config HUDSON_FWM_POSITION |
| 88 | hex "Hudson Firmware rom Position" |
| 89 | default 0xFFF20000 if BOARD_ROMSIZE_KB_1024 |
| 90 | default 0xFFE20000 if BOARD_ROMSIZE_KB_2048 |
| 91 | default 0xFFC20000 if BOARD_ROMSIZE_KB_4096 |
| 92 | default 0xFF820000 if BOARD_ROMSIZE_KB_8192 |
| 93 | default 0xFF020000 if BOARD_ROMSIZE_KB_16384 |
| 94 | help |
Dave Frodin | b578627 | 2012-11-06 13:37:08 -0700 | [diff] [blame] | 95 | Hudson requires the firmware MUST be located at |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 96 | a specific address (ROM start address + 0x20000), otherwise |
| 97 | xhci host Controller can not find or load the xhci firmware. |
| 98 | |
| 99 | The firmware start address is dependent on the ROM chip size. |
| 100 | The default offset is 0x20000 from the ROM start address, namely |
Dave Frodin | b578627 | 2012-11-06 13:37:08 -0700 | [diff] [blame] | 101 | 0xFFF20000 if flash chip size is 1M |
| 102 | 0xFFE20000 if flash chip size is 2M |
| 103 | 0xFFC20000 if flash chip size is 4M |
| 104 | 0xFF820000 if flash chip size is 8M |
| 105 | 0xFF020000 if flash chip size is 16M |
Martin Roth | 80e3516 | 2013-01-21 19:33:22 -0700 | [diff] [blame] | 106 | endif # HUDSON_FWM |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 107 | |
| 108 | choice |
| 109 | prompt "SATA Mode" |
| 110 | default HUDSON_SATA_IDE |
| 111 | help |
| 112 | Select the mode in which SATA should be driven. NATIVE AHCI, or RAID. |
| 113 | The default is NATIVE. |
| 114 | |
| 115 | config HUDSON_SATA_IDE |
| 116 | bool "NATIVE" |
| 117 | help |
| 118 | NATIVE is the default mode and does not require a ROM. |
| 119 | |
| 120 | config HUDSON_SATA_RAID |
| 121 | bool "RAID" |
| 122 | help |
| 123 | HUDSON RAID mode must have the two required ROM files. |
| 124 | |
| 125 | config HUDSON_SATA_AHCI |
| 126 | bool "AHCI" |
| 127 | help |
| 128 | AHCI may work with or without AHCI ROM. It depends on the payload support. |
| 129 | For example, seabios does not require the AHCI ROM. |
| 130 | |
| 131 | config HUDSON_SATA_LEGACY_IDE |
| 132 | bool "LEGACY IDE" |
| 133 | help |
| 134 | TODO |
| 135 | |
| 136 | config HUDSON_SATA_IDE2AHCI |
| 137 | bool "IDE to AHCI" |
| 138 | help |
| 139 | TODO |
| 140 | |
| 141 | config HUDSON_SATA_AHCI7804 |
| 142 | bool "AHCI7804" |
| 143 | help |
| 144 | AHCI ROM Required, and AMD driver required in the OS. |
| 145 | |
| 146 | config HUDSON_SATA_IDE2AHCI7804 |
| 147 | bool "IDE to AHCI7804" |
| 148 | help |
| 149 | AHCI ROM Required, and AMD driver required in the OS. |
| 150 | endchoice |
| 151 | |
| 152 | config HUDSON_SATA_MODE |
| 153 | hex |
| 154 | depends on (HUDSON_SATA_IDE || HUDSON_SATA_RAID || HUDSON_SATA_AHCI) |
| 155 | default "0x0" if HUDSON_SATA_IDE |
| 156 | default "0x1" if HUDSON_SATA_RAID |
| 157 | default "0x2" if HUDSON_SATA_AHCI |
| 158 | default "0x3" if HUDSON_SATA_LEGACY_IDE |
| 159 | default "0x4" if HUDSON_SATA_IDE2AHCI |
| 160 | default "0x5" if HUDSON_SATA_AHCI7804 |
| 161 | default "0x6" if HUDSON_SATA_IDE2AHCI7804 |
| 162 | |
| 163 | if HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804 |
| 164 | config AHCI_ROM_ID |
| 165 | string "AHCI device PCI IDs" |
| 166 | default "1022,7801" if HUDSON_SATA_AHCI |
| 167 | default "1022,7804" if HUDSON_SATA_AHCI7804 |
| 168 | |
| 169 | config HUDSON_AHCI_ROM |
| 170 | bool "Add a AHCI ROM" |
| 171 | |
| 172 | config AHCI_ROM_FILE |
| 173 | string "AHCI ROM path and filename" |
| 174 | depends on HUDSON_AHCI_ROM |
| 175 | default "src/southbridge/amd/agesa/hudson/ahci.bin" |
Martin Roth | 80e3516 | 2013-01-21 19:33:22 -0700 | [diff] [blame] | 176 | endif # HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804 |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 177 | |
| 178 | if HUDSON_SATA_RAID |
| 179 | config RAID_ROM_ID |
| 180 | string "RAID device PCI IDs" |
| 181 | default "1022,7802" |
| 182 | help |
| 183 | 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode |
| 184 | |
| 185 | config RAID_ROM_FILE |
| 186 | string "RAID ROM path and filename" |
| 187 | depends on HUDSON_SATA_RAID |
| 188 | default "src/southbridge/amd/agesa/hudson/raid.bin" |
| 189 | |
| 190 | config RAID_MISC_ROM_FILE |
| 191 | string "RAID Misc ROM path and filename" |
| 192 | default "src/southbridge/amd/agesa/hudson/misc.bin" |
| 193 | depends on HUDSON_SATA_RAID |
| 194 | |
| 195 | config RAID_MISC_ROM_POSITION |
| 196 | hex "RAID Misc ROM Position" |
| 197 | default 0xFFF00000 |
| 198 | depends on HUDSON_SATA_RAID |
| 199 | help |
| 200 | The RAID ROM requires that the MISC ROM is located between the range |
| 201 | 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned. |
| 202 | The CONFIG_ROM_SIZE must larger than 0x100000. |
Martin Roth | 80e3516 | 2013-01-21 19:33:22 -0700 | [diff] [blame] | 203 | endif # HUDSON_SATA_RAID |
zbao | 246e84b | 2012-07-13 18:47:03 +0800 | [diff] [blame] | 204 | |
Zheng Bao | f57d0dc | 2013-02-17 17:01:34 +0800 | [diff] [blame] | 205 | config S3_DATA_POS |
Zheng Bao | eb1d39b | 2012-08-27 17:45:01 +0800 | [diff] [blame] | 206 | hex "S3 volatile storage position" |
| 207 | default 0xFFFF0000 |
| 208 | depends on HAVE_ACPI_RESUME |
| 209 | help |
| 210 | For a system with S3 feature, the BIOS needs to save some data to |
Zheng Bao | 178df11 | 2013-02-17 16:41:14 +0800 | [diff] [blame] | 211 | non-volatile storage at cold boot stage. |
Zheng Bao | eb1d39b | 2012-08-27 17:45:01 +0800 | [diff] [blame] | 212 | |
Zheng Bao | 22ec9f9 | 2013-02-18 16:56:09 +0800 | [diff] [blame] | 213 | config S3_DATA_SIZE |
| 214 | int "S3 volatile storage size" |
| 215 | default 32768 |
| 216 | depends on HAVE_ACPI_RESUME |
| 217 | help |
| 218 | For a system with S3 feature, the BIOS needs to save some data to |
| 219 | non-volatile storage at cold boot stage. |
| 220 | |
Martin Roth | eac220f | 2013-01-16 09:07:30 -0700 | [diff] [blame] | 221 | config HUDSON_LEGACY_FREE |
| 222 | bool "System is legacy free" |
| 223 | help |
| 224 | Select y if there is no keyboard controller in the system. |
| 225 | This sets variables in AGESA and ACPI. |
Martin Roth | 80e3516 | 2013-01-21 19:33:22 -0700 | [diff] [blame] | 226 | |
| 227 | endif # SOUTHBRIDGE_AMD_AGESA_HUDSON |