blob: 6280f3acd0d6d125352716ec41efc2398c70b28b [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
Kyösti Mälkkib8cb1422020-06-23 21:36:14 +030022 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Held21cdf0d2020-11-23 16:24:29 +010023 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Nico Huberf4181052018-10-07 13:25:59 +020024
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030025config EHCI_BAR
26 hex
27 default 0xfef00000
28
29config HUDSON_XHCI_ENABLE
30 bool "Enable Hudson XHCI Controller"
31 default y
32 help
33 The XHCI controller must be enabled and the XHCI firmware
34 must be added in order to have USB 3.0 support configured
35 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +010036 controller if the XHCI firmware is available but the
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030037 XHCI controller is not enabled by coreboot.
38
39config HUDSON_XHCI_FWM
40 bool "Add xhci firmware"
41 default y
42 help
43 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
44
Mike Banon7515cd02019-01-09 02:37:07 +030045config HUDSON_IMC_ENABLE
46 bool
47 default n
48
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030049config HUDSON_IMC_FWM
50 bool "Add IMC firmware"
Mike Banon7515cd02019-01-09 02:37:07 +030051 depends on HUDSON_IMC_ENABLE
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030052 default y
Dave Frodinfedd8e32015-01-21 07:26:26 -070053 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030054 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
55
56config HUDSON_GEC_FWM
57 bool
58 default n
Dave Frodinfedd8e32015-01-21 07:26:26 -070059 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030060 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
61 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
62
63config HUDSON_PSP
64 bool
Martin Rothc681a822020-11-16 17:19:17 -070065 default y if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030066
Zheng Baoc5e28ab2020-10-28 11:38:09 +080067config AMDFW_CONFIG_FILE
68 string "AMD PSP Firmware config file"
69 default "src/southbridge/amd/pi/hudson/fw_avl.cfg" if CPU_AMD_PI_00730F01
70
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030071config HUDSON_XHCI_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070072 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020073 default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkki841b2c82019-01-10 10:00:38 +020074 default "3rdparty/blobs/southbridge/amd/bolton/xhci.bin" if SOUTHBRIDGE_AMD_PI_BOLTON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080075 default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030076 depends on HUDSON_XHCI_FWM
77
78config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070079 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020080 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkki841b2c82019-01-10 10:00:38 +020081 default "3rdparty/blobs/southbridge/amd/bolton/imc.bin" if SOUTHBRIDGE_AMD_PI_BOLTON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080082 default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030083 depends on HUDSON_IMC_FWM
84
85config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070086 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030087 depends on HUDSON_GEC_FWM
88
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030089config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070090 depends on HUDSON_PSP
91 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020092 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030093
94config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -070095 int "SATA Mode"
Piotr Kleinschmidtcb030652019-10-08 16:16:44 +020096 default 2
Dave Frodinfedd8e32015-01-21 07:26:26 -070097 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030098 help
99 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
100 The default is NATIVE.
101 0: NATIVE mode does not require a ROM.
102 1: RAID mode must have the two ROM files.
103 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
104 For example, seabios does not require the AHCI ROM.
105 3: LEGACY IDE
106 4: IDE to AHCI
107 5: AHCI7804: ROM Required, and AMD driver required in the OS.
108 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
109
110comment "NATIVE"
111 depends on HUDSON_SATA_MODE = 0
112
113comment "RAID"
114 depends on HUDSON_SATA_MODE = 1
115
116comment "AHCI"
117 depends on HUDSON_SATA_MODE = 2
118
119comment "LEGACY IDE"
120 depends on HUDSON_SATA_MODE = 3
121
122comment "IDE to AHCI"
123 depends on HUDSON_SATA_MODE = 4
124
125comment "AHCI7804"
126 depends on HUDSON_SATA_MODE = 5
127
128comment "IDE to AHCI7804"
129 depends on HUDSON_SATA_MODE = 6
130
131if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
132
133config AHCI_ROM_ID
134 string "AHCI device PCI IDs"
135 default "1022,7801" if HUDSON_SATA_MODE = 2
136 default "1022,7804" if HUDSON_SATA_MODE = 5
137
138config HUDSON_AHCI_ROM
139 bool "Add a AHCI ROM"
140
141config AHCI_ROM_FILE
142 string "AHCI ROM path and filename"
143 depends on HUDSON_AHCI_ROM
Dave Frodinbc21a412015-01-19 11:40:38 -0700144 default "src/southbridge/amd/pi/hudson/ahci.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300145
146endif
147
148if HUDSON_SATA_MODE = 1
149
150config RAID_ROM_ID
151 string "RAID device PCI IDs"
152 default "1022,7802"
Dave Frodinfedd8e32015-01-21 07:26:26 -0700153 help
154 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300155
156config RAID_ROM_FILE
157 string "RAID ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700158 default "src/southbridge/amd/pi/hudson/raid.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300159
160config RAID_MISC_ROM_FILE
161 string "RAID Misc ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700162 default "src/southbridge/amd/pi/hudson/misc.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300163
164config RAID_MISC_ROM_POSITION
165 hex "RAID Misc ROM Position"
166 default 0xFFF00000
167 help
168 The RAID ROM requires that the MISC ROM is located between the range
169 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
170 The CONFIG_ROM_SIZE must be larger than 0x100000.
171
172endif
173
174config HUDSON_LEGACY_FREE
175 bool "System is legacy free"
176 help
177 Select y if there is no keyboard controller in the system.
178 This sets variables in AGESA and ACPI.
179
180config AZ_PIN
181 hex
182 default 0xaa
183 help
184 bit 1,0 - pin 0
185 bit 3,2 - pin 1
186 bit 5,4 - pin 2
187 bit 7,6 - pin 3
Marshall Dawsonc6be0d82017-01-07 18:17:32 -0500188
189config AMDFW_OUTSIDE_CBFS
190 def_bool n
191 help
192 The AMDFW (PSP) is typically locatable in cbfs. Select this
193 option to manually attach the generated amdfw.rom at an
194 offset of 0x20000 from the bottom of the coreboot ROM image.
195
Marc Jones3eec9dd2017-04-09 18:00:40 -0600196config SERIRQ_CONTINUOUS_MODE
197 bool
198 default n
199 help
200 Set this option to y for serial IRQ in continuous mode.
201 Otherwise it is in quiet mode.
Marc Jones7f2c29b2017-04-26 21:55:03 -0600202
203config HUDSON_ACPI_IO_BASE
204 hex
Marc Jones7f2c29b2017-04-26 21:55:03 -0600205 default 0x800
206 help
207 Base address for the ACPI registers.
208 This value must match the hardcoded value of AGESA.
209
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300210endif
Zheng Bao22861382015-11-21 12:19:22 +0800211
212config HUDSON_UART
Zheng Baoe1e9ed32015-12-07 22:59:45 +0800213 bool "UART controller on Kern"
Zheng Bao22861382015-11-21 12:19:22 +0800214 default n
215 depends on SOUTHBRIDGE_AMD_PI_KERN
216 select DRIVERS_UART_8250MEM
217 select DRIVERS_UART_8250MEM_32
218 select NO_UART_ON_SUPERIO
Lee Leahy6ec72c92016-05-07 09:04:46 -0700219 select UART_OVERRIDE_REFCLK
Zheng Bao22861382015-11-21 12:19:22 +0800220 help
221 There are two UART controllers in Kern.
222 The UART registers are memory-mapped. UART
223 controller 0 registers range from FEDC_6000h
224 to FEDC_6FFFh. UART controller 1 registers
225 range from FEDC_8000h to FEDC_8FFFh.