blob: 3c70c2ad0aba6eb4db9f6f107322942dc9a4913e [file] [log] [blame]
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03001##
2## This file is part of the coreboot project.
3##
Marc Jonesa84fa902016-09-20 20:33:42 -06004## Copyright (C) 2010-2016 Advanced Micro Devices, Inc.
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03005##
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##
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030015
Dave Frodinef9a4e62015-01-27 07:16:03 -070016config SOUTHBRIDGE_AMD_PI_BOLTON
17 bool
Dave Frodinef9a4e62015-01-27 07:16:03 -070018
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030019config SOUTHBRIDGE_AMD_PI_AVALON
20 bool
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030021
WANG Siyuanf2dfef02015-05-20 14:41:01 +080022config SOUTHBRIDGE_AMD_PI_KERN
23 bool
WANG Siyuanf2dfef02015-05-20 14:41:01 +080024
Martin Rothba566bd2015-06-28 09:44:31 -060025config HUDSON_DISABLE_IMC
26 bool
27
WANG Siyuanf2dfef02015-05-20 14:41:01 +080028if SOUTHBRIDGE_AMD_PI_AVALON || SOUTHBRIDGE_AMD_PI_BOLTON || SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030029
Nico Huberf4181052018-10-07 13:25:59 +020030config SOUTHBRIDGE_SPECIFIC_OPTIONS # dummy
31 def_bool y
32 select IOAPIC
33 select HAVE_USBDEBUG_OPTIONS
34 select HAVE_CF9_RESET
35 select HAVE_CF9_RESET_PREPARE
36
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030037config BOOTBLOCK_SOUTHBRIDGE_INIT
38 string
Dave Frodinbc21a412015-01-19 11:40:38 -070039 default "southbridge/amd/pi/hudson/bootblock.c"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030040
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030041config EHCI_BAR
42 hex
43 default 0xfef00000
44
45config HUDSON_XHCI_ENABLE
46 bool "Enable Hudson XHCI Controller"
47 default y
48 help
49 The XHCI controller must be enabled and the XHCI firmware
50 must be added in order to have USB 3.0 support configured
51 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +010052 controller if the XHCI firmware is available but the
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030053 XHCI controller is not enabled by coreboot.
54
55config HUDSON_XHCI_FWM
56 bool "Add xhci firmware"
57 default y
58 help
59 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
60
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030061config HUDSON_IMC_FWM
62 bool "Add IMC firmware"
63 depends on !HUDSON_DISABLE_IMC
64 default y
Dave Frodinfedd8e32015-01-21 07:26:26 -070065 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030066 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
67
68config HUDSON_GEC_FWM
69 bool
70 default n
Dave Frodinfedd8e32015-01-21 07:26:26 -070071 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030072 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
73 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
74
75config HUDSON_PSP
76 bool
Kyösti Mälkkifa2786a2017-07-07 23:05:40 +030077 default y if CPU_AMD_PI_00730F01 || CPU_AMD_PI_00660F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030078
79config HUDSON_XHCI_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070080 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020081 default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080082 default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030083 depends on HUDSON_XHCI_FWM
84
85config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070086 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020087 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080088 default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030089 depends on HUDSON_IMC_FWM
90
91config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070092 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030093 depends on HUDSON_GEC_FWM
94
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030095config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070096 depends on HUDSON_PSP
97 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020098 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
WANG Siyuanf2dfef02015-05-20 14:41:01 +080099 default "3rdparty/blobs/southbridge/amd/kern/PSP/AmdPubKeyCZ.bin" if CPU_AMD_PI_00660F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300100
101config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -0700102 int "SATA Mode"
103 default 0
104 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300105 help
106 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
107 The default is NATIVE.
108 0: NATIVE mode does not require a ROM.
109 1: RAID mode must have the two ROM files.
110 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
111 For example, seabios does not require the AHCI ROM.
112 3: LEGACY IDE
113 4: IDE to AHCI
114 5: AHCI7804: ROM Required, and AMD driver required in the OS.
115 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
116
117comment "NATIVE"
118 depends on HUDSON_SATA_MODE = 0
119
120comment "RAID"
121 depends on HUDSON_SATA_MODE = 1
122
123comment "AHCI"
124 depends on HUDSON_SATA_MODE = 2
125
126comment "LEGACY IDE"
127 depends on HUDSON_SATA_MODE = 3
128
129comment "IDE to AHCI"
130 depends on HUDSON_SATA_MODE = 4
131
132comment "AHCI7804"
133 depends on HUDSON_SATA_MODE = 5
134
135comment "IDE to AHCI7804"
136 depends on HUDSON_SATA_MODE = 6
137
138if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
139
140config AHCI_ROM_ID
141 string "AHCI device PCI IDs"
142 default "1022,7801" if HUDSON_SATA_MODE = 2
143 default "1022,7804" if HUDSON_SATA_MODE = 5
144
145config HUDSON_AHCI_ROM
146 bool "Add a AHCI ROM"
147
148config AHCI_ROM_FILE
149 string "AHCI ROM path and filename"
150 depends on HUDSON_AHCI_ROM
Dave Frodinbc21a412015-01-19 11:40:38 -0700151 default "src/southbridge/amd/pi/hudson/ahci.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300152
153endif
154
155if HUDSON_SATA_MODE = 1
156
157config RAID_ROM_ID
158 string "RAID device PCI IDs"
159 default "1022,7802"
Dave Frodinfedd8e32015-01-21 07:26:26 -0700160 help
161 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300162
163config RAID_ROM_FILE
164 string "RAID ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700165 default "src/southbridge/amd/pi/hudson/raid.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300166
167config RAID_MISC_ROM_FILE
168 string "RAID Misc ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700169 default "src/southbridge/amd/pi/hudson/misc.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300170
171config RAID_MISC_ROM_POSITION
172 hex "RAID Misc ROM Position"
173 default 0xFFF00000
174 help
175 The RAID ROM requires that the MISC ROM is located between the range
176 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
177 The CONFIG_ROM_SIZE must be larger than 0x100000.
178
179endif
180
181config HUDSON_LEGACY_FREE
182 bool "System is legacy free"
183 help
184 Select y if there is no keyboard controller in the system.
185 This sets variables in AGESA and ACPI.
186
187config AZ_PIN
188 hex
189 default 0xaa
190 help
191 bit 1,0 - pin 0
192 bit 3,2 - pin 1
193 bit 5,4 - pin 2
194 bit 7,6 - pin 3
Marshall Dawsonc6be0d82017-01-07 18:17:32 -0500195
196config AMDFW_OUTSIDE_CBFS
197 def_bool n
198 help
199 The AMDFW (PSP) is typically locatable in cbfs. Select this
200 option to manually attach the generated amdfw.rom at an
201 offset of 0x20000 from the bottom of the coreboot ROM image.
202
Marc Jones3eec9dd2017-04-09 18:00:40 -0600203config SERIRQ_CONTINUOUS_MODE
204 bool
205 default n
206 help
207 Set this option to y for serial IRQ in continuous mode.
208 Otherwise it is in quiet mode.
Marc Jones7f2c29b2017-04-26 21:55:03 -0600209
210config HUDSON_ACPI_IO_BASE
211 hex
Marc Jones7f2c29b2017-04-26 21:55:03 -0600212 default 0x800
213 help
214 Base address for the ACPI registers.
215 This value must match the hardcoded value of AGESA.
216
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300217endif
Zheng Bao22861382015-11-21 12:19:22 +0800218
219config HUDSON_UART
Zheng Baoe1e9ed32015-12-07 22:59:45 +0800220 bool "UART controller on Kern"
Zheng Bao22861382015-11-21 12:19:22 +0800221 default n
222 depends on SOUTHBRIDGE_AMD_PI_KERN
223 select DRIVERS_UART_8250MEM
224 select DRIVERS_UART_8250MEM_32
225 select NO_UART_ON_SUPERIO
Lee Leahy6ec72c92016-05-07 09:04:46 -0700226 select UART_OVERRIDE_REFCLK
Zheng Bao22861382015-11-21 12:19:22 +0800227 help
228 There are two UART controllers in Kern.
229 The UART registers are memory-mapped. UART
230 controller 0 registers range from FEDC_6000h
231 to FEDC_6FFFh. UART controller 1 registers
232 range from FEDC_8000h to FEDC_8FFFh.