blob: 026c5fb2d5389af29a83060a14b42650fcbc24f7 [file] [log] [blame]
Elyes HAOUAS87415102020-05-07 11:49:08 +02001# SPDX-License-Identifier: GPL-2.0-only
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03002
3config SOUTHBRIDGE_AMD_PI_AVALON
4 bool
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +03005
WANG Siyuanf2dfef02015-05-20 14:41:01 +08006config SOUTHBRIDGE_AMD_PI_KERN
7 bool
WANG Siyuanf2dfef02015-05-20 14:41:01 +08008
Felix Held70d1c722021-04-09 22:22:09 +02009if SOUTHBRIDGE_AMD_PI_AVALON || SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030010
Elyes HAOUAS00b5f532021-02-01 09:45:08 +010011config SOUTHBRIDGE_SPECIFIC_OPTIONS
Nico Huberf4181052018-10-07 13:25:59 +020012 def_bool y
Nico Huberf4181052018-10-07 13:25:59 +020013 select HAVE_USBDEBUG_OPTIONS
14 select HAVE_CF9_RESET
15 select HAVE_CF9_RESET_PREPARE
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010016 select SOC_AMD_COMMON
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010017 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held31364242021-07-23 19:18:02 +020018 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_BIOSRAM
Kyösti Mälkkib8cb1422020-06-23 21:36:14 +030019 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Held4b027692021-08-03 20:09:54 +020020 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS_NON_SOC_CODEBASE
Felix Held21cdf0d2020-11-23 16:24:29 +010021 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Nico Huberf4181052018-10-07 13:25:59 +020022
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030023config EHCI_BAR
24 hex
25 default 0xfef00000
26
27config HUDSON_XHCI_ENABLE
28 bool "Enable Hudson XHCI Controller"
29 default y
30 help
31 The XHCI controller must be enabled and the XHCI firmware
32 must be added in order to have USB 3.0 support configured
33 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +010034 controller if the XHCI firmware is available but the
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030035 XHCI controller is not enabled by coreboot.
36
37config HUDSON_XHCI_FWM
38 bool "Add xhci firmware"
39 default y
40 help
41 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
42
Mike Banon7515cd02019-01-09 02:37:07 +030043config HUDSON_IMC_ENABLE
44 bool
45 default n
46
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030047config HUDSON_IMC_FWM
48 bool "Add IMC firmware"
Mike Banon7515cd02019-01-09 02:37:07 +030049 depends on HUDSON_IMC_ENABLE
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030050 default y
Dave Frodinfedd8e32015-01-21 07:26:26 -070051 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030052 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
53
54config HUDSON_GEC_FWM
55 bool
56 default n
Dave Frodinfedd8e32015-01-21 07:26:26 -070057 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030058 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
59 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
60
61config HUDSON_PSP
62 bool
Martin Rothc681a822020-11-16 17:19:17 -070063 default y if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030064
Zheng Baoc5e28ab2020-10-28 11:38:09 +080065config AMDFW_CONFIG_FILE
66 string "AMD PSP Firmware config file"
67 default "src/southbridge/amd/pi/hudson/fw_avl.cfg" if CPU_AMD_PI_00730F01
68
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030069config HUDSON_XHCI_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070070 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020071 default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080072 default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030073 depends on HUDSON_XHCI_FWM
74
75config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070076 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020077 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080078 default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030079 depends on HUDSON_IMC_FWM
80
81config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070082 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030083 depends on HUDSON_GEC_FWM
84
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030085config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070086 depends on HUDSON_PSP
87 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020088 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030089
90config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -070091 int "SATA Mode"
Piotr Kleinschmidtcb030652019-10-08 16:16:44 +020092 default 2
Dave Frodinfedd8e32015-01-21 07:26:26 -070093 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030094 help
95 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
96 The default is NATIVE.
97 0: NATIVE mode does not require a ROM.
98 1: RAID mode must have the two ROM files.
99 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
100 For example, seabios does not require the AHCI ROM.
101 3: LEGACY IDE
102 4: IDE to AHCI
103 5: AHCI7804: ROM Required, and AMD driver required in the OS.
104 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
105
106comment "NATIVE"
107 depends on HUDSON_SATA_MODE = 0
108
109comment "RAID"
110 depends on HUDSON_SATA_MODE = 1
111
112comment "AHCI"
113 depends on HUDSON_SATA_MODE = 2
114
115comment "LEGACY IDE"
116 depends on HUDSON_SATA_MODE = 3
117
118comment "IDE to AHCI"
119 depends on HUDSON_SATA_MODE = 4
120
121comment "AHCI7804"
122 depends on HUDSON_SATA_MODE = 5
123
124comment "IDE to AHCI7804"
125 depends on HUDSON_SATA_MODE = 6
126
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300127if HUDSON_SATA_MODE = 1
128
129config RAID_ROM_ID
130 string "RAID device PCI IDs"
131 default "1022,7802"
Dave Frodinfedd8e32015-01-21 07:26:26 -0700132 help
133 1022,7802 for SATA NON-RAID5 module, 1022,7803 for SATA RAID5 mode
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300134
135config RAID_ROM_FILE
136 string "RAID ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700137 default "src/southbridge/amd/pi/hudson/raid.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300138
139config RAID_MISC_ROM_FILE
140 string "RAID Misc ROM path and filename"
Dave Frodinbc21a412015-01-19 11:40:38 -0700141 default "src/southbridge/amd/pi/hudson/misc.bin"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300142
143config RAID_MISC_ROM_POSITION
144 hex "RAID Misc ROM Position"
145 default 0xFFF00000
146 help
147 The RAID ROM requires that the MISC ROM is located between the range
148 0xFFF0_0000 to 0xFFF0_FFFF. Also, it must 1K bytes aligned.
149 The CONFIG_ROM_SIZE must be larger than 0x100000.
150
151endif
152
153config HUDSON_LEGACY_FREE
154 bool "System is legacy free"
155 help
156 Select y if there is no keyboard controller in the system.
157 This sets variables in AGESA and ACPI.
158
Marshall Dawsonc6be0d82017-01-07 18:17:32 -0500159config AMDFW_OUTSIDE_CBFS
160 def_bool n
161 help
162 The AMDFW (PSP) is typically locatable in cbfs. Select this
163 option to manually attach the generated amdfw.rom at an
164 offset of 0x20000 from the bottom of the coreboot ROM image.
165
Marc Jones3eec9dd2017-04-09 18:00:40 -0600166config SERIRQ_CONTINUOUS_MODE
167 bool
168 default n
169 help
170 Set this option to y for serial IRQ in continuous mode.
171 Otherwise it is in quiet mode.
Marc Jones7f2c29b2017-04-26 21:55:03 -0600172
173config HUDSON_ACPI_IO_BASE
174 hex
Marc Jones7f2c29b2017-04-26 21:55:03 -0600175 default 0x800
176 help
177 Base address for the ACPI registers.
178 This value must match the hardcoded value of AGESA.
179
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300180endif