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