blob: 6a3d61da13cfd398ea0e959bb660de90e4ebd95e [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
Kyösti Mälkki34543672023-04-08 23:07:57 +030013 select ACPI_COMMON_MADT_IOAPIC
Kyösti Mälkki69a13962023-04-08 14:10:48 +030014 select ACPI_COMMON_MADT_LAPIC
Kyösti Mälkki34543672023-04-08 23:07:57 +030015 select ACPI_CUSTOM_MADT
Nico Huberf4181052018-10-07 13:25:59 +020016 select HAVE_USBDEBUG_OPTIONS
17 select HAVE_CF9_RESET
18 select HAVE_CF9_RESET_PREPARE
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010019 select SOC_AMD_COMMON
Michał Żygowskif3db2ae2019-11-24 13:26:10 +010020 select SOC_AMD_COMMON_BLOCK_ACPIMMIO
Felix Held31364242021-07-23 19:18:02 +020021 select SOC_AMD_COMMON_BLOCK_ACPIMMIO_BIOSRAM
Kyösti Mälkkib8cb1422020-06-23 21:36:14 +030022 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS
Felix Held4b027692021-08-03 20:09:54 +020023 select SOC_AMD_COMMON_BLOCK_BANKED_GPIOS_NON_SOC_CODEBASE
Felix Held21cdf0d2020-11-23 16:24:29 +010024 select SOC_AMD_COMMON_BLOCK_PCI_MMCONF
Nico Huberf4181052018-10-07 13:25:59 +020025
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030026config EHCI_BAR
27 hex
28 default 0xfef00000
29
30config HUDSON_XHCI_ENABLE
31 bool "Enable Hudson XHCI Controller"
32 default y
33 help
34 The XHCI controller must be enabled and the XHCI firmware
35 must be added in order to have USB 3.0 support configured
36 by coreboot. The OS will be responsible for enabling the XHCI
Jonathan Neuschäfer45e6c822018-12-11 17:53:07 +010037 controller if the XHCI firmware is available but the
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030038 XHCI controller is not enabled by coreboot.
39
40config HUDSON_XHCI_FWM
41 bool "Add xhci firmware"
42 default y
43 help
44 Add Hudson 2/3/4 XHCI Firmware to support the onboard USB 3.0
45
Mike Banon7515cd02019-01-09 02:37:07 +030046config HUDSON_IMC_ENABLE
47 bool
48 default n
49
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030050config HUDSON_IMC_FWM
51 bool "Add IMC firmware"
Mike Banon7515cd02019-01-09 02:37:07 +030052 depends on HUDSON_IMC_ENABLE
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030053 default y
Dave Frodinfedd8e32015-01-21 07:26:26 -070054 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030055 Add Hudson 2/3/4 IMC Firmware to support the onboard fan control
56
57config HUDSON_GEC_FWM
58 bool
59 default n
Dave Frodinfedd8e32015-01-21 07:26:26 -070060 help
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030061 Add Hudson 2/3/4 GEC Firmware to support the onboard gigabit Ethernet MAC.
62 Must be connected to a Broadcom B50610 or B50610M PHY on the motherboard.
63
64config HUDSON_PSP
65 bool
Martin Rothc681a822020-11-16 17:19:17 -070066 default y if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030067
Zheng Baoc5e28ab2020-10-28 11:38:09 +080068config AMDFW_CONFIG_FILE
69 string "AMD PSP Firmware config file"
70 default "src/southbridge/amd/pi/hudson/fw_avl.cfg" if CPU_AMD_PI_00730F01
71
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030072config HUDSON_XHCI_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070073 string "XHCI firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020074 default "3rdparty/blobs/southbridge/amd/avalon/xhci.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080075 default "3rdparty/blobs/southbridge/amd/kern/xhci.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030076 depends on HUDSON_XHCI_FWM
77
78config HUDSON_IMC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070079 string "IMC firmware path and filename"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020080 default "3rdparty/blobs/southbridge/amd/avalon/imc.bin" if SOUTHBRIDGE_AMD_PI_AVALON
WANG Siyuanf2dfef02015-05-20 14:41:01 +080081 default "3rdparty/blobs/southbridge/amd/kern/imc.bin" if SOUTHBRIDGE_AMD_PI_KERN
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030082 depends on HUDSON_IMC_FWM
83
84config HUDSON_GEC_FWM_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070085 string "GEC firmware path and filename"
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030086 depends on HUDSON_GEC_FWM
87
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030088config AMD_PUBKEY_FILE
Dave Frodinfedd8e32015-01-21 07:26:26 -070089 depends on HUDSON_PSP
90 string "AMD public Key"
Patrick Georgi26e24cc2015-05-05 22:27:25 +020091 default "3rdparty/blobs/southbridge/amd/avalon/PSP/AmdPubKey.bin" if CPU_AMD_PI_00730F01
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030092
93config HUDSON_SATA_MODE
Dave Frodinfedd8e32015-01-21 07:26:26 -070094 int "SATA Mode"
Piotr Kleinschmidtcb030652019-10-08 16:16:44 +020095 default 2
Dave Frodinfedd8e32015-01-21 07:26:26 -070096 range 0 6
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +030097 help
98 Select the mode in which SATA should be driven. NATIVE AHCI, or RAID.
99 The default is NATIVE.
100 0: NATIVE mode does not require a ROM.
101 1: RAID mode must have the two ROM files.
102 2: AHCI may work with or without AHCI ROM. It depends on the payload support.
103 For example, seabios does not require the AHCI ROM.
104 3: LEGACY IDE
105 4: IDE to AHCI
106 5: AHCI7804: ROM Required, and AMD driver required in the OS.
107 6: IDE to AHCI7804: ROM Required, and AMD driver required in the OS.
108
109comment "NATIVE"
110 depends on HUDSON_SATA_MODE = 0
111
112comment "RAID"
113 depends on HUDSON_SATA_MODE = 1
114
115comment "AHCI"
116 depends on HUDSON_SATA_MODE = 2
117
118comment "LEGACY IDE"
119 depends on HUDSON_SATA_MODE = 3
120
121comment "IDE to AHCI"
122 depends on HUDSON_SATA_MODE = 4
123
124comment "AHCI7804"
125 depends on HUDSON_SATA_MODE = 5
126
127comment "IDE to AHCI7804"
128 depends on HUDSON_SATA_MODE = 6
129
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300130config HUDSON_LEGACY_FREE
131 bool "System is legacy free"
132 help
133 Select y if there is no keyboard controller in the system.
134 This sets variables in AGESA and ACPI.
135
Marshall Dawsonc6be0d82017-01-07 18:17:32 -0500136config AMDFW_OUTSIDE_CBFS
137 def_bool n
138 help
139 The AMDFW (PSP) is typically locatable in cbfs. Select this
140 option to manually attach the generated amdfw.rom at an
141 offset of 0x20000 from the bottom of the coreboot ROM image.
142
Marc Jones3eec9dd2017-04-09 18:00:40 -0600143config SERIRQ_CONTINUOUS_MODE
144 bool
145 default n
146 help
147 Set this option to y for serial IRQ in continuous mode.
148 Otherwise it is in quiet mode.
Marc Jones7f2c29b2017-04-26 21:55:03 -0600149
150config HUDSON_ACPI_IO_BASE
151 hex
Marc Jones7f2c29b2017-04-26 21:55:03 -0600152 default 0x800
153 help
154 Base address for the ACPI registers.
155 This value must match the hardcoded value of AGESA.
156
Kyösti Mälkkie8b4da22014-10-21 18:22:32 +0300157endif