tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / southbridge / amd / agesa / hudson / Kconfig
blobbfce0cb69a28d3411c47ea9f9e729bea5102cf76
1 ##
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.
16 config SOUTHBRIDGE_AMD_AGESA_HUDSON
17         bool
18         select IOAPIC
19         select HAVE_USBDEBUG_OPTIONS
20         select HAVE_HARD_RESET
22 config SOUTHBRIDGE_AMD_AGESA_YANGTZE
23         bool
24         select IOAPIC
25         select HAVE_USBDEBUG_OPTIONS
26         select HAVE_HARD_RESET
28 if SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE
30 config BOOTBLOCK_SOUTHBRIDGE_INIT
31         string
32         default "southbridge/amd/agesa/hudson/bootblock.c"
34 config SOUTHBRIDGE_AMD_HUDSON_SKIP_ISA_DMA_INIT
35         bool
36         default n
38 config EHCI_BAR
39         hex
40         default 0xfef00000
42 config 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
49           controller if the the XHCI firmware is available but the
50           XHCI controller is not enabled by coreboot.
52 config HUDSON_XHCI_FWM
53         bool "Add xhci firmware"
54         default y if USE_BLOBS
55         help
56           Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
58 config HUDSON_IMC_FWM
59         bool "Add imc firmware"
60         default y if USE_BLOBS
61         help
62           Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
64 config HUDSON_GEC_FWM
65         bool
66         default n
67         help
68           Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
69           Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
71 config HUDSON_XHCI_FWM_FILE
72         string "XHCI firmware path and filename"
73         default "3rdparty/blobs/southbridge/amd/hudson/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
74         default "3rdparty/blobs/southbridge/amd/yangtze/xhci.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
75         depends on HUDSON_XHCI_FWM
77 config HUDSON_IMC_FWM_FILE
78         string "IMC firmware path and filename"
79         default "3rdparty/blobs/southbridge/amd/hudson/imc.bin" if SOUTHBRIDGE_AMD_AGESA_HUDSON
80         default "3rdparty/blobs/southbridge/amd/yangtze/imc.bin" if SOUTHBRIDGE_AMD_AGESA_YANGTZE
81         depends on HUDSON_IMC_FWM
83 config HUDSON_GEC_FWM_FILE
84         string "GEC firmware path and filename"
85         default "3rdparty/blobs/southbridge/amd/hudson/gec.bin"  if SOUTHBRIDGE_AMD_AGESA_HUDSON
86         default "3rdparty/blobs/southbridge/amd/yangtze/gec.bin"  if SOUTHBRIDGE_AMD_AGESA_YANGTZE
87         depends on HUDSON_GEC_FWM
89 config HUDSON_FWM
90         bool
91         default y if HUDSON_XHCI_FWM || HUDSON_IMC_FWM || HUDSON_GEC_FWM
92         default n
94 if HUDSON_FWM
96 config HUDSON_FWM_POSITION
97         hex "Hudson Firmware ROM Position"
98         default 0xFFF20000 if BOARD_ROMSIZE_KB_1024
99         default 0xFFE20000 if BOARD_ROMSIZE_KB_2048
100         default 0xFFC20000 if BOARD_ROMSIZE_KB_4096
101         default 0xFF820000 if BOARD_ROMSIZE_KB_8192
102         default 0xFF020000 if BOARD_ROMSIZE_KB_16384
103         help
104           Hudson requires the firmware MUST be located at
105           a specific address (ROM start address + 0x20000), otherwise
106           xhci host Controller can not find or load the xhci firmware.
108           The firmware start address is dependent on the ROM chip size.
109           The default offset is 0x20000 from the ROM start address, namely
110           0xFFF20000 if flash chip size is 1M
111           0xFFE20000 if flash chip size is 2M
112           0xFFC20000 if flash chip size is 4M
113           0xFF820000 if flash chip size is 8M
114           0xFF020000 if flash chip size is 16M
115 endif # HUDSON_FWM
117 config HUDSON_SATA_MODE
118         int "SATA Mode"
119         default 0
120         range 0 6
121         help
122           Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
123           The default is NATIVE.
124           0: NATIVE mode does not require a ROM.
125           1: RAID mode must have the two ROM files.
126           2: AHCI may work with or without AHCI ROM. It depends on the payload support.
127              For example, seabios does not require the AHCI ROM.
128           3: LEGACY IDE
129           4: IDE to AHCI
130           5: AHCI7804: ROM Required, and AMD driver required in the OS.
131           6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
133 comment "NATIVE"
134         depends on HUDSON_SATA_MODE = 0
136 comment "RAID"
137         depends on HUDSON_SATA_MODE = 1
139 comment "AHCI"
140         depends on HUDSON_SATA_MODE = 2
142 comment "LEGACY IDE"
143         depends on HUDSON_SATA_MODE = 3
145 comment "IDE to AHCI"
146         depends on HUDSON_SATA_MODE = 4
148 comment "AHCI7804"
149         depends on HUDSON_SATA_MODE = 5
151 comment "IDE to AHCI7804"
152         depends on HUDSON_SATA_MODE = 6
154 if HUDSON_SATA_MODE = 2 || HUDSON_SATA_MODE = 5
156 config AHCI_ROM_ID
157         string  "AHCI device PCI IDs"
158         default "1022,7801" if HUDSON_SATA_MODE = 2
159         default "1022,7804" if HUDSON_SATA_MODE = 5
161 config HUDSON_AHCI_ROM
162         bool "Add a AHCI ROM"
164 config AHCI_ROM_FILE
165         string "AHCI ROM path and filename"
166         depends on HUDSON_AHCI_ROM
167         default "src/southbridge/amd/agesa/hudson/ahci.bin"
169 endif
171 if HUDSON_SATA_MODE = 1
173 config RAID_ROM_ID
174         string "RAID device PCI IDs"
175         default "1022,7802"
176         help
177           1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
179 config RAID_ROM_FILE
180         string "RAID ROM path and filename"
181         default "src/southbridge/amd/agesa/hudson/raid.bin"
183 config RAID_MISC_ROM_FILE
184         string "RAID Misc ROM path and filename"
185         default "src/southbridge/amd/agesa/hudson/misc.bin"
187 config RAID_MISC_ROM_POSITION
188         hex "RAID Misc ROM Position"
189         default 0xFFF00000
190         help
191           The RAID ROM requires that the MISC ROM is located between the range
192           0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
193           The CONFIG_ROM_SIZE must be larger than 0x100000.
195 endif
197 config HUDSON_LEGACY_FREE
198         bool "System is legacy free"
199         help
200           Select y if there is no keyboard controller in the system.
201           This sets variables in AGESA and ACPI.
203 config ACPI_ENABLE_THERMAL_ZONE
204         bool
205         default y
207 endif # SOUTHBRIDGE_AMD_AGESA_HUDSON || SOUTHBRIDGE_AMD_AGESA_YANGTZE
209 if SOUTHBRIDGE_AMD_AGESA_YANGTZE
210         config AZ_PIN
211                 hex
212                 default 0xaa
213                 help
214                   bit 1,0 - pin 0
215                   bit 3,2 - pin 1
216                   bit 5,4 - pin 2
217                   bit 7,6 - pin 3
218 endif