Elyes HAOUAS | 8741510 | 2020-05-07 11:49:08 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 2 | |
efdesign98 | 05a89ab | 2011-06-20 17:38:49 -0700 | [diff] [blame] | 3 | config SOUTHBRIDGE_AMD_CIMX_SB800 |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 4 | bool |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 5 | default n |
Kyösti Mälkki | 8526c3a | 2014-01-03 08:20:50 +0200 | [diff] [blame] | 6 | select HAVE_USBDEBUG_OPTIONS |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 7 | select AMD_SB_CIMX |
Nico Huber | 3e1b3b1 | 2018-10-07 12:45:47 +0200 | [diff] [blame] | 8 | select HAVE_CF9_RESET |
| 9 | select HAVE_CF9_RESET_PREPARE |
Michał Żygowski | 2317b4f | 2019-11-28 12:59:44 +0100 | [diff] [blame] | 10 | select SOC_AMD_COMMON |
Michał Żygowski | 2317b4f | 2019-11-28 12:59:44 +0100 | [diff] [blame] | 11 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO |
Felix Held | 3136424 | 2021-07-23 19:18:02 +0200 | [diff] [blame] | 12 | select SOC_AMD_COMMON_BLOCK_ACPIMMIO_BIOSRAM |
Felix Held | 21cdf0d | 2020-11-23 16:24:29 +0100 | [diff] [blame] | 13 | select SOC_AMD_COMMON_BLOCK_PCI_MMCONF |
Arthur Heymans | b97a303 | 2020-08-07 22:30:04 +0200 | [diff] [blame^] | 14 | select BOOT_DEVICE_SUPPORTS_WRITES |
Frank Vibrans | 63e62b0 | 2011-02-14 18:38:14 +0000 | [diff] [blame] | 15 | |
efdesign98 | 05a89ab | 2011-06-20 17:38:49 -0700 | [diff] [blame] | 16 | if SOUTHBRIDGE_AMD_CIMX_SB800 |
Kerry Sheh | d7e856b9 | 2011-10-11 17:27:06 +0800 | [diff] [blame] | 17 | config ENABLE_IDE_COMBINED_MODE |
| 18 | bool "Enable SATA IDE combined mode" |
| 19 | default n |
| 20 | help |
| 21 | If Combined Mode is enabled. IDE controller is exposed and |
| 22 | SATA controller has control over Port0 through Port3, |
| 23 | IDE controller has control over Port4 and Port5. |
| 24 | |
| 25 | If Combined Mode is disabled, IDE controller is hidden and |
| 26 | SATA controller has full control of all 6 Ports when operating in non-IDE mode. |
| 27 | |
| 28 | config IDE_COMBINED_MODE |
| 29 | hex |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 30 | default 0x0 if ENABLE_IDE_COMBINED_MODE |
| 31 | default 0x1 if !ENABLE_IDE_COMBINED_MODE |
Kerry Sheh | d7e856b9 | 2011-10-11 17:27:06 +0800 | [diff] [blame] | 32 | |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 33 | choice |
| 34 | prompt "SATA Mode" |
Paul Menzel | ee5c111 | 2013-03-12 12:41:40 +0100 | [diff] [blame] | 35 | default SB800_SATA_AHCI |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 36 | help |
| 37 | Select the mode in which SATA should be driven. NATIVE AHCI, or RAID. |
Paul Menzel | bae3f06 | 2013-03-28 13:03:38 +0100 | [diff] [blame] | 38 | The default is AHCI. |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 39 | |
| 40 | config SB800_SATA_IDE |
| 41 | bool "NATIVE" |
| 42 | help |
Paul Menzel | bae3f06 | 2013-03-28 13:03:38 +0100 | [diff] [blame] | 43 | NATIVE does not require a ROM. |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 44 | |
| 45 | config SB800_SATA_AHCI |
| 46 | bool "AHCI" |
| 47 | help |
Paul Menzel | bae3f06 | 2013-03-28 13:03:38 +0100 | [diff] [blame] | 48 | AHCI is the default and may work with or without AHCI ROM. It depends on the payload support. |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 49 | For example, seabios does not require the AHCI ROM. |
| 50 | |
| 51 | config SB800_SATA_RAID |
| 52 | bool "RAID" |
| 53 | help |
| 54 | sb800 RAID mode must have the two required ROM files. |
| 55 | |
| 56 | endchoice |
| 57 | |
| 58 | config SB800_SATA_MODE |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 59 | hex |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 60 | depends on (SB800_SATA_IDE || SB800_SATA_RAID || SB800_SATA_AHCI) |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 61 | default 0x0 if SB800_SATA_IDE |
| 62 | default 0x1 if SB800_SATA_RAID |
| 63 | default 0x2 if SB800_SATA_AHCI |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 64 | |
Kerry She | 6209c82 | 2011-08-18 18:44:00 +0800 | [diff] [blame] | 65 | config SB_SUPERIO_HWM |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 66 | bool |
| 67 | default n |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 68 | |
| 69 | if SB800_SATA_AHCI |
| 70 | config AHCI_ROM_ID |
| 71 | string "AHCI device PCI IDs" |
| 72 | default "1002,4391" |
| 73 | |
| 74 | config SB800_AHCI_ROM |
| 75 | bool "Add a AHCI ROM" |
| 76 | |
| 77 | config AHCI_ROM_FILE |
| 78 | string "AHCI ROM path and filename" |
| 79 | depends on SB800_AHCI_ROM |
| 80 | default "site-local/sb800/ahci.bin" |
| 81 | endif |
| 82 | |
| 83 | if SB800_SATA_RAID |
| 84 | config RAID_ROM_ID |
| 85 | string "RAID device PCI IDs" |
| 86 | default "1002,4393" |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 87 | help |
| 88 | 1002,4392 for SATA NON-RAID5 module, 1002,4393 for SATA RAID5 mode |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 89 | |
| 90 | config RAID_ROM_FILE |
| 91 | string "RAID ROM path and filename" |
| 92 | depends on SB800_SATA_RAID |
| 93 | default "site-local/sb800/raid.bin" |
| 94 | |
| 95 | config RAID_MISC_ROM_FILE |
Martin Roth | 595e777 | 2015-04-26 18:53:26 -0600 | [diff] [blame] | 96 | string "RAID Misc ROM path and filename" |
| 97 | default "site-local/sb800/misc.bin" |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 98 | depends on SB800_SATA_RAID |
| 99 | |
Kerry Sheh | 55437c5 | 2011-10-12 11:42:59 +0800 | [diff] [blame] | 100 | config RAID_MISC_ROM_POSITION |
| 101 | hex "RAID Misc ROM Position" |
| 102 | default 0xFFF00000 |
| 103 | depends on SB800_SATA_RAID |
| 104 | help |
| 105 | The RAID ROM requires that the MISC ROM is located between the range |
| 106 | 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned. |
| 107 | The CONFIG_ROM_SIZE must larger than 0x100000. |
| 108 | |
Kerry Sheh | d4a0e7d | 2011-10-10 17:17:39 +0800 | [diff] [blame] | 109 | endif |
| 110 | |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 111 | config SB800_IMC_FWM |
| 112 | bool "Add IMC firmware" |
| 113 | default n |
Furquan Shaikh | c28984d | 2016-11-20 21:04:00 -0800 | [diff] [blame] | 114 | select SPI_FLASH_HAS_VOLATILE_GROUP if SPI_FLASH |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 115 | help |
| 116 | Add SB800 / Hudson 1 IMC Firmware to support the onboard fan control. |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 117 | |
| 118 | if SB800_IMC_FWM |
| 119 | |
| 120 | config SB800_IMC_FWM_FILE |
| 121 | string "IMC firmware path and filename" |
Patrick Georgi | 26e24cc | 2015-05-05 22:27:25 +0200 | [diff] [blame] | 122 | default "3rdparty/blobs/southbridge/amd/sb800/imc.bin" |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 123 | |
| 124 | choice |
| 125 | prompt "SB800 Firmware ROM Position" |
| 126 | |
| 127 | config SB800_FWM_AT_FFFA0000 |
| 128 | bool "0xFFFA0000" |
| 129 | help |
| 130 | The IMC and GEC ROMs requires a 'signature' located at one of several |
| 131 | fixed locations in memory. The location used shouldn't matter, just |
| 132 | select an area that doesn't conflict with anything else. |
| 133 | |
| 134 | config SB800_FWM_AT_FFF20000 |
| 135 | bool "0xFFF20000" |
| 136 | help |
| 137 | The IMC and GEC ROMs requires a 'signature' located at one of several |
| 138 | fixed locations in memory. The location used shouldn't matter, just |
| 139 | select an area that doesn't conflict with anything else. |
| 140 | |
| 141 | config SB800_FWM_AT_FFE20000 |
| 142 | depends on BOARD_ROMSIZE_KB_8192 || BOARD_ROMSIZE_KB_4096 || BOARD_ROMSIZE_KB_2048 |
| 143 | bool "0xFFE20000" |
| 144 | help |
| 145 | The IMC and GEC ROMs requires a 'signature' located at one of several |
| 146 | fixed locations in memory. The location used shouldn't matter, just |
| 147 | select an area that doesn't conflict with anything else. |
| 148 | |
| 149 | config SB800_FWM_AT_FFC20000 |
| 150 | depends on BOARD_ROMSIZE_KB_8192 || BOARD_ROMSIZE_KB_4096 |
| 151 | bool "0xFFC20000" |
| 152 | help |
| 153 | The IMC and GEC ROMs requires a 'signature' located at one of several |
| 154 | fixed locations in memory. The location used shouldn't matter, just |
| 155 | select an area that doesn't conflict with anything else. |
| 156 | |
| 157 | config SB800_FWM_AT_FF820000 |
| 158 | depends on BOARD_ROMSIZE_KB_8192 |
| 159 | bool "0xFF820000" |
| 160 | help |
| 161 | The IMC and GEC ROMs requires a 'signature' located at one of several |
| 162 | fixed locations in memory. The location used shouldn't matter, just |
| 163 | select an area that doesn't conflict with anything else. |
| 164 | |
| 165 | endchoice |
| 166 | |
| 167 | config SB800_FWM_POSITION |
| 168 | hex |
| 169 | default 0xFFFA0000 if SB800_FWM_AT_FFFA0000 |
| 170 | default 0xFFF20000 if SB800_FWM_AT_FFF20000 |
| 171 | default 0xFFE20000 if SB800_FWM_AT_FFE20000 |
| 172 | default 0xFFC20000 if SB800_FWM_AT_FFC20000 |
Martin Roth | 238780c | 2013-01-08 13:46:50 -0700 | [diff] [blame] | 173 | default 0xFF820000 if SB800_FWM_AT_FF820000 |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 174 | |
| 175 | endif #SB800_IMC_FWM |
| 176 | |
Kyösti Mälkki | a9bbdd3 | 2013-08-09 02:24:05 +0300 | [diff] [blame] | 177 | config EHCI_BAR |
| 178 | hex |
| 179 | default 0xfef00000 |
| 180 | |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 181 | choice |
| 182 | prompt "Fan Control" |
| 183 | default SB800_NO_FAN_CONTROL |
| 184 | help |
| 185 | Select the method of SB800 fan control to be used. None would be |
| 186 | for either fixed maximum speed fans connected to the SB800 or for |
| 187 | an external chip controlling the fan speeds. Manual control sets |
| 188 | up the SB800 fan control registers. IMC fan control uses the SB800 |
| 189 | IMC to actively control the fan speeds. |
| 190 | |
| 191 | config SB800_NO_FAN_CONTROL |
| 192 | bool "None" |
| 193 | help |
| 194 | No SB800 Fan control - Do not set up the SB800 fan control registers. |
| 195 | |
| 196 | config SB800_MANUAL_FAN_CONTROL |
| 197 | bool "Manual" |
| 198 | help |
| 199 | Configure the SB800 fan control registers in devicetree.cb. |
| 200 | |
| 201 | config SB800_IMC_FAN_CONTROL |
| 202 | bool "IMC Based" |
| 203 | depends on SB800_IMC_FWM |
| 204 | help |
| 205 | Set up the SB800 to use the IMC based Fan controller. This requires |
Elyes HAOUAS | 1bcd7fc | 2016-07-28 21:20:04 +0200 | [diff] [blame] | 206 | the IMC ROM from AMD. Configure the registers in devicetree.cb. |
Martin Roth | e899e51 | 2012-12-05 16:07:11 -0700 | [diff] [blame] | 207 | |
| 208 | endchoice |
| 209 | |
efdesign98 | 05a89ab | 2011-06-20 17:38:49 -0700 | [diff] [blame] | 210 | endif #SOUTHBRIDGE_AMD_CIMX_SB800 |