Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 1 | ## |
| 2 | ## This file is part of the coreboot project. |
| 3 | ## |
Marc Jones | a84fa90 | 2016-09-20 20:33:42 -0600 | [diff] [blame] | 4 | ## Copyright (C) 2010-2016 Advanced Micro Devices, Inc. |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 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 | ## |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 15 | |
Dave Frodin | ef9a4e6 | 2015-01-27 07:16:03 -0700 | [diff] [blame] | 16 | config SOUTHBRIDGE_AMD_PI_BOLTON |
| 17 | bool |
Dave Frodin | ef9a4e6 | 2015-01-27 07:16:03 -0700 | [diff] [blame] | 18 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 19 | config SOUTHBRIDGE_AMD_PI_AVALON |
| 20 | bool |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 21 | |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 22 | config SOUTHBRIDGE_AMD_PI_KERN |
| 23 | bool |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 24 | |
Martin Roth | ba566bd | 2015-06-28 09:44:31 -0600 | [diff] [blame] | 25 | config HUDSON_DISABLE_IMC |
| 26 | bool |
| 27 | |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 28 | if SOUTHBRIDGE_AMD_PI_AVALON || SOUTHBRIDGE_AMD_PI_BOLTON || SOUTHBRIDGE_AMD_PI_KERN |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 29 | |
Nico Huber | f418105 | 2018-10-07 13:25:59 +0200 | [diff] [blame] | 30 | config SOUTHBRIDGE_SPECIFIC_OPTIONS # dummy |
| 31 | def_bool y |
| 32 | select IOAPIC |
| 33 | select HAVE_USBDEBUG_OPTIONS |
| 34 | select HAVE_CF9_RESET |
| 35 | select HAVE_CF9_RESET_PREPARE |
| 36 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 37 | config BOOTBLOCK_SOUTHBRIDGE_INIT |
| 38 | string |
Dave Frodin | bc21a41 | 2015-01-19 11:40:38 -0700 | [diff] [blame] | 39 | default "southbridge/amd/pi/hudson/bootblock.c" |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 40 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 41 | config EHCI_BAR |
| 42 | hex |
| 43 | default 0xfef00000 |
| 44 | |
| 45 | config HUDSON_XHCI_ENABLE |
| 46 | bool "Enable Hudson XHCI Controller" |
| 47 | default y |
| 48 | help |
| 49 | The XHCI controller must be enabled and the XHCI firmware |
| 50 | must be added in order to have USB 3.0 support configured |
| 51 | by coreboot. The OS will be responsible for enabling the XHCI |
Jonathan Neuschäfer | 45e6c82 | 2018-12-11 17:53:07 +0100 | [diff] [blame^] | 52 | controller if the XHCI firmware is available but the |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 53 | XHCI controller is not enabled by coreboot. |
| 54 | |
| 55 | config HUDSON_XHCI_FWM |
| 56 | bool "Add xhci firmware" |
| 57 | default y |
| 58 | help |
| 59 | Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0 |
| 60 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 61 | config HUDSON_IMC_FWM |
| 62 | bool "Add IMC firmware" |
| 63 | depends on !HUDSON_DISABLE_IMC |
| 64 | default y |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 65 | help |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 66 | Add Hudson 2/3/4 IMC Firmware to support the onboard fan control |
| 67 | |
| 68 | config HUDSON_GEC_FWM |
| 69 | bool |
| 70 | default n |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 71 | help |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 72 | Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC. |
| 73 | Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard. |
| 74 | |
| 75 | config HUDSON_PSP |
| 76 | bool |
Kyösti Mälkki | fa2786a | 2017-07-07 23:05:40 +0300 | [diff] [blame] | 77 | default y if CPU_AMD_PI_00730F01 || CPU_AMD_PI_00660F01 |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 78 | |
| 79 | config HUDSON_XHCI_FWM_FILE |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 80 | string "XHCI firmware path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 81 | default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 82 | default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 83 | depends on HUDSON_XHCI_FWM |
| 84 | |
| 85 | config HUDSON_IMC_FWM_FILE |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 86 | string "IMC firmware path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 87 | default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 88 | default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 89 | depends on HUDSON_IMC_FWM |
| 90 | |
| 91 | config HUDSON_GEC_FWM_FILE |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 92 | string "GEC firmware path and filename" |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 93 | depends on HUDSON_GEC_FWM |
| 94 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 95 | config AMD_PUBKEY_FILE |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 96 | depends on HUDSON_PSP |
| 97 | string "AMD public Key" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 98 | default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01 |
WANG Siyuan | f2dfef0 | 2015-05-20 14:41:01 +0800 | [diff] [blame] | 99 | default "3rdparty/blobs/southbridge/amd/kern/PSP/AmdPubKeyCZ.bin" if CPU_AMD_PI_00660F01 |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 100 | |
| 101 | config HUDSON_SATA_MODE |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 102 | int "SATA Mode" |
| 103 | default 0 |
| 104 | range 0 6 |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 105 | help |
| 106 | Select the mode in which SATA should be driven. NATIVE AHCI, or RAID. |
| 107 | The default is NATIVE. |
| 108 | 0: NATIVE mode does not require a ROM. |
| 109 | 1: RAID mode must have the two ROM files. |
| 110 | 2: AHCI may work with or without AHCI ROM. It depends on the payload support. |
| 111 | For example, seabios does not require the AHCI ROM. |
| 112 | 3: LEGACY IDE |
| 113 | 4: IDE to AHCI |
| 114 | 5: AHCI7804: ROM Required, and AMD driver required in the OS. |
| 115 | 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS. |
| 116 | |
| 117 | comment "NATIVE" |
| 118 | depends on HUDSON_SATA_MODE = 0 |
| 119 | |
| 120 | comment "RAID" |
| 121 | depends on HUDSON_SATA_MODE = 1 |
| 122 | |
| 123 | comment "AHCI" |
| 124 | depends on HUDSON_SATA_MODE = 2 |
| 125 | |
| 126 | comment "LEGACY IDE" |
| 127 | depends on HUDSON_SATA_MODE = 3 |
| 128 | |
| 129 | comment "IDE to AHCI" |
| 130 | depends on HUDSON_SATA_MODE = 4 |
| 131 | |
| 132 | comment "AHCI7804" |
| 133 | depends on HUDSON_SATA_MODE = 5 |
| 134 | |
| 135 | comment "IDE to AHCI7804" |
| 136 | depends on HUDSON_SATA_MODE = 6 |
| 137 | |
| 138 | if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5 |
| 139 | |
| 140 | config AHCI_ROM_ID |
| 141 | string "AHCI device PCI IDs" |
| 142 | default "1022,7801" if HUDSON_SATA_MODE = 2 |
| 143 | default "1022,7804" if HUDSON_SATA_MODE = 5 |
| 144 | |
| 145 | config HUDSON_AHCI_ROM |
| 146 | bool "Add a AHCI ROM" |
| 147 | |
| 148 | config AHCI_ROM_FILE |
| 149 | string "AHCI ROM path and filename" |
| 150 | depends on HUDSON_AHCI_ROM |
Dave Frodin | bc21a41 | 2015-01-19 11:40:38 -0700 | [diff] [blame] | 151 | default "src/southbridge/amd/pi/hudson/ahci.bin" |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 152 | |
| 153 | endif |
| 154 | |
| 155 | if HUDSON_SATA_MODE = 1 |
| 156 | |
| 157 | config RAID_ROM_ID |
| 158 | string "RAID device PCI IDs" |
| 159 | default "1022,7802" |
Dave Frodin | fedd8e3 | 2015-01-21 07:26:26 -0700 | [diff] [blame] | 160 | help |
| 161 | 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 162 | |
| 163 | config RAID_ROM_FILE |
| 164 | string "RAID ROM path and filename" |
Dave Frodin | bc21a41 | 2015-01-19 11:40:38 -0700 | [diff] [blame] | 165 | default "src/southbridge/amd/pi/hudson/raid.bin" |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 166 | |
| 167 | config RAID_MISC_ROM_FILE |
| 168 | string "RAID Misc ROM path and filename" |
Dave Frodin | bc21a41 | 2015-01-19 11:40:38 -0700 | [diff] [blame] | 169 | default "src/southbridge/amd/pi/hudson/misc.bin" |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 170 | |
| 171 | config RAID_MISC_ROM_POSITION |
| 172 | hex "RAID Misc ROM Position" |
| 173 | default 0xFFF00000 |
| 174 | help |
| 175 | The RAID ROM requires that the MISC ROM is located between the range |
| 176 | 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned. |
| 177 | The CONFIG_ROM_SIZE must be larger than 0x100000. |
| 178 | |
| 179 | endif |
| 180 | |
| 181 | config HUDSON_LEGACY_FREE |
| 182 | bool "System is legacy free" |
| 183 | help |
| 184 | Select y if there is no keyboard controller in the system. |
| 185 | This sets variables in AGESA and ACPI. |
| 186 | |
| 187 | config AZ_PIN |
| 188 | hex |
| 189 | default 0xaa |
| 190 | help |
| 191 | bit 1,0 - pin 0 |
| 192 | bit 3,2 - pin 1 |
| 193 | bit 5,4 - pin 2 |
| 194 | bit 7,6 - pin 3 |
Marshall Dawson | c6be0d8 | 2017-01-07 18:17:32 -0500 | [diff] [blame] | 195 | |
| 196 | config AMDFW_OUTSIDE_CBFS |
| 197 | def_bool n |
| 198 | help |
| 199 | The AMDFW (PSP) is typically locatable in cbfs. Select this |
| 200 | option to manually attach the generated amdfw.rom at an |
| 201 | offset of 0x20000 from the bottom of the coreboot ROM image. |
| 202 | |
Marc Jones | 3eec9dd | 2017-04-09 18:00:40 -0600 | [diff] [blame] | 203 | config SERIRQ_CONTINUOUS_MODE |
| 204 | bool |
| 205 | default n |
| 206 | help |
| 207 | Set this option to y for serial IRQ in continuous mode. |
| 208 | Otherwise it is in quiet mode. |
Marc Jones | 7f2c29b | 2017-04-26 21:55:03 -0600 | [diff] [blame] | 209 | |
| 210 | config HUDSON_ACPI_IO_BASE |
| 211 | hex |
Marc Jones | 7f2c29b | 2017-04-26 21:55:03 -0600 | [diff] [blame] | 212 | default 0x800 |
| 213 | help |
| 214 | Base address for the ACPI registers. |
| 215 | This value must match the hardcoded value of AGESA. |
| 216 | |
Kyösti Mälkki | e8b4da2 | 2014-10-21 18:22:32 +0300 | [diff] [blame] | 217 | endif |
Zheng Bao | 2286138 | 2015-11-21 12:19:22 +0800 | [diff] [blame] | 218 | |
| 219 | config HUDSON_UART |
Zheng Bao | e1e9ed3 | 2015-12-07 22:59:45 +0800 | [diff] [blame] | 220 | bool "UART controller on Kern" |
Zheng Bao | 2286138 | 2015-11-21 12:19:22 +0800 | [diff] [blame] | 221 | default n |
| 222 | depends on SOUTHBRIDGE_AMD_PI_KERN |
| 223 | select DRIVERS_UART_8250MEM |
| 224 | select DRIVERS_UART_8250MEM_32 |
| 225 | select NO_UART_ON_SUPERIO |
Lee Leahy | 6ec72c9 | 2016-05-07 09:04:46 -0700 | [diff] [blame] | 226 | select UART_OVERRIDE_REFCLK |
Zheng Bao | 2286138 | 2015-11-21 12:19:22 +0800 | [diff] [blame] | 227 | help |
| 228 | There are two UART controllers in Kern. |
| 229 | The UART registers are memory-mapped. UART |
| 230 | controller 0 registers range from FEDC_6000h |
| 231 | to FEDC_6FFFh. UART controller 1 registers |
| 232 | range from FEDC_8000h to FEDC_8FFFh. |