blob: e3fc8c757d59e4f34ceb503d1870b2ab7fc3e1a8 [file] [log] [blame]
zbao246e84b2012-07-13 18:47:03 +08001##
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
20config SOUTHBRIDGE_AMD_AGESA_HUDSON
21 bool
22 select IOAPIC
23 select HAVE_USBDEBUG
24 select TINY_BOOTBLOCK
25
26config BOOTBLOCK_SOUTHBRIDGE_INIT
27 string
28 default "southbridge/amd/agesa/hudson/bootblock.c"
29 depends on SOUTHBRIDGE_AMD_AGESA_HUDSON
30
31config SOUTHBRIDGE_AMD_HUDSON_SKIP_ISA_DMA_INIT
32 bool
33 default n
34 depends on SOUTHBRIDGE_AMD_AGESA_HUDSON
35
36config EHCI_BAR
37 hex
38 default 0xfef00000 if SOUTHBRIDGE_AMD_AGESA_HUDSON
39
40config EHCI_DEBUG_OFFSET
41 hex
42 default 0xe0 if SOUTHBRIDGE_AMD_AGESA_HUDSON
43
44
45if SOUTHBRIDGE_AMD_AGESA_HUDSON
46
47config HUDSON_XHCI_FWM
48 bool "Add xhci firmware"
49 default y
50 help
51 Add Hudson 2/3/4 XHCI Firmware to support the onboard usb3.0
52 Please contact AMD to obtain the related firmware
53
54config HUDSON_IMC_FWM
55 bool "Add imc firmware"
56 default y
57 help
58 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
59 Please contact AMD to obtain the related firmware
60
61config HUDSON_GEC_FWM
62 bool "Add gec firmware"
63 default n
64 help
65 Add Hudson 2/3/4 GEC Firmware
66 Please contact AMD to obtain the related firmware
67
68config HUDSON_XHCI_FWM_FILE
69 string "XHCI firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080070 default "3rdparty/southbridge/amd/hudson/xhci.bin"
zbao246e84b2012-07-13 18:47:03 +080071 depends on HUDSON_XHCI_FWM
72
73config HUDSON_IMC_FWM_FILE
74 string "IMC firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080075 default "3rdparty/southbridge/amd/hudson/imc.bin"
zbao246e84b2012-07-13 18:47:03 +080076 depends on HUDSON_IMC_FWM
77
78config HUDSON_GEC_FWM_FILE
79 string "GEC firmware path and filename"
zbao6db7f342012-07-19 16:38:12 +080080 default "3rdparty/southbridge/amd/hudson/gec.bin"
zbao246e84b2012-07-13 18:47:03 +080081 depends on HUDSON_GEC_FWM
82
83config HUDSON_FWM
84 bool
85 default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM
86 default n if !HUDSON_XHCI_FWM && !HUDSON_IMC_FWM && !HUDSON_GEC_FWM
87
88if HUDSON_FWM
89
90config HUDSON_FWM_POSITION
91 hex "Hudson Firmware rom Position"
92 default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
93 default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
94 default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
95 default 0xFF820000 if BOARD_ROMSIZE_KB_8192
96 default 0xFF020000 if BOARD_ROMSIZE_KB_16384
97 help
98 Hudson requires the firmware MUST to be located at
99 a specific address (ROM start address + 0x20000), otherwise
100 xhci host Controller can not find or load the xhci firmware.
101
102 The firmware start address is dependent on the ROM chip size.
103 The default offset is 0x20000 from the ROM start address, namely
104 0xFFF20000 if flash chip size is 1M
105 0xFFE20000 if flash chip size is 2M
106 0xFFC20000 if flash chip size is 4M
107 0xFF820000 if flash chip size is 8M
108 0xFF020000 if flash chip size is 16M
109endif
110
111choice
112 prompt "SATA Mode"
113 default HUDSON_SATA_IDE
114 help
115 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
116 The default is NATIVE.
117
118config HUDSON_SATA_IDE
119 bool "NATIVE"
120 help
121 NATIVE is the default mode and does not require a ROM.
122
123config HUDSON_SATA_RAID
124 bool "RAID"
125 help
126 HUDSON RAID mode must have the two required ROM files.
127
128config HUDSON_SATA_AHCI
129 bool "AHCI"
130 help
131 AHCI may work with or without AHCI ROM. It depends on the payload support.
132 For example, seabios does not require the AHCI ROM.
133
134config HUDSON_SATA_LEGACY_IDE
135 bool "LEGACY IDE"
136 help
137 TODO
138
139config HUDSON_SATA_IDE2AHCI
140 bool "IDE to AHCI"
141 help
142 TODO
143
144config HUDSON_SATA_AHCI7804
145 bool "AHCI7804"
146 help
147 AHCI ROM Required, and AMD driver required in the OS.
148
149config HUDSON_SATA_IDE2AHCI7804
150 bool "IDE to AHCI7804"
151 help
152 AHCI ROM Required, and AMD driver required in the OS.
153endchoice
154
155config HUDSON_SATA_MODE
156 hex
157 depends on (HUDSON_SATA_IDE || HUDSON_SATA_RAID || HUDSON_SATA_AHCI)
158 default "0x0" if HUDSON_SATA_IDE
159 default "0x1" if HUDSON_SATA_RAID
160 default "0x2" if HUDSON_SATA_AHCI
161 default "0x3" if HUDSON_SATA_LEGACY_IDE
162 default "0x4" if HUDSON_SATA_IDE2AHCI
163 default "0x5" if HUDSON_SATA_AHCI7804
164 default "0x6" if HUDSON_SATA_IDE2AHCI7804
165
166if HUDSON_SATA_AHCI || HUDSON_SATA_AHCI7804
167config AHCI_ROM_ID
168 string "AHCI device PCI IDs"
169 default "1022,7801" if HUDSON_SATA_AHCI
170 default "1022,7804" if HUDSON_SATA_AHCI7804
171
172config HUDSON_AHCI_ROM
173 bool "Add a AHCI ROM"
174
175config AHCI_ROM_FILE
176 string "AHCI ROM path and filename"
177 depends on HUDSON_AHCI_ROM
178 default "src/southbridge/amd/agesa/hudson/ahci.bin"
179endif
180
181if HUDSON_SATA_RAID
182config RAID_ROM_ID
183 string "RAID device PCI IDs"
184 default "1022,7802"
185 help
186 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
187
188config RAID_ROM_FILE
189 string "RAID ROM path and filename"
190 depends on HUDSON_SATA_RAID
191 default "src/southbridge/amd/agesa/hudson/raid.bin"
192
193config RAID_MISC_ROM_FILE
194 string "RAID Misc ROM path and filename"
195 default "src/southbridge/amd/agesa/hudson/misc.bin"
196 depends on HUDSON_SATA_RAID
197
198config RAID_MISC_ROM_POSITION
199 hex "RAID Misc ROM Position"
200 default 0xFFF00000
201 depends on HUDSON_SATA_RAID
202 help
203 The RAID ROM requires that the MISC ROM is located between the range
204 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
205 The CONFIG_ROM_SIZE must larger than 0x100000.
206endif
207
208endif