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