blob: fa60d176545a14486b64def199e313764e59d2b3 [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
3config SOUTHBRIDGE_AMD_PI_AVALON
4 bool
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03005
WANG Siyuanf2dfef02015-05-20 14:41:01 +08006config SOUTHBRIDGE_AMD_PI_KERN
7 bool
WANG Siyuanf2dfef02015-05-20 14:41:01 +08008
Felix Held70d1c722021-04-09 22:22:09 +02009if SOUTHBRIDGE_AMD_PI_AVALON || SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030010
Elyes HAOUAS00b5f532021-02-01 09:45:08 +010011config SOUTHBRIDGE_SPECIFIC_OPTIONS
Nico Huberf4181052018-10-07 13:25:59 +020012 def_bool y
13 select IOAPIC
14 select HAVE_USBDEBUG_OPTIONS
15 select HAVE_CF9_RESET
16 select HAVE_CF9_RESET_PREPARE
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010017 select SOC_AMD_COMMON
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010018 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held31364242021-07-23 19:18:02 +020019 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_BIOSRAM
Kyösti Mälkkib8cb1422020-06-23 21:36:14 +030020 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Held21cdf0d2020-11-23 16:24:29 +010021 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
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
WANG Siyuanf2dfef02015-05-20 14:41:01 +080072 default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030073 depends on HUDSON_XHCI_FWM
74
75config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070076 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020077 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080078 default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030079 depends on HUDSON_IMC_FWM
80
81config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070082 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030083 depends on HUDSON_GEC_FWM
84
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030085config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070086 depends on HUDSON_PSP
87 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020088 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030089
90config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -070091 int "SATA Mode"
Piotr Kleinschmidtcb030652019-10-08 16:16:44 +020092 default 2
Dave Frodinfedd8e32015-01-21 07:26:26 -070093 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030094 help
95 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
96 The default is NATIVE.
97 0: NATIVE mode does not require a ROM.
98 1: RAID mode must have the two ROM files.
99 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
100 For example, seabios does not require the AHCI ROM.
101 3: LEGACY IDE
102 4: IDE to AHCI
103 5: AHCI7804: ROM Required, and AMD driver required in the OS.
104 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
105
106comment "NATIVE"
107 depends on HUDSON_SATA_MODE = 0
108
109comment "RAID"
110 depends on HUDSON_SATA_MODE = 1
111
112comment "AHCI"
113 depends on HUDSON_SATA_MODE = 2
114
115comment "LEGACY IDE"
116 depends on HUDSON_SATA_MODE = 3
117
118comment "IDE to AHCI"
119 depends on HUDSON_SATA_MODE = 4
120
121comment "AHCI7804"
122 depends on HUDSON_SATA_MODE = 5
123
124comment "IDE to AHCI7804"
125 depends on HUDSON_SATA_MODE = 6
126
127if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
128
129config AHCI_ROM_ID
130 string "AHCI device PCI IDs"
131 default "1022,7801" if HUDSON_SATA_MODE = 2
132 default "1022,7804" if HUDSON_SATA_MODE = 5
133
134config HUDSON_AHCI_ROM
135 bool "Add a AHCI ROM"
136
137config AHCI_ROM_FILE
138 string "AHCI ROM path and filename"
139 depends on HUDSON_AHCI_ROM
Dave Frodinbc21a412015-01-19 11:40:38 -0700140 default "src/southbridge/amd/pi/hudson/ahci.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300141
142endif
143
144if HUDSON_SATA_MODE = 1
145
146config RAID_ROM_ID
147 string "RAID device PCI IDs"
148 default "1022,7802"
Dave Frodinfedd8e32015-01-21 07:26:26 -0700149 help
150 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300151
152config RAID_ROM_FILE
153 string "RAID ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700154 default "src/southbridge/amd/pi/hudson/raid.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300155
156config RAID_MISC_ROM_FILE
157 string "RAID Misc ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700158 default "src/southbridge/amd/pi/hudson/misc.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300159
160config RAID_MISC_ROM_POSITION
161 hex "RAID Misc ROM Position"
162 default 0xFFF00000
163 help
164 The RAID ROM requires that the MISC ROM is located between the range
165 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
166 The CONFIG_ROM_SIZE must be larger than 0x100000.
167
168endif
169
170config HUDSON_LEGACY_FREE
171 bool "System is legacy free"
172 help
173 Select y if there is no keyboard controller in the system.
174 This sets variables in AGESA and ACPI.
175
176config AZ_PIN
177 hex
178 default 0xaa
179 help
180 bit 1,0 - pin 0
181 bit 3,2 - pin 1
182 bit 5,4 - pin 2
183 bit 7,6 - pin 3
Marshall Dawsonc6be0d82017-01-07 18:17:32 -0500184
185config AMDFW_OUTSIDE_CBFS
186 def_bool n
187 help
188 The AMDFW (PSP) is typically locatable in cbfs. Select this
189 option to manually attach the generated amdfw.rom at an
190 offset of 0x20000 from the bottom of the coreboot ROM image.
191
Marc Jones3eec9dd2017-04-09 18:00:40 -0600192config SERIRQ_CONTINUOUS_MODE
193 bool
194 default n
195 help
196 Set this option to y for serial IRQ in continuous mode.
197 Otherwise it is in quiet mode.
Marc Jones7f2c29b2017-04-26 21:55:03 -0600198
199config HUDSON_ACPI_IO_BASE
200 hex
Marc Jones7f2c29b2017-04-26 21:55:03 -0600201 default 0x800
202 help
203 Base address for the ACPI registers.
204 This value must match the hardcoded value of AGESA.
205
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300206endif
Zheng Bao22861382015-11-21 12:19:22 +0800207
208config HUDSON_UART
Zheng Baoe1e9ed32015-12-07 22:59:45 +0800209 bool "UART controller on Kern"
Zheng Bao22861382015-11-21 12:19:22 +0800210 default n
211 depends on SOUTHBRIDGE_AMD_PI_KERN
212 select DRIVERS_UART_8250MEM
213 select DRIVERS_UART_8250MEM_32
214 select NO_UART_ON_SUPERIO
Lee Leahy6ec72c92016-05-07 09:04:46 -0700215 select UART_OVERRIDE_REFCLK
Zheng Bao22861382015-11-21 12:19:22 +0800216 help
217 There are two UART controllers in Kern.
218 The UART registers are memory-mapped. UART
219 controller 0 registers range from FEDC_6000h
220 to FEDC_6FFFh. UART controller 1 registers
221 range from FEDC_8000h to FEDC_8FFFh.