blob: 89dcad608607cea2639bd35f5d464737ded38cff [file] [log] [blame]
Elyes HAOUAS87415102020-05-07 11:49:08 +02001# SPDX-License-Identifier: GPL-2.0-only
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03002
Dave Frodinef9a4e62015-01-27 07:16:03 -07003config SOUTHBRIDGE_AMD_PI_BOLTON
4 bool
Dave Frodinef9a4e62015-01-27 07:16:03 -07005
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03006config SOUTHBRIDGE_AMD_PI_AVALON
7 bool
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03008
WANG Siyuanf2dfef02015-05-20 14:41:01 +08009config SOUTHBRIDGE_AMD_PI_KERN
10 bool
WANG Siyuanf2dfef02015-05-20 14:41:01 +080011
12if SOUTHBRIDGE_AMD_PI_AVALON || SOUTHBRIDGE_AMD_PI_BOLTON || SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030013
Nico Huberf4181052018-10-07 13:25:59 +020014config SOUTHBRIDGE_SPECIFIC_OPTIONS # dummy
15 def_bool y
16 select IOAPIC
17 select HAVE_USBDEBUG_OPTIONS
18 select HAVE_CF9_RESET
19 select HAVE_CF9_RESET_PREPARE
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010020 select SOC_AMD_COMMON
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010021 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Nico Huberf4181052018-10-07 13:25:59 +020022
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030023config EHCI_BAR
24 hex
25 default 0xfef00000
26
27config HUDSON_XHCI_ENABLE
28 bool "Enable Hudson XHCI Controller"
29 default y
30 help
31 The XHCI controller must be enabled and the XHCI firmware
32 must be added in order to have USB 3.0 support configured
33 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +010034 controller if the XHCI firmware is available but the
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030035 XHCI controller is not enabled by coreboot.
36
37config HUDSON_XHCI_FWM
38 bool "Add xhci firmware"
39 default y
40 help
41 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
42
Mike Banon7515cd02019-01-09 02:37:07 +030043config HUDSON_IMC_ENABLE
44 bool
45 default n
46
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030047config HUDSON_IMC_FWM
48 bool "Add IMC firmware"
Mike Banon7515cd02019-01-09 02:37:07 +030049 depends on HUDSON_IMC_ENABLE
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030050 default y
Dave Frodinfedd8e32015-01-21 07:26:26 -070051 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030052 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
53
54config HUDSON_GEC_FWM
55 bool
56 default n
Dave Frodinfedd8e32015-01-21 07:26:26 -070057 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030058 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.
60
61config HUDSON_PSP
62 bool
Martin Rothc681a822020-11-16 17:19:17 -070063 default y if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030064
Zheng Baoc5e28ab2020-10-28 11:38:09 +080065config AMDFW_CONFIG_FILE
66 string "AMD PSP Firmware config file"
67 default "src/southbridge/amd/pi/hudson/fw_avl.cfg" if CPU_AMD_PI_00730F01
68
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030069config HUDSON_XHCI_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070070 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020071 default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkki841b2c82019-01-10 10:00:38 +020072 default "3rdparty/blobs/southbridge/amd/bolton/xhci.bin" if SOUTHBRIDGE_AMD_PI_BOLTON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080073 default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030074 depends on HUDSON_XHCI_FWM
75
76config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070077 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020078 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkki841b2c82019-01-10 10:00:38 +020079 default "3rdparty/blobs/southbridge/amd/bolton/imc.bin" if SOUTHBRIDGE_AMD_PI_BOLTON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080080 default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030081 depends on HUDSON_IMC_FWM
82
83config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070084 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030085 depends on HUDSON_GEC_FWM
86
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030087config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070088 depends on HUDSON_PSP
89 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020090 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030091
92config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -070093 int "SATA Mode"
Piotr Kleinschmidtcb030652019-10-08 16:16:44 +020094 default 2
Dave Frodinfedd8e32015-01-21 07:26:26 -070095 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030096 help
97 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
98 The default is NATIVE.
99 0: NATIVE mode does not require a ROM.
100 1: RAID mode must have the two ROM files.
101 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
102 For example, seabios does not require the AHCI ROM.
103 3: LEGACY IDE
104 4: IDE to AHCI
105 5: AHCI7804: ROM Required, and AMD driver required in the OS.
106 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
107
108comment "NATIVE"
109 depends on HUDSON_SATA_MODE = 0
110
111comment "RAID"
112 depends on HUDSON_SATA_MODE = 1
113
114comment "AHCI"
115 depends on HUDSON_SATA_MODE = 2
116
117comment "LEGACY IDE"
118 depends on HUDSON_SATA_MODE = 3
119
120comment "IDE to AHCI"
121 depends on HUDSON_SATA_MODE = 4
122
123comment "AHCI7804"
124 depends on HUDSON_SATA_MODE = 5
125
126comment "IDE to AHCI7804"
127 depends on HUDSON_SATA_MODE = 6
128
129if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
130
131config AHCI_ROM_ID
132 string "AHCI device PCI IDs"
133 default "1022,7801" if HUDSON_SATA_MODE = 2
134 default "1022,7804" if HUDSON_SATA_MODE = 5
135
136config HUDSON_AHCI_ROM
137 bool "Add a AHCI ROM"
138
139config AHCI_ROM_FILE
140 string "AHCI ROM path and filename"
141 depends on HUDSON_AHCI_ROM
Dave Frodinbc21a412015-01-19 11:40:38 -0700142 default "src/southbridge/amd/pi/hudson/ahci.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300143
144endif
145
146if HUDSON_SATA_MODE = 1
147
148config RAID_ROM_ID
149 string "RAID device PCI IDs"
150 default "1022,7802"
Dave Frodinfedd8e32015-01-21 07:26:26 -0700151 help
152 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300153
154config RAID_ROM_FILE
155 string "RAID ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700156 default "src/southbridge/amd/pi/hudson/raid.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300157
158config RAID_MISC_ROM_FILE
159 string "RAID Misc ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700160 default "src/southbridge/amd/pi/hudson/misc.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300161
162config RAID_MISC_ROM_POSITION
163 hex "RAID Misc ROM Position"
164 default 0xFFF00000
165 help
166 The RAID ROM requires that the MISC ROM is located between the range
167 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
168 The CONFIG_ROM_SIZE must be larger than 0x100000.
169
170endif
171
172config HUDSON_LEGACY_FREE
173 bool "System is legacy free"
174 help
175 Select y if there is no keyboard controller in the system.
176 This sets variables in AGESA and ACPI.
177
178config AZ_PIN
179 hex
180 default 0xaa
181 help
182 bit 1,0 - pin 0
183 bit 3,2 - pin 1
184 bit 5,4 - pin 2
185 bit 7,6 - pin 3
Marshall Dawsonc6be0d82017-01-07 18:17:32 -0500186
187config AMDFW_OUTSIDE_CBFS
188 def_bool n
189 help
190 The AMDFW (PSP) is typically locatable in cbfs. Select this
191 option to manually attach the generated amdfw.rom at an
192 offset of 0x20000 from the bottom of the coreboot ROM image.
193
Marc Jones3eec9dd2017-04-09 18:00:40 -0600194config SERIRQ_CONTINUOUS_MODE
195 bool
196 default n
197 help
198 Set this option to y for serial IRQ in continuous mode.
199 Otherwise it is in quiet mode.
Marc Jones7f2c29b2017-04-26 21:55:03 -0600200
201config HUDSON_ACPI_IO_BASE
202 hex
Marc Jones7f2c29b2017-04-26 21:55:03 -0600203 default 0x800
204 help
205 Base address for the ACPI registers.
206 This value must match the hardcoded value of AGESA.
207
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300208endif
Zheng Bao22861382015-11-21 12:19:22 +0800209
210config HUDSON_UART
Zheng Baoe1e9ed32015-12-07 22:59:45 +0800211 bool "UART controller on Kern"
Zheng Bao22861382015-11-21 12:19:22 +0800212 default n
213 depends on SOUTHBRIDGE_AMD_PI_KERN
214 select DRIVERS_UART_8250MEM
215 select DRIVERS_UART_8250MEM_32
216 select NO_UART_ON_SUPERIO
Lee Leahy6ec72c92016-05-07 09:04:46 -0700217 select UART_OVERRIDE_REFCLK
Zheng Bao22861382015-11-21 12:19:22 +0800218 help
219 There are two UART controllers in Kern.
220 The UART registers are memory-mapped. UART
221 controller 0 registers range from FEDC_6000h
222 to FEDC_6FFFh. UART controller 1 registers
223 range from FEDC_8000h to FEDC_8FFFh.