blob: 381bfcbd8084c643c3bf235026abdbea4df2c821 [file] [log] [blame]
Patrick Georgic49d7a32020-05-08 22:50:46 +02001# SPDX-License-Identifier: GPL-2.0-only
Piotr Króldcd2f172016-05-27 12:04:13 +02002
Piotr Król83b4fb92017-11-29 16:34:44 +01003if BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || BOARD_PCENGINES_APU4 || \
4 BOARD_PCENGINES_APU5
Piotr Króldcd2f172016-05-27 12:04:13 +02005
Elyes HAOUASf0c5be22018-11-27 20:36:44 +01006config BOARD_SPECIFIC_OPTIONS
Piotr Króldcd2f172016-05-27 12:04:13 +02007 def_bool y
8 select CPU_AMD_PI_00730F01
9 select NORTHBRIDGE_AMD_PI_00730F01
10 select SOUTHBRIDGE_AMD_PI_AVALON
Kyösti Mälkki657d68b2019-12-03 12:36:09 +020011 select DEFAULT_POST_ON_LPC
Piotr Króldcd2f172016-05-27 12:04:13 +020012 select SUPERIO_NUVOTON_NCT5104D
13 select HAVE_PIRQ_TABLE
Piotr Króldcd2f172016-05-27 12:04:13 +020014 select HAVE_ACPI_TABLES
Felix Held1f9f19b2024-01-10 21:54:57 +010015 select HUDSON_FADT_LEGACY_DEVICES
Piotr Króldcd2f172016-05-27 12:04:13 +020016 select BOARD_ROMSIZE_KB_8192
Michael Niewöhner87cc8892020-09-07 14:26:09 +020017 select HAVE_SPD_IN_CBFS
Jes B. Klinkec6b041a12022-04-19 14:00:33 -070018 select MEMORY_MAPPED_TPM
Michał Żygowski54fcb782018-08-03 18:23:52 +020019 select SEABIOS_ADD_SERCON_PORT_FILE if PAYLOAD_SEABIOS
Michał Żygowski8e46d422020-03-20 16:19:55 +010020 select PCIEXP_ASPM
21 select PCIEXP_CLK_PM
22 select PCIEXP_COMMON_CLOCK
23 select PCIEXP_L1_SUB_STATE
Piotr Króldcd2f172016-05-27 12:04:13 +020024
25config MAINBOARD_DIR
Patrick Georgi0bb83462019-11-22 20:58:58 +010026 default "pcengines/apu2"
Piotr Króldcd2f172016-05-27 12:04:13 +020027
Kamil Wcislo70b92452017-10-12 11:55:16 +020028config VARIANT_DIR
Kamil Wcislo70b92452017-10-12 11:55:16 +020029 default "apu2" if BOARD_PCENGINES_APU2
30 default "apu3" if BOARD_PCENGINES_APU3
Piotr Król83b4fb92017-11-29 16:34:44 +010031 default "apu4" if BOARD_PCENGINES_APU4
Kamil Wcislo70b92452017-10-12 11:55:16 +020032 default "apu5" if BOARD_PCENGINES_APU5
33
34config DEVICETREE
Patrick Georgib8fba862020-06-17 21:06:53 +020035 default "variants/\$(CONFIG_VARIANT_DIR)/devicetree.cb"
Kamil Wcislo70b92452017-10-12 11:55:16 +020036
Piotr Króldcd2f172016-05-27 12:04:13 +020037config MAINBOARD_PART_NUMBER
Kamil Wcislo70b92452017-10-12 11:55:16 +020038 default "apu2" if BOARD_PCENGINES_APU2
39 default "apu3" if BOARD_PCENGINES_APU3
Piotr Król83b4fb92017-11-29 16:34:44 +010040 default "apu4" if BOARD_PCENGINES_APU4
Kamil Wcislo70b92452017-10-12 11:55:16 +020041 default "apu5" if BOARD_PCENGINES_APU5
Piotr Króldcd2f172016-05-27 12:04:13 +020042
43config MAX_CPUS
44 int
45 default 4
46
47config IRQ_SLOT_COUNT
48 int
49 default 11
50
51config ONBOARD_VGA_IS_PRIMARY
52 bool
53 default y
54
Piotr Króldcd2f172016-05-27 12:04:13 +020055config AGESA_BINARY_PI_FILE
56 string
57 default "3rdparty/blobs/mainboard/pcengines/apu2/AGESA.bin"
58
59choice
60 prompt "J19 pins 1-10"
Michał Żygowskicc16ec12018-09-24 13:17:40 +020061 default APU2_PINMUX_UART_C
Piotr Króldcd2f172016-05-27 12:04:13 +020062
63config APU2_PINMUX_OFF_C
64 bool "disable"
65
66config APU2_PINMUX_GPIO0
67 bool "GPIO"
Piotr Król83b4fb92017-11-29 16:34:44 +010068 depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || \
69 BOARD_PCENGINES_APU4
Piotr Króldcd2f172016-05-27 12:04:13 +020070
71config APU2_PINMUX_UART_C
72 bool "UART 0x3e8"
73
74endchoice
75
76choice
77 prompt "J19 pins 11-20"
Michał Żygowskicc16ec12018-09-24 13:17:40 +020078 default APU2_PINMUX_UART_D
Piotr Króldcd2f172016-05-27 12:04:13 +020079
80config APU2_PINMUX_OFF_D
81 bool "disable"
82
83config APU2_PINMUX_GPIO1
84 bool "GPIO"
Piotr Król83b4fb92017-11-29 16:34:44 +010085 depends on BOARD_PCENGINES_APU2 || BOARD_PCENGINES_APU3 || \
86 BOARD_PCENGINES_APU4
Piotr Króldcd2f172016-05-27 12:04:13 +020087
88config APU2_PINMUX_UART_D
89 bool "UART 0x2e8"
90
91endchoice
92
Patrick Georgi44a46a12017-01-28 13:12:09 +010093config DIMM_SPD_SIZE
Patrick Georgi44a46a12017-01-28 13:12:09 +010094 default 128
95
Piotr Kleinschmidt73546052019-10-09 11:47:03 +020096config AGESA_USE_1_0_0_4_HEADER
97 bool
98 default y
99 help
100 Due to a bug in AGESA 1.0.0.A affecting boards without UMA, it is
101 impossible to use the newest blob. Using an older 1.0.0.4 blob
102 workarounds the problem, however some headers changes between blob
103 revisions. This option removes the changes in headers introduced
104 with AGESA 1.0.0.A to fit the 1.0.0.4 revision.
105
Piotr Króldcd2f172016-05-27 12:04:13 +0200106endif # BOARD_PCENGINES_APU2