blob: 76ba480280f52e75bbf0b161f03e971f084bcc4d [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
25if SOUTHBRIDGE_AMD_PI_AVALON || SOUTHBRIDGE_AMD_PI_BOLTON || SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030026
Nico Huberf4181052018-10-07 13:25:59 +020027config SOUTHBRIDGE_SPECIFIC_OPTIONS # dummy
28 def_bool y
29 select IOAPIC
30 select HAVE_USBDEBUG_OPTIONS
31 select HAVE_CF9_RESET
32 select HAVE_CF9_RESET_PREPARE
33
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030034config BOOTBLOCK_SOUTHBRIDGE_INIT
35 string
Dave Frodinbc21a412015-01-19 11:40:38 -070036 default "southbridge/amd/pi/hudson/bootblock.c"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030037
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030038config EHCI_BAR
39 hex
40 default 0xfef00000
41
42config HUDSON_XHCI_ENABLE
43 bool "Enable Hudson XHCI Controller"
44 default y
45 help
46 The XHCI controller must be enabled and the XHCI firmware
47 must be added in order to have USB 3.0 support configured
48 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +010049 controller if the XHCI firmware is available but the
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030050 XHCI controller is not enabled by coreboot.
51
52config HUDSON_XHCI_FWM
53 bool "Add xhci firmware"
54 default y
55 help
56 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
57
Mike Banon7515cd02019-01-09 02:37:07 +030058config HUDSON_IMC_ENABLE
59 bool
60 default n
61
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030062config HUDSON_IMC_FWM
63 bool "Add IMC firmware"
Mike Banon7515cd02019-01-09 02:37:07 +030064 depends on HUDSON_IMC_ENABLE
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030065 default y
Dave Frodinfedd8e32015-01-21 07:26:26 -070066 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030067 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
68
69config HUDSON_GEC_FWM
70 bool
71 default n
Dave Frodinfedd8e32015-01-21 07:26:26 -070072 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030073 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
74 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
75
76config HUDSON_PSP
77 bool
Kyösti Mälkkifa2786a2017-07-07 23:05:40 +030078 default y if CPU_AMD_PI_00730F01 || CPU_AMD_PI_00660F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030079
80config HUDSON_XHCI_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070081 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020082 default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080083 default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030084 depends on HUDSON_XHCI_FWM
85
86config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070087 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020088 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080089 default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030090 depends on HUDSON_IMC_FWM
91
92config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070093 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030094 depends on HUDSON_GEC_FWM
95
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030096config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070097 depends on HUDSON_PSP
98 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020099 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
WANG Siyuanf2dfef02015-05-20 14:41:01 +0800100 default "3rdparty/blobs/southbridge/amd/kern/PSP/AmdPubKeyCZ.bin" if CPU_AMD_PI_00660F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300101
102config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -0700103 int "SATA Mode"
104 default 0
105 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300106 help
107 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
108 The default is NATIVE.
109 0: NATIVE mode does not require a ROM.
110 1: RAID mode must have the two ROM files.
111 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
112 For example, seabios does not require the AHCI ROM.
113 3: LEGACY IDE
114 4: IDE to AHCI
115 5: AHCI7804: ROM Required, and AMD driver required in the OS.
116 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
117
118comment "NATIVE"
119 depends on HUDSON_SATA_MODE = 0
120
121comment "RAID"
122 depends on HUDSON_SATA_MODE = 1
123
124comment "AHCI"
125 depends on HUDSON_SATA_MODE = 2
126
127comment "LEGACY IDE"
128 depends on HUDSON_SATA_MODE = 3
129
130comment "IDE to AHCI"
131 depends on HUDSON_SATA_MODE = 4
132
133comment "AHCI7804"
134 depends on HUDSON_SATA_MODE = 5
135
136comment "IDE to AHCI7804"
137 depends on HUDSON_SATA_MODE = 6
138
139if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
140
141config AHCI_ROM_ID
142 string "AHCI device PCI IDs"
143 default "1022,7801" if HUDSON_SATA_MODE = 2
144 default "1022,7804" if HUDSON_SATA_MODE = 5
145
146config HUDSON_AHCI_ROM
147 bool "Add a AHCI ROM"
148
149config AHCI_ROM_FILE
150 string "AHCI ROM path and filename"
151 depends on HUDSON_AHCI_ROM
Dave Frodinbc21a412015-01-19 11:40:38 -0700152 default "src/southbridge/amd/pi/hudson/ahci.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300153
154endif
155
156if HUDSON_SATA_MODE = 1
157
158config RAID_ROM_ID
159 string "RAID device PCI IDs"
160 default "1022,7802"
Dave Frodinfedd8e32015-01-21 07:26:26 -0700161 help
162 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300163
164config RAID_ROM_FILE
165 string "RAID ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700166 default "src/southbridge/amd/pi/hudson/raid.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300167
168config RAID_MISC_ROM_FILE
169 string "RAID Misc ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700170 default "src/southbridge/amd/pi/hudson/misc.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300171
172config RAID_MISC_ROM_POSITION
173 hex "RAID Misc ROM Position"
174 default 0xFFF00000
175 help
176 The RAID ROM requires that the MISC ROM is located between the range
177 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
178 The CONFIG_ROM_SIZE must be larger than 0x100000.
179
180endif
181
182config HUDSON_LEGACY_FREE
183 bool "System is legacy free"
184 help
185 Select y if there is no keyboard controller in the system.
186 This sets variables in AGESA and ACPI.
187
188config AZ_PIN
189 hex
190 default 0xaa
191 help
192 bit 1,0 - pin 0
193 bit 3,2 - pin 1
194 bit 5,4 - pin 2
195 bit 7,6 - pin 3
Marshall Dawsonc6be0d82017-01-07 18:17:32 -0500196
197config AMDFW_OUTSIDE_CBFS
198 def_bool n
199 help
200 The AMDFW (PSP) is typically locatable in cbfs. Select this
201 option to manually attach the generated amdfw.rom at an
202 offset of 0x20000 from the bottom of the coreboot ROM image.
203
Marc Jones3eec9dd2017-04-09 18:00:40 -0600204config SERIRQ_CONTINUOUS_MODE
205 bool
206 default n
207 help
208 Set this option to y for serial IRQ in continuous mode.
209 Otherwise it is in quiet mode.
Marc Jones7f2c29b2017-04-26 21:55:03 -0600210
211config HUDSON_ACPI_IO_BASE
212 hex
Marc Jones7f2c29b2017-04-26 21:55:03 -0600213 default 0x800
214 help
215 Base address for the ACPI registers.
216 This value must match the hardcoded value of AGESA.
217
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300218endif
Zheng Bao22861382015-11-21 12:19:22 +0800219
220config HUDSON_UART
Zheng Baoe1e9ed32015-12-07 22:59:45 +0800221 bool "UART controller on Kern"
Zheng Bao22861382015-11-21 12:19:22 +0800222 default n
223 depends on SOUTHBRIDGE_AMD_PI_KERN
224 select DRIVERS_UART_8250MEM
225 select DRIVERS_UART_8250MEM_32
226 select NO_UART_ON_SUPERIO
Lee Leahy6ec72c92016-05-07 09:04:46 -0700227 select UART_OVERRIDE_REFCLK
Zheng Bao22861382015-11-21 12:19:22 +0800228 help
229 There are two UART controllers in Kern.
230 The UART registers are memory-mapped. UART
231 controller 0 registers range from FEDC_6000h
232 to FEDC_6FFFh. UART controller 1 registers
233 range from FEDC_8000h to FEDC_8FFFh.