blob: cbfb4f91db0d8a7a18a653a67150d0d226cb77eb [file] [log] [blame]
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03001##
2## This file is part of the coreboot project.
3##
4## Copyright (C) 2010 Advanced Micro Devices, Inc.
5##
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##
15## You should have received a copy of the GNU General Public License
16## along with this program; if not, write to the Free Software
17## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18##
19
Dave Frodinef9a4e62015-01-27 07:16:03 -070020config SOUTHBRIDGE_AMD_PI_BOLTON
21 bool
22 select IOAPIC
23 select HAVE_USBDEBUG_OPTIONS
24 select HAVE_HARD_RESET
25
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030026config SOUTHBRIDGE_AMD_PI_AVALON
27 bool
28 select IOAPIC
29 select HAVE_USBDEBUG_OPTIONS
30 select HAVE_HARD_RESET
31
Dave Frodinef9a4e62015-01-27 07:16:03 -070032if SOUTHBRIDGE_AMD_PI_AVALON || SOUTHBRIDGE_AMD_PI_BOLTON
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030033
34config 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
38config SOUTHBRIDGE_AMD_HUDSON_SKIP_ISA_DMA_INIT
39 bool
40 default n
41
42config EHCI_BAR
43 hex
44 default 0xfef00000
45
46config HUDSON_XHCI_ENABLE
47 bool "Enable Hudson XHCI Controller"
48 default y
49 help
50 The XHCI controller must be enabled and the XHCI firmware
51 must be added in order to have USB 3.0 support configured
52 by coreboot. The OS will be responsible for enabling the XHCI
53 controller if the the XHCI firmware is available but the
54 XHCI controller is not enabled by coreboot.
55
56config HUDSON_XHCI_FWM
57 bool "Add xhci firmware"
58 default y
59 help
60 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
61
62config HUDSON_DISABLE_IMC
63 bool
64 default n
65
66config HUDSON_IMC_FWM
67 bool "Add IMC firmware"
68 depends on !HUDSON_DISABLE_IMC
69 default y
Dave Frodinfedd8e32015-01-21 07:26:26 -070070 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030071 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
72
73config HUDSON_GEC_FWM
74 bool
75 default n
Dave Frodinfedd8e32015-01-21 07:26:26 -070076 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030077 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
78 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
79
80config HUDSON_PSP
81 bool
82 default y if CPU_AMD_PI_00730F01
83
84config HUDSON_XHCI_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070085 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020086 default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030087 depends on HUDSON_XHCI_FWM
88
89config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070090 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020091 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030092 depends on HUDSON_IMC_FWM
93
94config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070095 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030096 depends on HUDSON_GEC_FWM
97
98config HUDSON_FWM
99 bool
100 default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM || HUDSON_PSP
101 default n
102
103if HUDSON_FWM
104
105config HUDSON_FWM_POSITION
Dave Frodinfedd8e32015-01-21 07:26:26 -0700106 hex "Hudson Firmware ROM Position"
107 default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
108 default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
109 default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
110 default 0xFF820000 if BOARD_ROMSIZE_KB_8192
111 default 0xFF020000 if BOARD_ROMSIZE_KB_16384
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300112 help
113 Hudson requires the firmware MUST be located at
114 a specific address (ROM start address + 0x20000), otherwise
115 xhci host Controller can not find or load the xhci firmware.
116
117 The firmware start address is dependent on the ROM chip size.
118 The default offset is 0x20000 from the ROM start address, namely
119 0xFFF20000 if flash chip size is 1M
120 0xFFE20000 if flash chip size is 2M
121 0xFFC20000 if flash chip size is 4M
122 0xFF820000 if flash chip size is 8M
123 0xFF020000 if flash chip size is 16M
124endif # HUDSON_FWM
125
126config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -0700127 depends on HUDSON_PSP
128 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +0200129 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300130
131config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -0700132 int "SATA Mode"
133 default 0
134 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300135 help
136 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
137 The default is NATIVE.
138 0: NATIVE mode does not require a ROM.
139 1: RAID mode must have the two ROM files.
140 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
141 For example, seabios does not require the AHCI ROM.
142 3: LEGACY IDE
143 4: IDE to AHCI
144 5: AHCI7804: ROM Required, and AMD driver required in the OS.
145 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
146
147comment "NATIVE"
148 depends on HUDSON_SATA_MODE = 0
149
150comment "RAID"
151 depends on HUDSON_SATA_MODE = 1
152
153comment "AHCI"
154 depends on HUDSON_SATA_MODE = 2
155
156comment "LEGACY IDE"
157 depends on HUDSON_SATA_MODE = 3
158
159comment "IDE to AHCI"
160 depends on HUDSON_SATA_MODE = 4
161
162comment "AHCI7804"
163 depends on HUDSON_SATA_MODE = 5
164
165comment "IDE to AHCI7804"
166 depends on HUDSON_SATA_MODE = 6
167
168if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
169
170config AHCI_ROM_ID
171 string "AHCI device PCI IDs"
172 default "1022,7801" if HUDSON_SATA_MODE = 2
173 default "1022,7804" if HUDSON_SATA_MODE = 5
174
175config HUDSON_AHCI_ROM
176 bool "Add a AHCI ROM"
177
178config AHCI_ROM_FILE
179 string "AHCI ROM path and filename"
180 depends on HUDSON_AHCI_ROM
Dave Frodinbc21a412015-01-19 11:40:38 -0700181 default "src/southbridge/amd/pi/hudson/ahci.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300182
183endif
184
185if HUDSON_SATA_MODE = 1
186
187config RAID_ROM_ID
188 string "RAID device PCI IDs"
189 default "1022,7802"
Dave Frodinfedd8e32015-01-21 07:26:26 -0700190 help
191 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300192
193config RAID_ROM_FILE
194 string "RAID ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700195 default "src/southbridge/amd/pi/hudson/raid.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300196
197config RAID_MISC_ROM_FILE
198 string "RAID Misc ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700199 default "src/southbridge/amd/pi/hudson/misc.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300200
201config RAID_MISC_ROM_POSITION
202 hex "RAID Misc ROM Position"
203 default 0xFFF00000
204 help
205 The RAID ROM requires that the MISC ROM is located between the range
206 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
207 The CONFIG_ROM_SIZE must be larger than 0x100000.
208
209endif
210
211config HUDSON_LEGACY_FREE
212 bool "System is legacy free"
213 help
214 Select y if there is no keyboard controller in the system.
215 This sets variables in AGESA and ACPI.
216
217config AZ_PIN
218 hex
219 default 0xaa
220 help
221 bit 1,0 - pin 0
222 bit 3,2 - pin 1
223 bit 5,4 - pin 2
224 bit 7,6 - pin 3
225endif