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